/Zephyr-latest/tests/bsim/bluetooth/host/adv/long_ad/src/ |
D | scanner.c | 32 struct net_buf_simple *ad) in device_found() argument 40 if (ad->len > 0) { in device_found() 41 LOG_INF("Received AD of size %d", ad->len); in device_found() 43 TEST_ASSERT(ad->len == ARRAY_SIZE(test_ad2), in device_found() 44 "Received %d bytes of Advertising Data %d bytes were expected", ad->len, in device_found() 47 if (memcmp(ad->data, test_ad2, ad->len) != 0) { in device_found() 48 LOG_HEXDUMP_ERR(ad->data, ad->len, "Received AD:"); in device_found() 54 bt_data_parse(ad, data_parse_cb, NULL); in device_found()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | data.c | 16 void bt_data_parse(struct net_buf_simple *ad, in bt_data_parse() argument 20 while (ad->len > 1) { in bt_data_parse() 24 len = net_buf_simple_pull_u8(ad); in bt_data_parse() 30 if (len > ad->len) { in bt_data_parse() 32 len, ad->len); in bt_data_parse() 36 data.type = net_buf_simple_pull_u8(ad); in bt_data_parse() 38 data.data = ad->data; in bt_data_parse() 44 net_buf_simple_pull(ad, len - 1); in bt_data_parse()
|
/Zephyr-latest/tests/bluetooth/adv/src/ |
D | main.c | 18 static const struct bt_data ad[] = { variable 42 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in ZTEST() 49 err = bt_le_adv_update_data(ad, ARRAY_SIZE(ad), in ZTEST()
|
/Zephyr-latest/samples/bluetooth/bthome_sensor_template/src/ |
D | main.c | 31 static struct bt_data ad[] = { variable 47 err = bt_le_adv_start(ADV_PARAM, ad, ARRAY_SIZE(ad), NULL, 0); in bt_ready() 75 err = bt_le_adv_update_data(ad, ARRAY_SIZE(ad), NULL, 0); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_scanner.c | 73 struct bt_data ad; in test_tx_send_ad_type_msg() local 79 ad.type = type; in test_tx_send_ad_type_msg() 80 ad.data_len = len; in test_tx_send_ad_type_msg() 81 ad.data = data; in test_tx_send_ad_type_msg() 87 LOG_DBG("ad.type %u len %u", ad.type, ad.data_len); in test_tx_send_ad_type_msg() 88 LOG_HEXDUMP_DBG(ad.data, ad.data_len, "ad.data"); in test_tx_send_ad_type_msg() 92 err = bt_le_adv_start(¶m, &ad, 1, NULL, 0); in test_tx_send_ad_type_msg()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | adv_legacy.c | 48 const struct bt_data *ad, size_t ad_len, in bt_data_send() argument 98 err = bt_le_adv_start(¶m, ad, ad_len, NULL, 0); in bt_data_send() 127 const struct bt_data *ad, size_t ad_len) in bt_mesh_adv_bt_data_send() argument 129 return bt_data_send(num_events, adv_int, ad, ad_len, NULL); in bt_mesh_adv_bt_data_send() 136 struct bt_data ad; in adv_send() local 143 ad.type = bt_mesh_adv_type[adv->ctx.type]; in adv_send() 144 ad.data_len = adv->b.len; in adv_send() 145 ad.data = adv->b.data; in adv_send() 147 bt_data_send(num_events, adv_int, &ad, 1, &adv->ctx); in adv_send() 274 const struct bt_data *ad, size_t ad_len, in bt_mesh_adv_gatt_start() argument [all …]
|
D | rpr_srv.c | 62 uint8_t ad[CONFIG_BT_MESH_RPR_AD_TYPES_MAX]; member 118 static uint8_t *get_ad_type(uint8_t *list, size_t count, uint8_t ad) in get_ad_type() argument 123 if (ad == list[i] || (ad == BT_DATA_NAME_SHORTENED && in get_ad_type() 632 uint8_t *ad = NULL; in handle_extended_scan_start() local 648 ad = net_buf_simple_pull_mem(buf, ad_count); in handle_extended_scan_start() 650 if (ad[i] == BT_DATA_NAME_SHORTENED || in handle_extended_scan_start() 651 ad[i] == BT_DATA_UUID16_SOME || in handle_extended_scan_start() 652 ad[i] == BT_DATA_UUID32_SOME || in handle_extended_scan_start() 653 ad[i] == BT_DATA_UUID128_SOME) { in handle_extended_scan_start() 658 if (ad[i] == ad[j]) { in handle_extended_scan_start() [all …]
|
/Zephyr-latest/samples/boards/st/power_mgmt/stm32wb_ble/src/ |
D | main.c | 28 static const struct bt_data ad[] = { variable 62 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), in bt_ready() 93 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), in bt_ready()
|
/Zephyr-latest/samples/bluetooth/ibeacon/src/ |
D | main.c | 28 static const struct bt_data ad[] = { variable 53 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in bt_ready()
|
/Zephyr-latest/samples/bluetooth/broadcaster/src/ |
D | main.c | 19 static const struct bt_data ad[] = { variable 44 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in main()
|
/Zephyr-latest/tests/bluetooth/common/testlib/src/ |
D | adv.c | 63 struct bt_data ad; in bt_testlib_adv_conn() local 65 ad.type = BT_DATA_NAME_COMPLETE; in bt_testlib_adv_conn() 66 ad.data_len = strlen(name); in bt_testlib_adv_conn() 67 ad.data = (const uint8_t *)name; in bt_testlib_adv_conn() 69 api_err = bt_le_ext_adv_set_data(adv, &ad, 1, NULL, 0); in bt_testlib_adv_conn()
|
/Zephyr-latest/subsys/bluetooth/services/nus/ |
D | bt_nus_auto_start_bt.c | 14 static const struct bt_data ad[] = { variable 30 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); in bt_nus_auto_start()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | csip_notify_server_test.c | 55 const struct bt_data ad[] = { in test_main() local 81 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_main() 122 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_main()
|
D | pacs_notify_server_test.c | 161 const struct bt_data ad[] = { in test_main() local 194 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_main() 228 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_main() 245 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_main() 279 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_main()
|
D | bap_bass_broadcaster_test.c | 30 struct bt_data ad[2] = { in test_main() local 60 err = bt_le_ext_adv_set_data(adv, ad, ARRAY_SIZE(ad), NULL, 0); in test_main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/ |
D | tester.c | 39 struct net_buf_simple *ad) in cb_expect_rpa() argument 83 struct net_buf_simple *ad) in cb_expect_id() argument 100 static void scan_cb(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, struct net_buf_simple *ad) in scan_cb() argument 109 cb_expect_id(addr, rssi, type, ad); in scan_cb() 115 cb_expect_rpa(addr, rssi, type, ad); in scan_cb()
|
D | dut.c | 19 static const struct bt_data ad[] = { variable 49 err = bt_le_adv_start(¶m, ad, ARRAY_SIZE(ad), NULL, 0); in start_advertising()
|
/Zephyr-latest/samples/bluetooth/beacon/src/ |
D | main.c | 25 static const struct bt_data ad[] = { variable 57 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), in bt_ready()
|
/Zephyr-latest/samples/bluetooth/scan_adv/src/ |
D | main.c | 18 static const struct bt_data ad[] = { variable 59 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/ |
D | dummy_peripheral.c | 29 const struct bt_data ad[] = { in test_peripheral_dummy() local 44 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in test_peripheral_dummy()
|
/Zephyr-latest/samples/bluetooth/peripheral_hr/src/ |
D | main.c | 23 static const struct bt_data ad[] = { variable 207 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); in main() 240 err = bt_le_ext_adv_set_data(adv, ad, ARRAY_SIZE(ad), NULL, 0); in main() 284 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), sd, in main()
|
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/ |
D | test_connect2.c | 91 static const struct bt_data ad[] = { variable 129 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in start_advertising() 154 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0); in bt_ready()
|
/Zephyr-latest/samples/subsys/mgmt/mcumgr/smp_svr/src/ |
D | bluetooth.c | 20 static const struct bt_data ad[] = { variable 33 rc = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); in advertise()
|
/Zephyr-latest/samples/bluetooth/periodic_adv/src/ |
D | main.c | 15 static const struct bt_data ad[] = { variable 41 err = bt_le_ext_adv_set_data(adv, ad, ARRAY_SIZE(ad), NULL, 0); in main()
|
/Zephyr-latest/samples/bluetooth/peripheral_dis/src/ |
D | main.c | 24 static const struct bt_data ad[] = { variable 103 err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); in main()
|