Bluetooth HAL I/F. More...
#include <stdint.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/bt_a2dp_codecs.h>
#include <bluetooth/bt_avrcp_cmds.h>
#include <bluetooth/bt_hfp_features.h>
#include <bluetooth/ble_gatt.h>
#include <bluetooth/ble_params.h>
#include <bluetooth/hal/bt_event.h>
Go to the source code of this file.
Classes | |
struct | bt_hal_common_ops_s |
Bluetooth Common HAL callbacks. More... | |
struct | bt_hal_a2dp_ops_s |
Bluetooth A2DP HAL callbacks. More... | |
struct | bt_hal_avrcp_ops_s |
Bluetooth AVRCP HAL callbacks. More... | |
struct | bt_hal_hfp_ops_s |
Bluetooth HFP HAL callbacks. More... | |
struct | bt_hal_spp_ops_s |
Bluetooth SPP HAL callbacks. More... | |
struct | ble_hal_common_ops_s |
Bluetooth LE common HAL callbacks. More... | |
struct | ble_hal_gatts_ops_s |
Bluetooth LE GATTS HAL callbacks. More... | |
struct | ble_hal_gattc_ops_s |
Bluetooth LE GATTC HAL callbacks. More... | |
struct | ble_hal_gatt_ops_s |
Bluetooth LE GATT HAL. More... | |
Macros | |
#define | EXTERN extern "C" |
Functions | |
int | bt_common_register_hal (struct bt_hal_common_ops_s *bt_hal_common_ops) |
Bluetooth common function HAL register. More... | |
int | bt_common_event_handler (struct bt_event_t *bt_event) |
Common event handler HAL should call this function if receive common event(BT_COMMON_EVENT_ID). More... | |
int | bt_a2dp_register_hal (struct bt_hal_a2dp_ops_s *bt_hal_a2dp_ops) |
Bluetooth A2DP function HAL register. More... | |
int | bt_a2dp_event_handler (struct bt_event_t *bt_event) |
A2DP event handler HAL should call this function if receive A2DP event(BT_A2DP_EVENT_ID). More... | |
int | bt_avrcp_register_hal (struct bt_hal_avrcp_ops_s *bt_hal_avrcp_ops) |
Bluetooth AVRCP function HAL register. More... | |
int | bt_avrcp_event_handler (struct bt_event_t *bt_event) |
AVRCP event handler HAL should call this function if receive AVRCP event(BT_AVRCP_EVENT_ID). More... | |
int | bt_hfp_register_hal (struct bt_hal_hfp_ops_s *bt_hal_hfp_ops) |
Bluetooth HFP function HAL register. More... | |
int | bt_hfp_event_handler (struct bt_event_t *bt_event) |
HFP event handler HAL should call this function if receive HFP event(BT_HFP_EVENT_ID). More... | |
int | bt_spp_register_hal (struct bt_hal_spp_ops_s *bt_hal_spp_ops) |
Bluetooth SPP function HAL register. More... | |
int | bt_spp_event_handler (struct bt_event_t *bt_event) |
SPP event handler HAL should call this function if receive SPP event(BT_SPP_EVENT_ID). More... | |
int | ble_common_register_hal (struct ble_hal_common_ops_s *ble_hal_common_ops) |
Bluetooth LE common function HAL register. More... | |
int | ble_common_event_handler (struct bt_event_t *bt_event) |
BLE common event handler HAL should call this function if receive BLE common event(BLE_COMMON_EVENT_ID). More... | |
int | ble_gatt_register_hal (struct ble_hal_gatt_ops_s *ble_hal_gatt_ops) |
Bluetooth LE GATT function HAL register. More... | |
int | ble_gatt_event_handler (struct bt_event_t *bt_event) |
BLE GATT event handler HAL should call this function if receive BLE GATT event(BLE_GATT_EVENT_ID). More... | |
int | ble_register_gatt_central_cb (struct ble_gatt_central_ops_s *central_ops) |
Temporary I/F helps app hook central callbacks to framework stored state Should be removed after consider overall design about how to manage app state. More... | |
Bluetooth HAL I/F.
This header file includes bluetooth HAL I/F definitions.
int bt_common_register_hal | ( | struct bt_hal_common_ops_s * | bt_hal_common_ops | ) |
Bluetooth common function HAL register.
[in] | bt_hal_common_ops | HAL callback functions bt_hal_common_ops_s |
error | code |
int bt_common_event_handler | ( | struct bt_event_t * | bt_event | ) |
Common event handler HAL should call this function if receive common event(BT_COMMON_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int bt_a2dp_register_hal | ( | struct bt_hal_a2dp_ops_s * | bt_hal_a2dp_ops | ) |
Bluetooth A2DP function HAL register.
[in] | bt_hal_a2dp_ops | HAL callback functions bt_hal_a2dp_ops_s |
error | code |
int bt_a2dp_event_handler | ( | struct bt_event_t * | bt_event | ) |
A2DP event handler HAL should call this function if receive A2DP event(BT_A2DP_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int bt_avrcp_register_hal | ( | struct bt_hal_avrcp_ops_s * | bt_hal_avrcp_ops | ) |
Bluetooth AVRCP function HAL register.
[in] | bt_hal_avrcp_ops | HAL callback functions bt_hal_avrcp_ops_s |
error | code |
int bt_avrcp_event_handler | ( | struct bt_event_t * | bt_event | ) |
AVRCP event handler HAL should call this function if receive AVRCP event(BT_AVRCP_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int bt_hfp_register_hal | ( | struct bt_hal_hfp_ops_s * | bt_hal_hfp_ops | ) |
Bluetooth HFP function HAL register.
[in] | bt_hal_hfp_ops | HAL callback functions bt_hal_hfp_ops_s |
error | code |
int bt_hfp_event_handler | ( | struct bt_event_t * | bt_event | ) |
HFP event handler HAL should call this function if receive HFP event(BT_HFP_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int bt_spp_register_hal | ( | struct bt_hal_spp_ops_s * | bt_hal_spp_ops | ) |
Bluetooth SPP function HAL register.
[in] | bt_hal_spp_ops | HAL callback functions bt_hal_spp_ops_s |
error | code |
int bt_spp_event_handler | ( | struct bt_event_t * | bt_event | ) |
SPP event handler HAL should call this function if receive SPP event(BT_SPP_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int ble_common_register_hal | ( | struct ble_hal_common_ops_s * | ble_hal_common_ops | ) |
Bluetooth LE common function HAL register.
[in] | ble_hal_common_ops | HAL callback functions ble_hal_common_ops_s |
error | code |
int ble_common_event_handler | ( | struct bt_event_t * | bt_event | ) |
BLE common event handler HAL should call this function if receive BLE common event(BLE_COMMON_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int ble_gatt_register_hal | ( | struct ble_hal_gatt_ops_s * | ble_hal_gatt_ops | ) |
Bluetooth LE GATT function HAL register.
[in] | ble_hal_gatt_ops | HAL callback functions ble_hal_gatt_ops_s |
error | code |
int ble_gatt_event_handler | ( | struct bt_event_t * | bt_event | ) |
BLE GATT event handler HAL should call this function if receive BLE GATT event(BLE_GATT_EVENT_ID).
[in] | bt_event | Event data bt_event_t |
error | code |
int ble_register_gatt_central_cb | ( | struct ble_gatt_central_ops_s * | central_ops | ) |
Temporary I/F helps app hook central callbacks to framework stored state Should be removed after consider overall design about how to manage app state.
[in] | central_ops | gatt central role callback operation functions |
error | code |