Lines Matching +full:instance +full:- +full:id

2  * Copyright (c) 2020-2022 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
36 /** @brief Size of OTS object ID (in bytes). */
39 /** @brief Minimum allowed value for object ID (except ID for directory listing) */
42 /** @brief Maximum allowed value for object ID (except ID for directory listing) */
45 /** @brief ID of the Directory Listing Object */
51 /** @brief Length of OTS object ID string (in bytes). */
60 /* 16-bit UUID value */
63 /* 128-bit UUID value */
497 /** @brief Request object ID */
547 /** @brief Object ID */
548 uint64_t id; member
555 /** @brief Opaque OTS instance. */
610 * @param ots OTS instance.
613 * @param id Object ID.
619 * @return -ENOTSUP if object type is not supported
620 * @return -ENOMEM if no available space for new object.
621 * @return -EINVAL if an invalid parameter is provided
624 int (*obj_created)(struct bt_ots *ots, struct bt_conn *conn, uint64_t id,
634 * @param ots OTS instance.
637 * @param id Object ID.
643 * @return -EBUSY if the object is locked. This is generally not expected
650 uint64_t id);
656 * @param ots OTS instance.
658 * @param id Object ID.
661 uint64_t id);
671 * @param ots OTS instance.
673 * @param id Object ID.
684 uint64_t id, void **data, size_t len,
698 * @param ots OTS instance.
700 * @param id Object ID.
707 * of bytes written does not match len, -EIO is returned to
710 * @return -EINPROGRESS has a special meaning and is unsupported at
713 ssize_t (*obj_write)(struct bt_ots *ots, struct bt_conn *conn, uint64_t id,
723 * @param ots OTS instance.
725 * @param id Object ID.
730 uint64_t id, const char *cur_name, const char *new_name);
738 * @param[in] ots OTS instance.
740 * @param[in] id Object ID.
747 int (*obj_cal_checksum)(struct bt_ots *ots, struct bt_conn *conn, uint64_t id,
760 /** @brief Add an object to the OTS instance.
764 * to notify the user about a new object ID.
766 * @param ots OTS instance.
769 * @return ID of created object in case of success.
774 /** @brief Delete an object from the OTS instance.
781 * @param ots OTS instance.
782 * @param id ID of the object to be deleted (uint48).
786 int bt_ots_obj_delete(struct bt_ots *ots, uint64_t id);
793 * @param ots OTS instance.
795 * @return The first OTS attribute instance.
799 /** @brief Initialize the OTS instance.
801 * @param ots OTS instance.
808 /** @brief Get a free instance of OTS from the pool.
810 * @return OTS instance in case of success or NULL in case of error.
817 /* TODO: Merge server and client instance as opaque type */
818 /** @brief OTS client instance */
856 * @param ots_inst Pointer to the OTC instance.
870 * @param ots_inst Pointer to the OTC instance.
890 * @param ots_inst Pointer to the OTC instance.
906 * @param ots_inst Pointer to the OTC instance.
918 * @param ots_inst Pointer to the OTC instance.
928 /** @brief Register an Object Transfer Service Instance.
930 * Register an Object Transfer Service instance discovered on the peer.
931 * Call this function when an OTS instance is discovered
934 * @param[in] ots_inst Discovered OTS instance.
940 /** @brief Unregister an Object Transfer Service Instance.
942 * Unregister an Object Transfer Service instance when disconnect from the peer.
943 * Call this function when an ACL using OTS instance is disconnected.
945 * @param[in] index Index of OTS instance.
968 * @param otc_inst Pointer to the OTC instance.
976 /** @brief Select an object by its Object ID.
978 * @param otc_inst Pointer to the OTC instance.
980 * @param obj_id Object's ID.
990 * @param otc_inst Pointer to the OTC instance.
1000 * @param otc_inst Pointer to the OTC instance.
1010 * @param otc_inst Pointer to the OTC instance.
1020 * @param otc_inst Pointer to the OTC instance.
1032 * @param otc_inst Pointer to the OTC instance.
1050 * @param otc_inst Pointer to the OTC instance.
1065 * @param otc_inst Pointer to the OTC instance.
1085 * @param otc_inst Pointer to the OTC instance.
1120 /** @brief Converts binary OTS Object ID to string.
1122 * @param obj_id Object ID.
1124 * formatted string containing binary Object ID.
1129 * @return Number of successfully formatted bytes from binary ID.
1133 uint8_t id[6]; in bt_ots_obj_id_to_str() local
1135 sys_put_le48(obj_id, id); in bt_ots_obj_id_to_str()
1138 id[5], id[4], id[3], id[2], id[1], id[0]); in bt_ots_obj_id_to_str()