Home
last modified time | relevance | path

Searched refs:obj_index (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_ots.c165 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_created() local
167 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_created()
171 obj = &objects[obj_index]; in ots_obj_created()
196 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_deleted() local
201 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_deleted()
205 obj = &objects[obj_index]; in ots_obj_deleted()
221 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_read() local
229 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_read()
233 *data = &objects[obj_index].data[offset]; in ots_obj_read()
242 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_write() local
[all …]
/Zephyr-latest/samples/bluetooth/peripheral_ots/src/
Dmain.c143 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_read() local
154 *data = &objects[obj_index].data[offset]; in ots_obj_read()
159 if ((obj_index % 2) == 0) { in ots_obj_read()
175 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_write() local
183 (void)memcpy(&objects[obj_index].data[offset], data, len); in ots_obj_write()
202 uint32_t obj_index = OTS_OBJ_ID_TO_OBJ_IDX(id); in ots_obj_cal_checksum() local
204 if (obj_index >= OBJ_POOL_SIZE) { in ots_obj_cal_checksum()
208 *data = &objects[obj_index].data[offset]; in ots_obj_cal_checksum()