nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
Audio Bluetooth Management

Bluetooth management API for Audio applications. More...

Topics

 Functions for scanning for a broadcast.
 Helper functions to manage scanning for a broadcast.
 
 Functions for scanning for a connection.
 Helper functions to manage scanning for a connection.
 

Macros

#define LE_AUDIO_EXTENDED_ADV
 
#define LE_AUDIO_EXTENDED_ADV_CONN
 
#define LE_AUDIO_EXTENDED_ADV_CONN_FILTER
 
#define LE_AUDIO_PERIODIC_ADV
 
#define BT_LE_ADV_FAST_CONN
 
#define BLE_SEARCH_NAME_MAX_LEN   33
 
#define BRDCAST_ID_NOT_USED   (BT_AUDIO_BROADCAST_ID_MAX + 1)
 

Enumerations

enum  bt_mgmt_scan_type { BT_MGMT_SCAN_TYPE_CONN = 1 , BT_MGMT_SCAN_TYPE_BROADCAST = 2 }
 Bluetooth management scan type enumeration. More...
 

Functions

void bt_mgmt_set_size_filled_get (uint8_t *num_filled)
 Get the numbers of connected members of a given 'Set Identity Resolving Key' (SIRK). The SIRK shall be set through bt_mgmt_scan_sirk_set() before calling this function.
 
void bt_mgmt_scan_sirk_set (uint8_t const *const sirk)
 Set 'Set Identity Resolving Key' (SIRK). Used for searching for other member of the same set.
 
int bt_mgmt_adv_buffer_put (struct bt_data *const adv_buf, uint32_t *index, size_t adv_buf_vacant, size_t data_len, uint8_t type, void *data)
 Load advertising data into an advertising buffer.
 
int bt_mgmt_scan_start (uint16_t scan_intvl, uint16_t scan_win, enum bt_mgmt_scan_type type, char const *const name, uint32_t brdcast_id)
 Start scanning for advertisements.
 
int bt_mgmt_manufacturer_uuid_populate (struct net_buf_simple *uuid_buf, uint16_t company_id)
 Add manufacturer ID UUID to the advertisement packet.
 
int bt_mgmt_per_adv_stop (uint8_t ext_adv_index)
 Stop periodic advertising.
 
int bt_mgmt_ext_adv_stop (uint8_t ext_adv_index)
 Stop extended advertising.
 
int bt_mgmt_adv_start (uint8_t ext_adv_index, const struct bt_data *ext_adv, size_t ext_adv_size, const struct bt_data *per_adv, size_t per_adv_size, bool connectable)
 Create and start advertising for an ACL connection.
 
void bt_mgmt_num_conn_get (uint8_t *num_conn)
 Get the number of active connections.
 
int bt_mgmt_bonding_clear (void)
 Clear all bonded devices.
 
void bt_mgmt_scan_delegator_init (void)
 Scan delegator feature initialization.
 
void bt_mgmt_broadcast_code_ptr_get (uint8_t **broadcast_code_ptr)
 Get the pointer to broadcast code.
 
int bt_mgmt_pa_sync_delete (struct bt_le_per_adv_sync *pa_sync)
 Delete a periodic advertisement sync.
 
int bt_mgmt_conn_disconnect (struct bt_conn *conn, uint8_t reason)
 Disconnect from a remote device or cancel the pending connection.
 
int bt_mgmt_init (void)
 Initialize the Bluetooth management module.
 

Detailed Description

Bluetooth management API for Audio applications.

This module provides comprehensive Bluetooth management functionality including device initialization, connection handling, scanning, advertising, and security management.