#include <bt/bt_hci_defs.h>
#include <bt/bt_defs.h>
Defines | |
#define | AUTHENTICATION_COMPLETE 0x06 |
#define | BT_HCI_AUTHENTICATION_COMPLETE_EVENT 0x06 |
#define | BT_HCI_COMMAND_COMPLETE 0x0E |
#define | BT_HCI_COMMAND_STATUS 0x0F |
#define | BT_HCI_CONNECTION_COMPLETE 0x03 |
#define | BT_HCI_CONNECTION_REQUEST 0x04 |
#define | BT_HCI_DISCONNECTION_COMPLETE 0x05 |
#define | BT_HCI_HARDWARE_ERROR 0x10 |
#define | BT_HCI_INQUIRY_COMPLETE 0x01 |
#define | BT_HCI_INQUIRY_RESULT 0x02 |
#define | BT_HCI_INQUIRY_RESULT_WITH_RSSI 0x22 |
#define | BT_HCI_LINK_KEY_NOTIFICATION 0x18 |
#define | BT_HCI_LINK_KEY_REQUEST 0x17 |
#define | BT_HCI_MAX_SLOTS_CHANGED 0x1B |
#define | BT_HCI_MODE_CHANGE_EVENT 0x14 |
#define | BT_HCI_NUMBER_OF_COMPLETED_PACKETS 0x13 |
#define | BT_HCI_PIN_CODE_REQUEST 0x16 |
#define | BT_HCI_READ_CLOCK_OFFSET_COMPLETE 0x1C |
#define | BT_HCI_REMOTE_NAME_REQUEST_COMPLETE 0x07 |
#define | BT_HCI_ROLE_CHANGE 0x12 |
#define | BT_HCI_VENDOR_SPECIFIC 0xFF |
#define | CHANGE_CONNECTION_LINK_KEY_COMPLETE 0x09 |
#define | CONNECTION_PACKET_TYPE_CHANGED 0x1D |
#define | DATA_BUFFER_OVERFLOW 0x1a |
#define | ENCRIPTION_CHANGE 0x08 |
#define | FLUSH_OCCURED 0x11 |
#define | HARDWARE_ERROR 0x10 |
#define | MASTER_LINK_KEY_COMPLETE 0x0a |
#define | QOS_SETUP_COMPLETE 0x0d |
#define | READ_REMOTE_SUPPORTED_FEATURES_COMPLETE 0x0b |
#define | READ_REMOTE_VERSION_INFORMATION_COMPLETE 0x0c |
#define | RETURN_LINK_KEYS 0x15 |
Functions | |
void | _bt_hci_handle_connection_cb (struct btstack *stack, u_char type, u_char detail, bt_hci_con_handle_t con_handle) |
Calls all registered connection callbacks. | |
void | _bt_hci_handle_event (struct btstack *stack, struct bt_hci_pkt_evt *pkt) |
Handles (or dispatches) all incoming events. | |
void | _bt_hci_handle_event_cmd_complete (struct btstack *stack, struct bt_hci_pkt_evt *pkt) |
Handles BT_HCI_COMMAND_COMPLETE events. | |
void | _bt_hci_handle_event_cmd_status (struct btstack *stack, struct bt_hci_pkt_evt *pkt) |
Handles BT_HCI_COMMAND_STATUS events. |
void _bt_hci_handle_connection_cb | ( | struct btstack * | stack, | |
u_char | type, | |||
u_char | detail, | |||
bt_hci_con_handle_t | con_handle | |||
) |
Calls all registered connection callbacks.
stack | The bt-stack to use | |
type | of connection table change | |
detail | of change | |
con_handle | of this connection |
void _bt_hci_handle_event | ( | struct btstack * | stack, | |
struct bt_hci_pkt_evt * | pkt | |||
) |
Handles (or dispatches) all incoming events.
Handles an event and updates the stack Some events are handled externally (see below)
Short events (like inquiry_result) are handled directly inside this function
stack | The bt-stack to use | |
pkt | the event packet |
void _bt_hci_handle_event_cmd_complete | ( | struct btstack * | stack, | |
struct bt_hci_pkt_evt * | pkt | |||
) |
Handles BT_HCI_COMMAND_COMPLETE events.
Handles cmd_complete events and adjusts the stack
stack | The bt-stack to use | |
pkt | the event packet |
void _bt_hci_handle_event_cmd_status | ( | struct btstack * | stack, | |
struct bt_hci_pkt_evt * | pkt | |||
) |
Handles BT_HCI_COMMAND_STATUS events.
Handles cmd_complete events and adjusts the stack
stack | The bt-stack to use | |
pkt | the event packet |