|
#define | BT_OTS_OBJ_ID_SIZE 6 |
| Size of OTS object ID (in bytes). More...
|
|
#define | BT_OTS_OBJ_ID_MIN 0x000000000100 |
| Minimum allowed value for object ID (except ID for directory listing) More...
|
|
#define | BT_OTS_OBJ_ID_MAX 0xFFFFFFFFFFFF |
| Maximum allowed value for object ID (except ID for directory listing) More...
|
|
#define | OTS_OBJ_ID_DIR_LIST 0x000000000000 |
| ID of the Directory Listing Object. More...
|
|
#define | BT_OTS_OBJ_ID_MASK BIT64_MASK(48) |
| Mask for OTS object IDs, preserving the 48 bits. More...
|
|
#define | BT_OTS_OBJ_ID_STR_LEN 15 |
| Length of OTS object ID string (in bytes). More...
|
|
#define | BT_OTS_OBJ_SET_PROP_DELETE(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_DELETE, 1) |
| Set BT_OTS_OBJ_PROP_DELETE property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_EXECUTE(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_EXECUTE, 1) |
| Set BT_OTS_OBJ_PROP_EXECUTE property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_READ(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_READ, 1) |
| Set BT_OTS_OBJ_PROP_READ property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_WRITE(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_WRITE, 1) |
| Set BT_OTS_OBJ_PROP_WRITE property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_APPEND(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_APPEND, 1) |
| Set BT_OTS_OBJ_PROP_APPEND property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_TRUNCATE(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_TRUNCATE, 1) |
| Set BT_OTS_OBJ_PROP_TRUNCATE property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_PATCH(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_PATCH, 1) |
| Set BT_OTS_OBJ_PROP_PATCH property. More...
|
|
#define | BT_OTS_OBJ_SET_PROP_MARKED(prop) WRITE_BIT(prop, BT_OTS_OBJ_PROP_MARKED, 1) |
| Set BT_OTS_OBJ_SET_PROP_MARKED property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_DELETE(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_DELETE)) |
| Get BT_OTS_OBJ_PROP_DELETE property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_EXECUTE(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_EXECUTE)) |
| Get BT_OTS_OBJ_PROP_EXECUTE property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_READ(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_READ)) |
| Get BT_OTS_OBJ_PROP_READ property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_WRITE(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_WRITE)) |
| Get BT_OTS_OBJ_PROP_WRITE property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_APPEND(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_APPEND)) |
| Get BT_OTS_OBJ_PROP_APPEND property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_TRUNCATE(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_TRUNCATE)) |
| Get BT_OTS_OBJ_PROP_TRUNCATE property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_PATCH(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_PATCH)) |
| Get BT_OTS_OBJ_PROP_PATCH property. More...
|
|
#define | BT_OTS_OBJ_GET_PROP_MARKED(prop) ((prop) & BIT(BT_OTS_OBJ_PROP_MARKED)) |
| Get BT_OTS_OBJ_PROP_MARKED property. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_CREATE(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_CREATE, 1) |
| Set BT_OTS_OACP_SET_FEAT_CREATE feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_DELETE(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_DELETE, 1) |
| Set BT_OTS_OACP_FEAT_DELETE feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_CHECKSUM(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_CHECKSUM, 1) |
| Set BT_OTS_OACP_FEAT_CHECKSUM feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_EXECUTE(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_EXECUTE, 1) |
| Set BT_OTS_OACP_FEAT_EXECUTE feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_READ(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_READ, 1) |
| Set BT_OTS_OACP_FEAT_READ feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_WRITE(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_WRITE, 1) |
| Set BT_OTS_OACP_FEAT_WRITE feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_APPEND(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_APPEND, 1) |
| Set BT_OTS_OACP_FEAT_APPEND feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_TRUNCATE(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_TRUNCATE, 1) |
| Set BT_OTS_OACP_FEAT_TRUNCATE feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_PATCH(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_PATCH, 1) |
| Set BT_OTS_OACP_FEAT_PATCH feature. More...
|
|
#define | BT_OTS_OACP_SET_FEAT_ABORT(feat) WRITE_BIT(feat, BT_OTS_OACP_FEAT_ABORT, 1) |
| Set BT_OTS_OACP_FEAT_ABORT feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_CREATE(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_CREATE)) |
| Get BT_OTS_OACP_FEAT_CREATE feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_DELETE(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_DELETE)) |
| Get BT_OTS_OACP_FEAT_DELETE feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_CHECKSUM(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_CHECKSUM)) |
| Get BT_OTS_OACP_FEAT_CHECKSUM feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_EXECUTE(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_EXECUTE)) |
| Get BT_OTS_OACP_FEAT_EXECUTE feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_READ(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_READ)) |
| Get BT_OTS_OACP_FEAT_READ feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_WRITE(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_WRITE)) |
| Get BT_OTS_OACP_FEAT_WRITE feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_APPEND(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_APPEND)) |
| Get BT_OTS_OACP_FEAT_APPEND feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_TRUNCATE(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_TRUNCATE)) |
| Get BT_OTS_OACP_FEAT_TRUNCATE feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_PATCH(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_PATCH)) |
| Get BT_OTS_OACP_FEAT_PATCH feature. More...
|
|
#define | BT_OTS_OACP_GET_FEAT_ABORT(feat) ((feat) & BIT(BT_OTS_OACP_FEAT_ABORT)) |
| Get BT_OTS_OACP_FEAT_ABORT feature. More...
|
|
#define | BT_OTS_OLCP_SET_FEAT_GO_TO(feat) WRITE_BIT(feat, BT_OTS_OLCP_FEAT_GO_TO, 1) |
| Set BT_OTS_OLCP_FEAT_GO_TO feature. More...
|
|
#define | BT_OTS_OLCP_SET_FEAT_ORDER(feat) WRITE_BIT(feat, BT_OTS_OLCP_FEAT_ORDER, 1) |
| Set BT_OTS_OLCP_FEAT_ORDER feature. More...
|
|
#define | BT_OTS_OLCP_SET_FEAT_NUM_REQ(feat) WRITE_BIT(feat, BT_OTS_OLCP_FEAT_NUM_REQ, 1) |
| Set BT_OTS_OLCP_FEAT_NUM_REQ feature. More...
|
|
#define | BT_OTS_OLCP_SET_FEAT_CLEAR(feat) WRITE_BIT(feat, BT_OTS_OLCP_FEAT_CLEAR, 1) |
| Set BT_OTS_OLCP_FEAT_CLEAR feature. More...
|
|
#define | BT_OTS_OLCP_GET_FEAT_GO_TO(feat) ((feat) & BIT(BT_OTS_OLCP_FEAT_GO_TO)) |
| Get BT_OTS_OLCP_GET_FEAT_GO_TO feature. More...
|
|
#define | BT_OTS_OLCP_GET_FEAT_ORDER(feat) ((feat) & BIT(BT_OTS_OLCP_FEAT_ORDER)) |
| Get BT_OTS_OLCP_GET_FEAT_ORDER feature. More...
|
|
#define | BT_OTS_OLCP_GET_FEAT_NUM_REQ(feat) ((feat) & BIT(BT_OTS_OLCP_FEAT_NUM_REQ)) |
| Get BT_OTS_OLCP_GET_FEAT_NUM_REQ feature. More...
|
|
#define | BT_OTS_OLCP_GET_FEAT_CLEAR(feat) ((feat) & BIT(BT_OTS_OLCP_FEAT_CLEAR)) |
| Get BT_OTS_OLCP_GET_FEAT_CLEAR feature. More...
|
|
#define | BT_OTS_DATE_TIME_FIELD_SIZE 7 |
|
#define | BT_OTS_STOP 0 |
|
#define | BT_OTS_CONTINUE 1 |
|
|
int | bt_ots_obj_add (struct bt_ots *ots, const struct bt_ots_obj_add_param *param) |
| Add an object to the OTS instance. More...
|
|
int | bt_ots_obj_delete (struct bt_ots *ots, uint64_t id) |
| Delete an object from the OTS instance. More...
|
|
void * | bt_ots_svc_decl_get (struct bt_ots *ots) |
| Get the service declaration attribute. More...
|
|
int | bt_ots_init (struct bt_ots *ots, struct bt_ots_init *ots_init) |
| Initialize the OTS instance. More...
|
|
struct bt_ots * | bt_ots_free_instance_get (void) |
| Get a free instance of OTS from the pool. More...
|
|
int | bt_ots_client_register (struct bt_ots_client *ots_inst) |
| Register an Object Transfer Service Instance. More...
|
|
uint8_t | bt_ots_client_indicate_handler (struct bt_conn *conn, struct bt_gatt_subscribe_params *params, const void *data, uint16_t length) |
| OTS Indicate Handler function. More...
|
|
int | bt_ots_client_read_feature (struct bt_ots_client *otc_inst, struct bt_conn *conn) |
| Read the OTS feature characteristic. More...
|
|
int | bt_ots_client_select_id (struct bt_ots_client *otc_inst, struct bt_conn *conn, uint64_t obj_id) |
| Select an object by its Object ID. More...
|
|
int | bt_ots_client_select_first (struct bt_ots_client *otc_inst, struct bt_conn *conn) |
| Select the first object. More...
|
|
int | bt_ots_client_select_last (struct bt_ots_client *otc_inst, struct bt_conn *conn) |
| Select the last object. More...
|
|
int | bt_ots_client_select_next (struct bt_ots_client *otc_inst, struct bt_conn *conn) |
| Select the next object. More...
|
|
int | bt_ots_client_select_prev (struct bt_ots_client *otc_inst, struct bt_conn *conn) |
| Select the previous object. More...
|
|
int | bt_ots_client_read_object_metadata (struct bt_ots_client *otc_inst, struct bt_conn *conn, uint8_t metadata) |
| Read the metadata of the current object. More...
|
|
int | bt_ots_client_read_object_data (struct bt_ots_client *otc_inst, struct bt_conn *conn) |
| Read the data of the current selected object. More...
|
|
int | bt_ots_client_write_object_data (struct bt_ots_client *otc_inst, struct bt_conn *conn, const void *buf, size_t len, off_t offset, enum bt_ots_oacp_write_op_mode mode) |
| Write the data of the current selected object. More...
|
|
int | bt_ots_client_get_object_checksum (struct bt_ots_client *otc_inst, struct bt_conn *conn, off_t offset, size_t len) |
| Get the checksum of the current selected object. More...
|
|
int | bt_ots_client_decode_dirlisting (uint8_t *data, uint16_t length, bt_ots_client_dirlisting_cb cb) |
| Decode Directory Listing object into object metadata. More...
|
|
static int | bt_ots_obj_id_to_str (uint64_t obj_id, char *str, size_t len) |
| Converts binary OTS Object ID to string. More...
|
|
void | bt_ots_metadata_display (struct bt_ots_obj_metadata *metadata, uint16_t count) |
| Displays one or more object metadata as text with LOG_INF. More...
|
|
static uint32_t | bt_ots_client_calc_checksum (const uint8_t *data, size_t len) |
| Generate IEEE conform CRC32 checksum. More...
|
|