This section describes API and Data structures required to initialize and configure the BTSTACK and various submodules.
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... | |
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) |
This API initializes the stack based on the configuration in p_bt_cfg_settings and allocates memory as per the configuration. More... | |
wiced_result_t | wiced_bt_stack_deinit (void) |
This is a blocking call (returns after all de-initialization procedures are complete) It is recommended that the application disconnect any outstanding connections prior to invoking this function. More... | |
wiced_result_t | wiced_bt_smp_module_init (void) |
Initialize SMP(Security Manager). More... | |
wiced_result_t | wiced_bt_init_resolution (void) |
This API enables the Host based address resolution. More... | |
wiced_result_t wiced_bt_init_resolution | ( | void | ) |
This API enables the Host based address resolution.
If Host based resolution is enabled then advertisment packet with Resolvable private address is resolved by host.
wiced_result_t wiced_bt_smp_module_init | ( | void | ) |
Initialize SMP(Security Manager).
This API enables the Security Manager module in the stack to accept incoming pairing requests
wiced_result_t wiced_bt_stack_deinit | ( | void | ) |
This is a blocking call (returns after all de-initialization 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 | ||
) |
This API initializes the stack based on the configuration in p_bt_cfg_settings and allocates memory as per the configuration.
It also initializes platform interfaces and the controller. It registers the application callback for notification of Bluetooth events issues by the stack. Upon successfully Initialization of Bluetooth controller and stack, application receives BTM_ENABLED_EVT with the event data in wiced_bt_dev_enabled_t.
[in] | p_bt_management_cback | : Callback for receiving Bluetooth management events(wiced_bt_management_evt_e) |
[in] | p_bt_cfg_settings | : Bluetooth stack configuration wiced_bt_cfg_settings_t |