AIROC™ BTSDK v4.2 - Documentation | ||||
This section describes API and Data structures required to initialize and configure the Bluetooth stack. More...
Data Structures | |
struct | wiced_bt_cfg_ble_scan_settings_t |
LE Scan settings. More... | |
struct | wiced_bt_cfg_ble_advert_settings_t |
Advertising settings. More... | |
struct | wiced_bt_cfg_gatt_t |
GATT settings. More... | |
struct | wiced_bt_cfg_avdt_t |
Audio/Video Distribution configuration. More... | |
struct | wiced_bt_cfg_avrc_t |
Audio/Video Remote Control configuration. More... | |
struct | wiced_bt_cfg_rfcomm_t |
RFCOMM configuration. More... | |
struct | wiced_bt_cfg_isoc_t |
Ischoronous Connection configuration settings. More... | |
struct | wiced_bt_cfg_br_t |
BR/EDR configuration settings. More... | |
struct | wiced_bt_cfg_ble_t |
LE configuration settings. More... | |
struct | wiced_bt_cfg_l2cap_application_t |
Settings for application managed L2CAP protocols (optional) More... | |
struct | wiced_bt_cfg_settings_t_ |
Bluetooth stack configuration. More... | |
Typedefs | |
typedef uint8_t | wiced_bt_ble_scan_mode_t |
scan mode (see wiced_bt_ble_scan_mode_e) | |
typedef uint8_t | wiced_bt_sec_level_t |
Required security level. | |
typedef uint8_t | wiced_bt_ble_advert_chnl_map_t |
LE advertisement channel map (see wiced_bt_ble_advert_chnl_map_e) | |
typedef uint16_t | wiced_bt_gatt_appearance_t |
GATT appearance (see gatt_appearance_e in gattdefs.h) | |
typedef struct wiced_bt_cfg_settings_t_ | wiced_bt_cfg_settings_t |
Bluetooth stack configuration. | |
Enumerations | |
enum | wiced_bt_ble_scan_mode_e { BTM_BLE_SCAN_MODE_PASSIVE = 0, BTM_BLE_SCAN_MODE_ACTIVE = 1, BTM_BLE_SCAN_MODE_NONE = 0xff } |
Scan modes. More... | |
enum | wiced_bt_sec_level_e { BTM_SEC_BEST_EFFORT = 1, BTM_SEC_SC_REQUIRED = 2, BTM_SEC_AUTH_REQUIRED = 4, BTM_SEC_SC_AUTH_REQUIRED = (BTM_SEC_SC_REQUIRED | 4) } |
Security Service Levels (bit fields) More... | |
enum | wiced_bt_ble_advert_chnl_map_e { BTM_BLE_ADVERT_CHNL_37 = (0x01 << 0), BTM_BLE_ADVERT_CHNL_38 = (0x01 << 1), BTM_BLE_ADVERT_CHNL_39 = (0x01 << 2) } |
advertising channel map More... | |
Functions | |
int32_t | wiced_bt_stack_get_dynamic_memory_size_for_config (const wiced_bt_cfg_settings_t *p_bt_cfg_settings) |
Returns the expected dynamic memory size required for the stack based on the p_bt_cfg_settings. More... | |
Bluetooth Configuration Default Values | |
Bluetooth Configuration Default Values
| |
#define | WICED_BT_CFG_DEFAULT_INQUIRY_SCAN_INTERVAL 0x0800 |
Inquiry scan interval (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_INQUIRY_SCAN_WINDOW 0x0012 |
Inquiry scan window (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_PAGE_SCAN_INTERVAL 0x0800 |
Page scan interval (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_PAGE_SCAN_WINDOW 0x0012 |
Page scan window (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_SCAN_INTERVAL 96 |
High duty scan interval (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_SCAN_WINDOW 48 |
High duty scan window (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_SCAN_INTERVAL 2048 |
Low duty scan interval (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_SCAN_WINDOW 18 |
Low duty scan window (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_CONN_SCAN_INTERVAL 96 |
High duty cycle connection scan interval (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_CONN_SCAN_WINDOW 48 |
High duty cycle connection scan window (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_CONN_SCAN_INTERVAL 2048 |
Low duty cycle connection scan interval (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_CONN_SCAN_WINDOW 18 |
Low duty cycle connection scan window (in slots (1 slot = 0.625 ms)) | |
#define | WICED_BT_CFG_DEFAULT_CONN_MIN_INTERVAL 80 |
Minimum connection event interval ( in 1.25 msec) | |
#define | WICED_BT_CFG_DEFAULT_CONN_MAX_INTERVAL 80 |
Maximum connection event interval ( in 1.25 msec) | |
#define | WICED_BT_CFG_DEFAULT_CONN_LATENCY 0 |
Connection latency (in number of LL connection events) | |
#define | WICED_BT_CFG_DEFAULT_CONN_SUPERVISION_TIMEOUT 700 |
Connection link supervision timeout (in 10 msec) | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_ADV_MIN_INTERVAL 48 |
Tgap(adv_fast_interval1) = 48 *0.625 = 30ms. | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_ADV_MAX_INTERVAL 48 |
Tgap(adv_fast_interval1) = 48 *0.625 = 30ms. | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_ADV_MIN_INTERVAL 2048 |
Tgap(adv_slow_interval) = 2048 * 0.625 = 1.28s. | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_ADV_MAX_INTERVAL 2048 |
Tgap(adv_slow_interval) = 2048 * 0.625 = 1.28s. | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_NONCONN_ADV_MIN_INTERVAL 160 |
Tgap(adv_fast_interval2) = 160 * 0.625 = 100 ms. | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_NONCONN_ADV_MAX_INTERVAL 160 |
Tgap(adv_fast_interval2) = 160 * 0.625 = 100 ms. | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_NONCONN_ADV_MIN_INTERVAL 2048 |
Tgap(adv_slow_interval) = 2048 * 0.625 = 1.28s. | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_NONCONN_ADV_MAX_INTERVAL 2048 |
Tgap(adv_slow_interval) = 2048 * 0.625 = 1.28s. | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_DIRECTED_ADV_MIN_INTERVAL 400 |
Tgap(dir_conn_adv_int_max) = 400 * 0.625 = 250 ms. | |
#define | WICED_BT_CFG_DEFAULT_HIGH_DUTY_DIRECTED_ADV_MAX_INTERVAL 800 |
Tgap(dir_conn_adv_int_min) = 800 * 0.625 = 500 ms. | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_DIRECTED_ADV_MIN_INTERVAL 48 |
Tgap(adv_fast_interval1) = 48 * 0.625 = 30 ms. | |
#define | WICED_BT_CFG_DEFAULT_LOW_DUTY_DIRECTED_ADV_MAX_INTERVAL 48 |
Tgap(adv_fast_interval1) = 48 * 0.625 = 30 ms. | |
#define | WICED_BT_CFG_DEFAULT_RANDOM_ADDRESS_CHANGE_TIMEOUT 900 |
default refreshment timing interval 900secs | |
#define | WICED_BT_CFG_DEFAULT_RANDOM_ADDRESS_NEVER_CHANGE 0 |
value for disabling random address refresh | |
#define | WICED_BT_CFG_MAX_RANDOM_ADDRESS_CHANGE_TIMEOUT 3600 |
max refreshment timing interval 3600secs | |
wiced_result_t | wiced_bt_stack_init (wiced_bt_management_cback_t *p_bt_management_cback, const wiced_bt_cfg_settings_t *p_bt_cfg_settings) |
Initialize the Bluetooth controller and stack; register callback for Bluetooth event notification. More... | |
wiced_result_t | wiced_bt_stack_deinit (void) |
This is a blocking call (returns after all de-initialisation procedures are complete) It is recommended that the application disconnect any outstanding connections prior to invoking this function. More... | |
This section describes API and Data structures required to initialize and configure the Bluetooth stack.
enum wiced_bt_sec_level_e |
Security Service Levels (bit fields)
wiced_result_t wiced_bt_stack_deinit | ( | void | ) |
This is a blocking call (returns after all de-initialisation procedures are complete) It is recommended that the application disconnect any outstanding connections prior to invoking this function.
int32_t wiced_bt_stack_get_dynamic_memory_size_for_config | ( | const wiced_bt_cfg_settings_t * | p_bt_cfg_settings | ) |
Returns the expected dynamic memory size required for the stack based on the p_bt_cfg_settings.
[in] | p_bt_cfg_settings | : Bluetooth stack configuration |
wiced_result_t wiced_bt_stack_init | ( | wiced_bt_management_cback_t * | p_bt_management_cback, |
const wiced_bt_cfg_settings_t * | p_bt_cfg_settings | ||
) |
Initialize the Bluetooth controller and stack; register callback for Bluetooth event notification.
[in] | p_bt_management_cback | : Callback for receiving Bluetooth management events |
[in] | p_bt_cfg_settings | : Bluetooth stack configuration wiced_bt_cfg_settings_t |