![]() |
MT2523 API Reference
LinkIt SDK v4
|
Define the callback manager structures. More...
Define the callback manager structures.
This section defines the module mask for different module events.
Please refer to the bt_type.h for more details about BT_MOUDLE_**.
Typedefs | |
| typedef uint32_t | bt_callback_module_mask_t |
| Type definition of a module mask. More... | |
| #define BT_CALLBACK_MANAGER_APP_EVENT_CALLBACK_MAX (20) |
The maximum number of callbacks that can be registered for bt_callback_type_app_event.
| #define BT_CALLBACK_MANAGER_USER_RECORD_MAX (10) |
The maximum number of user records.
| #define MODULE_MASK_A2DP MODULE_MASK_OFFSET(BT_MODULE_A2DP) |
To get the module offset of the BT_MODULE_A2DP.
| #define MODULE_MASK_AVRCP MODULE_MASK_OFFSET(BT_MODULE_AVRCP) |
To get the module offset of the BT_MODULE_AVRCP.
| #define MODULE_MASK_AWS MODULE_MASK_OFFSET(BT_MODULE_AWS) |
To get the module offset of the BT_MODULE_AWS.
| #define MODULE_MASK_GAP MODULE_MASK_OFFSET(BT_MODULE_GAP) |
To get the module offset of the BT_MODULE_GAP.
| #define MODULE_MASK_GATT MODULE_MASK_OFFSET(BT_MODULE_GATT) |
To get the module offset of the BT_MODULE_GATT.
| #define MODULE_MASK_HFP MODULE_MASK_OFFSET(BT_MODULE_HFP) |
To get the module offset of the BT_MODULE_HFP.
| #define MODULE_MASK_MM MODULE_MASK_OFFSET(BT_MODULE_MM) |
To get the module offset of the BT_MODULE_MM.
| #define MODULE_MASK_OFFSET | ( | value | ) | (1<<((value) >> BT_MODULE_OFFSET)) |
To get the module offset.
| #define MODULE_MASK_PBAPC MODULE_MASK_OFFSET(BT_MODULE_PBAPC) |
To get the module offset of the BT_MODULE_PBAPC.
| #define MODULE_MASK_SPP MODULE_MASK_OFFSET(BT_MODULE_SPP) |
To get the module offset of the BT_MODULE_SPP.
| #define MODULE_MASK_SYSTEM MODULE_MASK_OFFSET(BT_MODULE_SYSTEM) |
To get the module offset of the BT_MODULE_SYSTEM.
| typedef uint32_t bt_callback_module_mask_t |
Type definition of a module mask.
| enum bt_callback_type_t |
This structure defines the callback type to register.
| Enumerator | |
|---|---|
| bt_callback_type_app_event |
The prototype of the callback function for this callback type is defined as bt_app_event_callback(). |
| bt_callback_type_gap_get_local_configuration |
Must have one and only one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_get_local_configuration(). |
| bt_callback_type_gap_get_pin_code |
Cannot have more than one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_get_pin_code(). |
| bt_callback_type_gap_get_link_key |
Cannot have more than one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_get_link_key(). |
| bt_callback_type_gap_le_is_accept_connection_update_request |
Cannot have more than one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_le_update_connection_parameter(). |
| bt_callback_type_gap_le_get_local_key |
Cannot have more than one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_le_get_local_key(). |
| bt_callback_type_gap_le_get_local_cofig |
Must have one and only one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_le_get_local_config(). |
| bt_callback_type_gap_le_get_pairing_config |
Must have one and only one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_le_get_pairing_config(). |
| bt_callback_type_gap_le_get_bonding_info |
Must have one and only one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gap_le_get_bonding_info(). |
| bt_callback_type_gatts_get_authorization_check_result |
Cannot have more than one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gatts_get_authorization_check_result(). |
| bt_callback_type_gatts_get_execute_write_result |
Cannot have more than one callback registered for this callback type. The prototype of the callback function for this callback type is defined as bt_gatts_get_execute_write_result(). |
| bt_callback_type_hfp_get_init_params |
Must have one and only one callback registered for this callback type, if HFP is required. The prototype of the callback function for this callback type is defined as bt_hfp_get_init_params(). |
| bt_callback_type_a2dp_get_init_params |
Must have one and only one callback registered for this callback type, if A2DP is required. The prototype of the callback function for this callback type is defined as bt_a2dp_get_init_params(). |
| bt_callback_type_max |
The maximum number of the callback types. |