Home
last modified time | relevance | path

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

/Zephyr-latest/samples/bluetooth/periodic_adv_conn/src/
Dmain.c28 static struct bt_le_per_adv_subevent_data_params subevent_data_params[NUM_SUBEVENTS]; variable
32 BUILD_ASSERT(ARRAY_SIZE(bufs) == ARRAY_SIZE(subevent_data_params));
33 BUILD_ASSERT(ARRAY_SIZE(backing_store) == ARRAY_SIZE(subevent_data_params));
42 to_send = MIN(request->count, ARRAY_SIZE(subevent_data_params)); in request_cb()
44 subevent_data_params[i].subevent = in request_cb()
46 subevent_data_params[i].response_slot_start = 0; in request_cb()
47 subevent_data_params[i].response_slot_count = NUM_RSP_SLOTS; in request_cb()
48 subevent_data_params[i].data = &bufs[i]; in request_cb()
51 err = bt_le_per_adv_set_subevent_data(adv, to_send, subevent_data_params); in request_cb()
/Zephyr-latest/samples/bluetooth/periodic_adv_rsp/src/
Dmain.c44 static struct bt_le_per_adv_subevent_data_params subevent_data_params[NUM_SUBEVENTS]; variable
48 BUILD_ASSERT(ARRAY_SIZE(bufs) == ARRAY_SIZE(subevent_data_params));
49 BUILD_ASSERT(ARRAY_SIZE(backing_store) == ARRAY_SIZE(subevent_data_params));
59 to_send = MIN(request->count, ARRAY_SIZE(subevent_data_params)); in request_cb()
65 subevent_data_params[i].subevent = in request_cb()
67 subevent_data_params[i].response_slot_start = 0; in request_cb()
68 subevent_data_params[i].response_slot_count = NUM_RSP_SLOTS; in request_cb()
69 subevent_data_params[i].data = buf; in request_cb()
72 err = bt_le_per_adv_set_subevent_data(adv, to_send, subevent_data_params); in request_cb()