![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Library for handling connectable Bluetooth LE advertising. More...
Data Structures | |
| struct | ble_adv_evt |
| Advertising event. More... | |
| struct | ble_adv |
| Bluetooth LE advertising instance. More... | |
| struct | ble_adv_config |
| Advertising library initialization parameters. More... | |
Macros | |
| #define | BLE_ADV_DEF(instance) |
| Declare an instance of a Bluetooth LE advertising library. | |
Typedefs | |
| typedef void(* | ble_adv_evt_handler_t) (struct ble_adv *adv, const struct ble_adv_evt *adv_evt) |
| Bluetooth LE advertising event handler. | |
Enumerations | |
| enum | ble_adv_mode { BLE_ADV_MODE_IDLE , BLE_ADV_MODE_DIRECTED_HIGH_DUTY , BLE_ADV_MODE_DIRECTED , BLE_ADV_MODE_FAST , BLE_ADV_MODE_SLOW } |
| Advertising modes. More... | |
| enum | ble_adv_evt_type { BLE_ADV_EVT_IDLE , BLE_ADV_EVT_DIRECTED_HIGH_DUTY , BLE_ADV_EVT_DIRECTED , BLE_ADV_EVT_FAST , BLE_ADV_EVT_SLOW , BLE_ADV_EVT_FAST_ALLOW_LIST , BLE_ADV_EVT_SLOW_ALLOW_LIST , BLE_ADV_EVT_ALLOW_LIST_REQUEST , BLE_ADV_EVT_PEER_ADDR_REQUEST , BLE_ADV_EVT_ERROR } |
| Advertising event types. More... | |
Functions | |
| void | ble_adv_on_ble_evt (const ble_evt_t *ble_evt, void *ble_adv) |
| Bluetooth LE event handler for the advertising library. | |
| uint32_t | ble_adv_init (struct ble_adv *ble_adv, const struct ble_adv_config *ble_adv_config) |
| Initialize the Bluetooth LE advertising library. | |
| uint32_t | ble_adv_conn_cfg_tag_set (struct ble_adv *ble_adv, uint8_t ble_cfg_tag) |
| Set the connection configuration tag used for connections. | |
| uint32_t | ble_adv_start (struct ble_adv *ble_adv, enum ble_adv_mode mode) |
| Start advertising in given mode. | |
| uint32_t | ble_adv_stop (struct ble_adv *ble_adv) |
| Stop advertising. | |
| uint32_t | ble_adv_peer_addr_reply (struct ble_adv *ble_adv, const ble_gap_addr_t *peer_addr) |
| Set the peer address for directed advertising. | |
| uint32_t | ble_adv_allow_list_reply (struct ble_adv *ble_adv, const ble_gap_addr_t *gap_addrs, uint32_t addr_cnt, const ble_gap_irk_t *gap_irks, uint32_t irk_cnt) |
| Set an allow list for fast and slow advertising. | |
| uint32_t | ble_adv_restart_without_allow_list (struct ble_adv *ble_adv) |
| Restart advertising without allow list. | |
| uint32_t | ble_adv_data_update (struct ble_adv *ble_adv, const struct ble_adv_data *adv, const struct ble_adv_data *sr) |
| Update advertising data. | |
Library for handling connectable Bluetooth LE advertising.
The Bluetooth LE advertising library supports only applications with a single peripheral link.