Searched refs:ots_init (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.5.0/samples/bluetooth/peripheral_ots/src/ |
D | main.c | 221 static int ots_init(void) in ots_init() function 226 struct bt_ots_init_param ots_init; in ots_init() local 240 (void)memset(&ots_init, 0, sizeof(ots_init)); in ots_init() 241 BT_OTS_OACP_SET_FEAT_READ(ots_init.features.oacp); in ots_init() 242 BT_OTS_OACP_SET_FEAT_WRITE(ots_init.features.oacp); in ots_init() 243 BT_OTS_OACP_SET_FEAT_CREATE(ots_init.features.oacp); in ots_init() 244 BT_OTS_OACP_SET_FEAT_DELETE(ots_init.features.oacp); in ots_init() 245 BT_OTS_OACP_SET_FEAT_PATCH(ots_init.features.oacp); in ots_init() 246 BT_OTS_OLCP_SET_FEAT_GO_TO(ots_init.features.olcp); in ots_init() 247 ots_init.cb = &ots_callbacks; in ots_init() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/services/ots/ |
D | ots.c | 446 struct bt_ots_init_param *ots_init) in bt_ots_init() argument 450 if (!ots || !ots_init || !ots_init->cb) { in bt_ots_init() 454 __ASSERT(ots_init->cb->obj_created, in bt_ots_init() 456 __ASSERT(ots_init->cb->obj_deleted || in bt_ots_init() 457 !BT_OTS_OACP_GET_FEAT_CREATE(ots_init->features.oacp), in bt_ots_init() 460 __ASSERT(ots_init->cb->obj_cal_checksum, in bt_ots_init() 463 __ASSERT(ots_init->cb->obj_read || in bt_ots_init() 464 !BT_OTS_OACP_GET_FEAT_READ(ots_init->features.oacp), in bt_ots_init() 466 __ASSERT(ots_init->cb->obj_write || in bt_ots_init() 467 !BT_OTS_OACP_GET_FEAT_WRITE(ots_init->features.oacp), in bt_ots_init() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/ |
D | mcs.c | 1351 struct bt_ots_init_param ots_init; in bt_mcs_init() local 1360 memset(&ots_init, 0, sizeof(ots_init)); in bt_mcs_init() 1361 BT_OTS_OACP_SET_FEAT_READ(ots_init.features.oacp); in bt_mcs_init() 1362 BT_OTS_OLCP_SET_FEAT_GO_TO(ots_init.features.olcp); in bt_mcs_init() 1363 ots_init.cb = ots_cbs; in bt_mcs_init() 1366 err = bt_ots_init(ots, &ots_init); in bt_mcs_init()
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/services/ |
D | ots.h | 806 int bt_ots_init(struct bt_ots *ots, struct bt_ots_init_param *ots_init);
|