Microchip® Advanced Software Framework

btstack_defines.h File Reference
#include <stdint.h>
#include "btstack_linked_list.h"

Data Structures

struct  btstack_context_callback_registration_t
 
struct  btstack_packet_callback_registration_t
 

Macros

#define A2DP_SUBEVENT_COMMAND_ACCEPTED   0x09
 1211 More...
 
#define A2DP_SUBEVENT_COMMAND_REJECTED   0x0A
 1211 More...
 
#define A2DP_SUBEVENT_INCOMING_CONNECTION_ESTABLISHED   0x0B
 12B Signaling channel is opened. More...
 
#define A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED   0x0C
 12 Signaling channel is released. More...
 
#define A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION   0x03
 1211112LV More...
 
#define A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION   0x02
 12111121111111 More...
 
#define A2DP_SUBEVENT_STREAM_ESTABLISHED   0x04
 12B111 Stream is opened byt not started. More...
 
#define A2DP_SUBEVENT_STREAM_RELEASED   0x08
 121 Stream is released. More...
 
#define A2DP_SUBEVENT_STREAM_STARTED   0x05
 121 Indicates that media transfer is started. More...
 
#define A2DP_SUBEVENT_STREAM_STOPPED   0x07
 121 Stream is stoped or aborted. More...
 
#define A2DP_SUBEVENT_STREAM_SUSPENDED   0x06
 121 Stream is paused. More...
 
#define A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW   0x01
 A2DP Subevent. More...
 
#define ANCS_SUBEVENT_CLIENT_CONNECTED   0xF0
 1H More...
 
#define ANCS_SUBEVENT_CLIENT_DISCONNECTED   0xF2
 1H More...
 
#define ANCS_SUBEVENT_CLIENT_NOTIFICATION   0xF1
 1H2T More...
 
#define ATT_DATA_PACKET   0x08
 
#define ATT_DB_FLAGS_READ_WITHOUT_AUTHENTICATION   0x0001
 
#define ATT_DB_PERSISTENT_WRITE_CCC   0x0010
 
#define ATT_EVENT_CAN_SEND_NOW   0xB7
 
#define ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE   0xB6
 1H2 More...
 
#define ATT_EVENT_MTU_EXCHANGE_COMPLETE   0xB5
 H2 More...
 
#define ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS   0x90
 
#define ATT_HANDLE_VALUE_INDICATION_TIMEOUT   0x91
 
#define AVDTP_CONNECTION_DOES_NOT_EXIST   0xC1
 
#define AVDTP_CONNECTION_IN_WRONG_STATE   0xC2
 
#define AVDTP_MEDIA_CONNECTION_DOES_NOT_EXIST   0xC4
 
#define AVDTP_SEID_DOES_NOT_EXIST   0xC0
 
#define AVDTP_STREAM_ENDPOINT_IN_WRONG_STATE   0xC3
 
#define AVDTP_SUBEVENT_SIGNALING_ACCEPT   0x01
 AVDTP Subevent. More...
 
#define AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED   0x04
 12B1 More...
 
#define AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED   0x05
 12 More...
 
#define AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT   0x03
 1211 More...
 
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY   0x08
 121112LV More...
 
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION   0x0A
 1211112LV More...
 
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY   0x07
 121111111111 More...
 
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION   0x09
 12111121111111 More...
 
#define AVDTP_SUBEVENT_SIGNALING_REJECT   0x02
 1211 More...
 
#define AVDTP_SUBEVENT_SIGNALING_SEP_FOUND   0x06
 121111 More...
 
#define AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW   0x0D
 1212 More...
 
#define AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED   0x0B
 12B111 More...
 
#define AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED   0x0C
 121 More...
 
#define AVRCP_SUBEVENT_COMPANY_IDS_QUERY   0x0F
 12 More...
 
#define AVRCP_SUBEVENT_CONNECTION_ESTABLISHED   0x01
 AVRCP Subevent. More...
 
#define AVRCP_SUBEVENT_CONNECTION_RELEASED   0x02
 12 More...
 
#define AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE   0x0B
 1211 More...
 
#define AVRCP_SUBEVENT_EVENT_IDS_QUERY   0x10
 12 More...
 
#define AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED   0x08
 121 More...
 
#define AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED   0x07
 121 More...
 
#define AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED   0x05
 1211 More...
 
#define AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED   0x06
 121 More...
 
#define AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED   0x09
 1211 More...
 
#define AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO   0x18
 
#define AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO   0x17
 
#define AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO   0x19
 
#define AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE   0x1A
 
#define AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO   0x15
 1214 More...
 
#define AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO   0x16
 121JV More...
 
#define AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO   0x14
 1211 More...
 
#define AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO   0x13
 1211 More...
 
#define AVRCP_SUBEVENT_OPERATION   0x12
 12111 More...
 
#define AVRCP_SUBEVENT_OPERATION_COMPLETE   0x0D
 1211 More...
 
#define AVRCP_SUBEVENT_OPERATION_START   0x0C
 1211 More...
 
#define AVRCP_SUBEVENT_PLAY_STATUS   0x04
 121441 More...
 
#define AVRCP_SUBEVENT_PLAY_STATUS_QUERY   0x11
 12 More...
 
#define AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE   0x0E
 121 More...
 
#define AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE   0x0A
 1211 More...
 
#define AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE   0x03
 12111 More...
 
#define BNEP_CHANNEL_NOT_CONNECTED   0xA1
 
#define BNEP_DATA_LEN_EXCEEDS_MTU   0xA2
 
#define BNEP_DATA_PACKET   0x0b
 
#define BNEP_EVENT_CAN_SEND_NOW   0xC4
 222B More...
 
#define BNEP_EVENT_CHANNEL_CLOSED   0xC2
 222B More...
 
#define BNEP_EVENT_CHANNEL_OPENED   0xC1
 12222B More...
 
#define BNEP_EVENT_CHANNEL_TIMEOUT   0xC3
 222B1 More...
 
#define BNEP_EVENT_SERVICE_REGISTERED   0xC0
 12 More...
 
#define BNEP_SERVICE_ALREADY_REGISTERED   0xA0
 
#define BTSTACK_ACL_BUFFERS_FULL   0x57
 
#define BTSTACK_ACTIVATION_FAILED_SYSTEM_BLUETOOTH   0x51
 
#define BTSTACK_ACTIVATION_FAILED_UNKNOWN   0x53
 
#define BTSTACK_ACTIVATION_POWERON_FAILED   0x52
 
#define BTSTACK_BUSY   0x55
 
#define BTSTACK_CONNECTION_TO_BTDAEMON_FAILED   0x50
 
#define BTSTACK_EVENT_DISCOVERABLE_ENABLED   0x66
 1 More...
 
#define BTSTACK_EVENT_NR_CONNECTIONS_CHANGED   0x61
 1 More...
 
#define BTSTACK_EVENT_POWERON_FAILED   0x62
 
#define BTSTACK_EVENT_STATE   0x60
 1 More...
 
#define BTSTACK_GET_STATE   0x01
 
#define BTSTACK_GET_SYSTEM_BLUETOOTH_ENABLED   0x05
 
#define BTSTACK_GET_VERSION   0x04
 
#define BTSTACK_MEMORY_ALLOC_FAILED   0x56
 
#define BTSTACK_NOT_ACTIVATED   0x54
 
#define BTSTACK_SET_ACL_CAPTURE_MODE   0x03
 
#define BTSTACK_SET_BLUETOOTH_ENABLED   0x08
 
#define BTSTACK_SET_DISCOVERABLE   0x07
 
#define BTSTACK_SET_POWER_MODE   0x02
 
#define BTSTACK_SET_SYSTEM_BLUETOOTH_ENABLED   0x06
 
#define DAEMON_EVENT_CONNECTION_CLOSED   0x68
 
#define DAEMON_EVENT_CONNECTION_OPENED   0x67
 
#define DAEMON_EVENT_L2CAP_CREDITS   0x74
 
#define DAEMON_EVENT_L2CAP_SERVICE_REGISTERED   0x75
 12 More...
 
#define DAEMON_EVENT_PACKET   0x05
 
#define DAEMON_EVENT_REMOTE_NAME_CACHED   0x65
 
#define DAEMON_EVENT_RFCOMM_CREDITS   0x84
 21 More...
 
#define DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL   0x86
 11 More...
 
#define DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED   0x85
 11 More...
 
#define DAEMON_EVENT_SDP_SERVICE_REGISTERED   0x90
 14 More...
 
#define DAEMON_EVENT_SYSTEM_BLUETOOTH_ENABLED   0x64
 1 param system_bluetooth_enabled More...
 
#define DAEMON_EVENT_VERSION   0x63
 112 More...
 
#define GAP_DISCONNECT   0x50
 
#define GAP_EVENT_ADVERTISING_REPORT   0xE2
 11B1JV More...
 
#define GAP_EVENT_DEDICATED_BONDING_COMPLETED   0xE1
 1B More...
 
#define GAP_EVENT_INQUIRY_COMPLETE   0xE4
 1 More...
 
#define GAP_EVENT_INQUIRY_RESULT   0xE3
 B132111JV More...
 
#define GAP_EVENT_SECURITY_LEVEL   0xE0
 H1 More...
 
#define GAP_LE_CONNECT   0x62
 
#define GAP_LE_CONNECT_CANCEL   0x63
 
#define GAP_LE_SCAN_START   0x60
 
#define GAP_LE_SCAN_STOP   0x61
 
#define GAP_LE_SET_SCAN_PARAMETERS   0x64
 
#define GATT_CLIENT_BUSY   0x94
 
#define GATT_CLIENT_CHARACTERISTIC_INDICATION_NOT_SUPPORTED   0x99
 
#define GATT_CLIENT_CHARACTERISTIC_NOTIFICATION_NOT_SUPPORTED   0x98
 
#define GATT_CLIENT_DIFFERENT_CONTEXT_FOR_ADDRESS_ALREADY_EXISTS   0x96
 
#define GATT_CLIENT_IN_WRONG_STATE   0x95
 
#define GATT_CLIENT_NOT_CONNECTED   0x93
 
#define GATT_CLIENT_VALUE_TOO_LONG   0x97
 
#define GATT_DISCOVER_ALL_PRIMARY_SERVICES   0x70
 
#define GATT_DISCOVER_CHARACTERISTIC_DESCRIPTORS   0x76
 
#define GATT_DISCOVER_CHARACTERISTICS_FOR_SERVICE   0x74
 
#define GATT_DISCOVER_CHARACTERISTICS_FOR_SERVICE_BY_UUID128   0x75
 
#define GATT_DISCOVER_PRIMARY_SERVICES_BY_UUID128   0x72
 
#define GATT_DISCOVER_PRIMARY_SERVICES_BY_UUID16   0x71
 
#define GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT   0xA4
 HZ More...
 
#define GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT   0xA9
 H2LV More...
 
#define GATT_EVENT_CHARACTERISTIC_QUERY_RESULT   0xA2
 HY More...
 
#define GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT   0xA5
 H2LV More...
 
#define GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT   0xA3
 H2X More...
 
#define GATT_EVENT_INDICATION   0xA8
 H2LV More...
 
#define GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT   0xAA
 H2LV More...
 
#define GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT   0xA6
 H22LV More...
 
#define GATT_EVENT_MTU   0xAB
 H2 More...
 
#define GATT_EVENT_NOTIFICATION   0xA7
 H2LV More...
 
#define GATT_EVENT_QUERY_COMPLETE   0xA0
 H1 More...
 
#define GATT_EVENT_SERVICE_QUERY_RESULT   0xA1
 HX More...
 
#define GATT_FIND_INCLUDED_SERVICES_FOR_SERVICE   0x73
 
#define GATT_GET_MTU   0x82
 
#define GATT_READ_CHARACTERISTIC_DESCRIPTOR   0X7D
 
#define GATT_READ_LONG_CHARACTERISTIC_DESCRIPTOR   0X7E
 
#define GATT_READ_LONG_VALUE_OF_CHARACTERISTIC   0x78
 
#define GATT_READ_VALUE_OF_CHARACTERISTIC   0x77
 
#define GATT_RELIABLE_WRITE_LONG_VALUE_OF_CHARACTERISTIC   0x7C
 
#define GATT_WRITE_CHARACTERISTIC_DESCRIPTOR   0X7F
 
#define GATT_WRITE_CLIENT_CHARACTERISTIC_CONFIGURATION   0X81
 
#define GATT_WRITE_LONG_CHARACTERISTIC_DESCRIPTOR   0X80
 
#define GATT_WRITE_LONG_VALUE_OF_CHARACTERISTIC   0x7B
 
#define GATT_WRITE_VALUE_OF_CHARACTERISTIC   0x7A
 
#define GATT_WRITE_VALUE_OF_CHARACTERISTIC_WITHOUT_RESPONSE   0x79
 
#define GOEP_DATA_PACKET   0x0d
 
#define GOEP_SUBEVENT_CAN_SEND_NOW   0x03
 12 More...
 
#define GOEP_SUBEVENT_CONNECTION_CLOSED   0x02
 12 More...
 
#define GOEP_SUBEVENT_CONNECTION_OPENED   0x01
 121BH1 More...
 
#define HCI_CON_HANDLE_INVALID   0xffff
 
#define HCI_EVENT_A2DP_META   0xF0
 
#define HCI_EVENT_ANCS_META   0xEA
 
#define HCI_EVENT_AVDTP_META   0xEB
 
#define HCI_EVENT_AVRCP_META   0xEC
 
#define HCI_EVENT_GOEP_META   0xED
 
#define HCI_EVENT_HFP_META   0xE9
 
#define HCI_EVENT_HID_META   0xEF
 
#define HCI_EVENT_HIDS_META   0xF1
 
#define HCI_EVENT_HSP_META   0xE8
 
#define HCI_EVENT_PBAP_META   0xEE
 
#define HCI_EVENT_SCO_CAN_SEND_NOW   0x6F
 B More...
 
#define HCI_EVENT_TRANSPORT_PACKET_SENT   0x6E
 Outgoing packet. More...
 
#define HCI_EVENT_TRANSPORT_SLEEP_MODE   0x69
 Indicates HCI transport enters/exits Sleep mode 1. More...
 
#define HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED   0x06
 111T More...
 
#define HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG   0x0E
 1 More...
 
#define HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED   0x03
 11HB1 More...
 
#define HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED   0x04
 1 More...
 
#define HFP_SUBEVENT_CALL_ANSWERED   0x11
 1 More...
 
#define HFP_SUBEVENT_CALL_TERMINATED   0x0C
 1 More...
 
#define HFP_SUBEVENT_CALL_WAITING_NOTIFICATION   0x16
 11T More...
 
#define HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION   0x17
 11T More...
 
#define HFP_SUBEVENT_COMPLETE   0x05
 11 More...
 
#define HFP_SUBEVENT_CONFERENCE_CALL   0x12
 1 More...
 
#define HFP_SUBEVENT_ENHANCED_CALL_STATUS   0x18
 111111T More...
 
#define HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR   0x08
 11 More...
 
#define HFP_SUBEVENT_MICROPHONE_VOLUME   0x15
 111 More...
 
#define HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED   0x07
 111T More...
 
#define HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG   0x0F
 1T More...
 
#define HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER   0x0D
 1T More...
 
#define HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS   0x1A
 1T More...
 
#define HFP_SUBEVENT_RING   0x13
 1 More...
 
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED   0x01
 HFP Subevent. More...
 
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED   0x02
 1 More...
 
#define HFP_SUBEVENT_SPEAKER_VOLUME   0x14
 111 More...
 
#define HFP_SUBEVENT_START_RINGINIG   0x0A
 1 More...
 
#define HFP_SUBEVENT_STOP_RINGINIG   0x0B
 1 More...
 
#define HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION   0x19
 111T More...
 
#define HFP_SUBEVENT_TRANSMIT_DTMF_CODES   0x10
 1T More...
 
#define HID_SUBEVENT_CAN_SEND_NOW   0x03
 12 More...
 
#define HID_SUBEVENT_CONNECTION_CLOSED   0x02
 12 More...
 
#define HID_SUBEVENT_CONNECTION_OPENED   0x01
 121BH1 More...
 
#define HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE   0x04
 121 More...
 
#define HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE   0x03
 121 More...
 
#define HIDS_SUBEVENT_CAN_SEND_NOW   0x01
 12 More...
 
#define HIDS_SUBEVENT_INPUT_REPORT_ENABLE   0x05
 121 More...
 
#define HIDS_SUBEVENT_PROTOCOL_MODE   0x02
 121 More...
 
#define HSP_SUBEVENT_AG_INDICATION   0x09
 1JV More...
 
#define HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE   0x03
 11H More...
 
#define HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE   0x04
 11 More...
 
#define HSP_SUBEVENT_HS_COMMAND   0x08
 1JV More...
 
#define HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED   0x06
 11 More...
 
#define HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE   0x01
 HSP Subevent. More...
 
#define HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE   0x02
 11 More...
 
#define HSP_SUBEVENT_RING   0x05
 1 More...
 
#define HSP_SUBEVENT_SPEAKER_GAIN_CHANGED   0x07
 11 More...
 
#define L2CAP_ACCEPT_CONNECTION   0x24
 
#define L2CAP_COMMAND_REJECT_REASON_COMMAND_NOT_UNDERSTOOD   0x60
 
#define L2CAP_COMMAND_REJECT_REASON_INVALID_CID_IN_REQUEST   0x62
 
#define L2CAP_COMMAND_REJECT_REASON_SIGNALING_MTU_EXCEEDED   0x61
 
#define L2CAP_CONNECTION_BASEBAND_DISCONNECT   0x6A
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_ERTM_NOT_SUPPORTED   0x68
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_PENDING   0x64
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_PSM   0x65
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_RESOURCES   0x67
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_SECURITY   0x66
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_RTX_TIMEOUT   0x69
 
#define L2CAP_CONNECTION_RESPONSE_RESULT_SUCCESSFUL   0x63
 
#define L2CAP_CREATE_CHANNEL   0x20
 
#define L2CAP_CREATE_CHANNEL_MTU   0x26
 
#define L2CAP_DATA_LEN_EXCEEDS_REMOTE_MTU   0x6C
 
#define L2CAP_DATA_PACKET   0x06
 
#define L2CAP_DECLINE_CONNECTION   0x25
 
#define L2CAP_DISCONNECT   0x21
 
#define L2CAP_EVENT_CAN_SEND_NOW   0x78
 2 More...
 
#define L2CAP_EVENT_CHANNEL_CLOSED   0x71
 
#define L2CAP_EVENT_CHANNEL_OPENED   0x70
 1BH2222221 More...
 
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST   0x76
 H2222 More...
 
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE   0x77
 H2 More...
 
#define L2CAP_EVENT_INCOMING_CONNECTION   0x72
 BH222 More...
 
#define L2CAP_EVENT_LE_CAN_SEND_NOW   0x7c
 
#define L2CAP_EVENT_LE_CHANNEL_CLOSED   0x7b
 
#define L2CAP_EVENT_LE_CHANNEL_OPENED   0x7a
 11BH122222 More...
 
#define L2CAP_EVENT_LE_INCOMING_CONNECTION   0x79
 1BH2222 More...
 
#define L2CAP_EVENT_LE_PACKET_SENT   0x7d
 
#define L2CAP_EVENT_TIMEOUT_CHECK   0x73
 
#define L2CAP_LOCAL_CID_DOES_NOT_EXIST   0x6E
 
#define L2CAP_REGISTER_SERVICE   0x22
 
#define L2CAP_SERVICE_ALREADY_REGISTERED   0x6B
 
#define L2CAP_SERVICE_DOES_NOT_EXIST   0x6D
 
#define L2CAP_UNREGISTER_SERVICE   0x23
 
#define LOG_MESSAGE_PACKET   0xfc
 
#define OBEX_CONNECT_FAILED   0xB1
 
#define OBEX_DISCONNECTED   0xB2
 
#define OBEX_NOT_FOUND   0xB3
 
#define OBEX_UNKNOWN_ERROR   0xB0
 
#define OGF_BTSTACK   0x3d
 
#define PBAP_DATA_PACKET   0x0e
 
#define PBAP_SUBEVENT_CONNECTION_CLOSED   0x02
 12 More...
 
#define PBAP_SUBEVENT_CONNECTION_OPENED   0x01
 121BH1 More...
 
#define PBAP_SUBEVENT_OPERATION_COMPLETED   0x03
 121 More...
 
#define RFCOMM_ACCEPT_CONNECTION   0x44
 
#define RFCOMM_AGGREGATE_FLOW_OFF   0x73
 
#define RFCOMM_CHANNEL_ALREADY_REGISTERED   0x71
 
#define RFCOMM_CREATE_CHANNEL   0x40
 
#define RFCOMM_CREATE_CHANNEL_WITH_CREDITS   0x47
 
#define RFCOMM_DATA_LEN_EXCEEDS_MTU   0x74
 
#define RFCOMM_DATA_PACKET   0x07
 
#define RFCOMM_DECLINE_CONNECTION   0x45
 
#define RFCOMM_DISCONNECT   0x41
 
#define RFCOMM_EVENT_CAN_SEND_NOW   0x89
 2 More...
 
#define RFCOMM_EVENT_CHANNEL_CLOSED   0x81
 2 More...
 
#define RFCOMM_EVENT_CHANNEL_OPENED   0x80
 1B21221 More...
 
#define RFCOMM_EVENT_INCOMING_CONNECTION   0x82
 B12 More...
 
#define RFCOMM_EVENT_PORT_CONFIGURATION   0x88
 TODO: format for variable data 2? param rfcomm_cid param rpn_data. More...
 
#define RFCOMM_EVENT_REMOTE_LINE_STATUS   0x83
 21 More...
 
#define RFCOMM_EVENT_REMOTE_MODEM_STATUS   0x87
 21 More...
 
#define RFCOMM_GRANT_CREDITS   0x49
 
#define RFCOMM_MULTIPLEXER_STOPPED   0x70
 
#define RFCOMM_NO_OUTGOING_CREDITS   0x72
 
#define RFCOMM_PERSISTENT_CHANNEL   0x46
 
#define RFCOMM_REGISTER_SERVICE   0x42
 
#define RFCOMM_REGISTER_SERVICE_WITH_CREDITS   0x48
 
#define RFCOMM_UNREGISTER_SERVICE   0x43
 
#define SDP_CLIENT_PACKET   0x0a
 
#define SDP_CLIENT_QUERY_RFCOMM_SERVICES   0x32
 
#define SDP_CLIENT_QUERY_SERVICES   0x33
 
#define SDP_EVENT_QUERY_ATTRIBUTE_BYTE   0x93
 22221 More...
 
#define SDP_EVENT_QUERY_ATTRIBUTE_VALUE   0x94
 22LV More...
 
#define SDP_EVENT_QUERY_COMPLETE   0x91
 1 More...
 
#define SDP_EVENT_QUERY_RFCOMM_SERVICE   0x92
 1T More...
 
#define SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE   0x95
 224 More...
 
#define SDP_HANDLE_ALREADY_REGISTERED   0x80
 
#define SDP_HANDLE_INVALID   0x83
 
#define SDP_QUERY_BUSY   0x84
 
#define SDP_QUERY_INCOMPLETE   0x81
 
#define SDP_REGISTER_SERVICE_RECORD   0x30
 
#define SDP_SERVICE_NOT_FOUND   0x82
 
#define SDP_UNREGISTER_SERVICE_RECORD   0x31
 
#define SM_DATA_PACKET   0x09
 
#define SM_EVENT_AUTHORIZATION_REQUEST   0xDB
 H1B More...
 
#define SM_EVENT_AUTHORIZATION_RESULT   0xDC
 H1B1 More...
 
#define SM_EVENT_IDENTITY_CREATED   0xDE
 Emitted during pairing to inform app about address used as identity. More...
 
#define SM_EVENT_IDENTITY_RESOLVING_FAILED   0xD9
 H1B More...
 
#define SM_EVENT_IDENTITY_RESOLVING_STARTED   0xD8
 H1B More...
 
#define SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED   0xDA
 Identify resolving succeeded. More...
 
#define SM_EVENT_JUST_WORKS_CANCEL   0xD1
 H1B More...
 
#define SM_EVENT_JUST_WORKS_REQUEST   0xD0
 H1B More...
 
#define SM_EVENT_KEYPRESS_NOTIFICATION   0xDD
 H1 More...
 
#define SM_EVENT_NUMERIC_COMPARISON_CANCEL   0xD7
 H1B More...
 
#define SM_EVENT_NUMERIC_COMPARISON_REQUEST   0xD6
 H1B4 More...
 
#define SM_EVENT_PASSKEY_DISPLAY_CANCEL   0xD3
 H1B More...
 
#define SM_EVENT_PASSKEY_DISPLAY_NUMBER   0xD2
 H1B4 More...
 
#define SM_EVENT_PASSKEY_INPUT_CANCEL   0xD5
 H1B More...
 
#define SM_EVENT_PASSKEY_INPUT_NUMBER   0xD4
 H1B More...
 
#define UCD_DATA_PACKET   0x0c
 
#define UNUSED(x)   (void)(sizeof(x))
 

Typedefs

typedef void(* btstack_packet_handler_t )(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)
 
typedef uint8_t sm_key_t [16]
 128 bit key used with AES128 in Security Manager More...
 

#define A2DP_SUBEVENT_COMMAND_ACCEPTED   0x09

1211

Parameters
subevent_code
a2dp_cid
local_seid
signal_identifier
#define A2DP_SUBEVENT_COMMAND_REJECTED   0x0A

1211

Parameters
subevent_code
a2dp_cid
local_seid
signal_identifier
#define A2DP_SUBEVENT_INCOMING_CONNECTION_ESTABLISHED   0x0B

12B Signaling channel is opened.

Parameters
subevent_code
a2dp_cid
bd_addr
#define A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED   0x0C

12 Signaling channel is released.

Parameters
subevent_code
a2dp_cid
#define A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION   0x03

1211112LV

Parameters
subevent_code
a2dp_cid
int_seid
acp_seid
reconfigure
media_type
media_codec_type
media_codec_information_len
media_codec_information
#define A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION   0x02

12111121111111

Parameters
subevent_code
a2dp_cid
int_seid
acp_seid
reconfigure
media_type
sampling_frequency
channel_mode
num_channels
block_length
subbands
allocation_method
min_bitpool_value
max_bitpool_value
#define A2DP_SUBEVENT_STREAM_ESTABLISHED   0x04

12B111 Stream is opened byt not started.

Parameters
subevent_code
a2dp_cid
bd_addr
local_seid
remote_seid
status
#define A2DP_SUBEVENT_STREAM_RELEASED   0x08

121 Stream is released.

Parameters
subevent_code
a2dp_cid
local_seid
#define A2DP_SUBEVENT_STREAM_STARTED   0x05

121 Indicates that media transfer is started.

Parameters
subevent_code
a2dp_cid
local_seid
#define A2DP_SUBEVENT_STREAM_STOPPED   0x07

121 Stream is stoped or aborted.

Parameters
subevent_code
a2dp_cid
local_seid
#define A2DP_SUBEVENT_STREAM_SUSPENDED   0x06

121 Stream is paused.

Parameters
subevent_code
a2dp_cid
local_seid
#define A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW   0x01

A2DP Subevent.

121 Sent only by A2DP source.

Parameters
subevent_code
a2dp_cid
local_seid
#define ANCS_SUBEVENT_CLIENT_CONNECTED   0xF0

1H

Parameters
subevent_code
handle

Referenced by handle_hci_event().

#define ANCS_SUBEVENT_CLIENT_DISCONNECTED   0xF2

1H

Parameters
subevent_code
handle

Referenced by handle_hci_event().

#define ANCS_SUBEVENT_CLIENT_NOTIFICATION   0xF1

1H2T

Parameters
subevent_code
handle
attribute_id
text

Referenced by ancs_chunk_parser_handle_byte().

#define ATT_DATA_PACKET   0x08
#define ATT_DB_PERSISTENT_WRITE_CCC   0x0010
#define ATT_EVENT_CAN_SEND_NOW   0xB7
#define ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE   0xB6

1H2

Parameters
status
conn_handle
attribute_handle

Referenced by att_handle_value_indication_notify_client().

#define ATT_EVENT_MTU_EXCHANGE_COMPLETE   0xB5

H2

Parameters
handle
MTU

Referenced by att_emit_mtu_event(), and packet_handler().

#define ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS   0x90

Referenced by att_server_indicate().

#define ATT_HANDLE_VALUE_INDICATION_TIMEOUT   0x91
#define AVDTP_CONNECTION_DOES_NOT_EXIST   0xC1
#define AVDTP_CONNECTION_IN_WRONG_STATE   0xC2
#define AVDTP_MEDIA_CONNECTION_DOES_NOT_EXIST   0xC4
#define AVDTP_SEID_DOES_NOT_EXIST   0xC0
#define AVDTP_STREAM_ENDPOINT_IN_WRONG_STATE   0xC3
#define AVDTP_SUBEVENT_SIGNALING_ACCEPT   0x01

AVDTP Subevent.

1211

Parameters
subevent_code
avdtp_cid
local_seid
signal_identifier
#define AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED   0x04

12B1

Parameters
subevent_code
avdtp_cid
bd_addr
status0 == OK
#define AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED   0x05

12

Parameters
subevent_code
avdtp_cid
#define AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT   0x03

1211

Parameters
subevent_code
avdtp_cid
local_seid
signal_identifier
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY   0x08

121112LV

Parameters
subevent_code
avdtp_cid
local_seid
remote_seid
media_type
media_codec_type
media_codec_information_len
media_codec_information
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION   0x0A

1211112LV

Parameters
subevent_code
avdtp_cid
local_seid
remote_seid
reconfigure
media_type
media_codec_type
media_codec_information_len
media_codec_information
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY   0x07

121111111111

Parameters
subevent_code
avdtp_cid
local_seid
remote_seid
media_type
sampling_frequency_bitmap
channel_mode_bitmap
block_length_bitmap
subbands_bitmap
allocation_method_bitmap
min_bitpool_value
max_bitpool_value
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION   0x09

12111121111111

Parameters
subevent_code
avdtp_cid
local_seid
remote_seid
reconfigure
media_type
sampling_frequency
channel_mode
num_channels
block_length
subbands
allocation_method
min_bitpool_value
max_bitpool_value
#define AVDTP_SUBEVENT_SIGNALING_REJECT   0x02

1211

Parameters
subevent_code
avdtp_cid
local_seid
signal_identifier
#define AVDTP_SUBEVENT_SIGNALING_SEP_FOUND   0x06

121111

Parameters
subevent_code
avdtp_cid
remote_seid0x01 – 0x3E
in_use0-not in use, 1-in use
media_type0-audio, 1-video, 2-multimedia
sep_type0-source, 1-sink
#define AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW   0x0D

1212

Parameters
subevent_code
avdtp_cid
local_seid
sequence_number
#define AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED   0x0B

12B111

Parameters
subevent_code
avdtp_cid
bd_addr
local_seid
remote_seid
status0 == OK
#define AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED   0x0C

121

Parameters
subevent_code
avdtp_cid
local_seid
#define AVRCP_SUBEVENT_COMPANY_IDS_QUERY   0x0F

12

Parameters
subevent_code
avrcp_cid
#define AVRCP_SUBEVENT_CONNECTION_ESTABLISHED   0x01

AVRCP Subevent.

11B2

Parameters
subevent_code
status0 == OK
bd_addr
avrcp_cid
#define AVRCP_SUBEVENT_CONNECTION_RELEASED   0x02

12

Parameters
subevent_code
avrcp_cid
#define AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE   0x0B

1211

Parameters
subevent_code
avrcp_cid
command_type
notification_id
#define AVRCP_SUBEVENT_EVENT_IDS_QUERY   0x10

12

Parameters
subevent_code
avrcp_cid
#define AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED   0x08

121

Parameters
subevent_code
avrcp_cid
command_type
#define AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED   0x07

121

Parameters
subevent_code
avrcp_cid
command_type
#define AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED   0x05

1211

Parameters
subevent_code
avrcp_cid
command_type
play_status
#define AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED   0x06

121

Parameters
subevent_code
avrcp_cid
command_type
#define AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED   0x09

1211

Parameters
subevent_code
avrcp_cid
command_type
absolute_volume
#define AVRCP_SUBEVENT_NOW_PLAYING_ALBUM_INFO   0x18
#define AVRCP_SUBEVENT_NOW_PLAYING_ARTIST_INFO   0x17
#define AVRCP_SUBEVENT_NOW_PLAYING_GENRE_INFO   0x19
#define AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE   0x1A
#define AVRCP_SUBEVENT_NOW_PLAYING_SONG_LENGTH_MS_INFO   0x15

1214

Parameters
subevent_code
avrcp_cid
command_type
song_lengthin ms
#define AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO   0x16

121JV

Parameters
subevent_code
avrcp_cid
command_type
value_len
value
#define AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO   0x14

1211

Parameters
subevent_code
avrcp_cid
command_type
total_tracks
#define AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO   0x13

1211

Parameters
subevent_code
avrcp_cid
command_type
track
#define AVRCP_SUBEVENT_OPERATION   0x12

12111

Parameters
subevent_code
avrcp_cid
operation_id
operands_length
operand
#define AVRCP_SUBEVENT_OPERATION_COMPLETE   0x0D

1211

Parameters
subevent_code
avrcp_cid
command_type
operation_id
#define AVRCP_SUBEVENT_OPERATION_START   0x0C

1211

Parameters
subevent_code
avrcp_cid
command_type
operation_id
#define AVRCP_SUBEVENT_PLAY_STATUS   0x04

121441

Parameters
subevent_code
avrcp_cid
command_type
song_length
song_position
play_status
#define AVRCP_SUBEVENT_PLAY_STATUS_QUERY   0x11

12

Parameters
subevent_code
avrcp_cid
#define AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE   0x0E

121

Parameters
subevent_code
avrcp_cid
command_type
#define AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE   0x0A

1211

Parameters
subevent_code
avrcp_cid
command_type
absolute_volume
#define AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE   0x03

12111

Parameters
subevent_code
avrcp_cid
command_type
repeat_mode
shuffle_mode
#define BNEP_CHANNEL_NOT_CONNECTED   0xA1
#define BNEP_DATA_LEN_EXCEEDS_MTU   0xA2
#define BNEP_DATA_PACKET   0x0b
#define BNEP_EVENT_CAN_SEND_NOW   0xC4

222B

Parameters
bnep_cid
source_uuid
destination_uuid
remote_address
#define BNEP_EVENT_CHANNEL_CLOSED   0xC2

222B

Parameters
bnep_cid
source_uuid
destination_uuid
remote_address
#define BNEP_EVENT_CHANNEL_OPENED   0xC1

12222B

Parameters
status
bnep_cid
source_uuid
destination_uuid
mtu
remote_address
#define BNEP_EVENT_CHANNEL_TIMEOUT   0xC3

222B1

Parameters
bnep_cid
source_uuid
destination_uuid
remote_address
channel_state
#define BNEP_EVENT_SERVICE_REGISTERED   0xC0

12

Parameters
status
service_uuid
#define BNEP_SERVICE_ALREADY_REGISTERED   0xA0
#define BTSTACK_ACTIVATION_FAILED_SYSTEM_BLUETOOTH   0x51
#define BTSTACK_ACTIVATION_FAILED_UNKNOWN   0x53
#define BTSTACK_ACTIVATION_POWERON_FAILED   0x52
#define BTSTACK_BUSY   0x55
#define BTSTACK_CONNECTION_TO_BTDAEMON_FAILED   0x50
#define BTSTACK_EVENT_DISCOVERABLE_ENABLED   0x66

1

Parameters
discoverable
#define BTSTACK_EVENT_NR_CONNECTIONS_CHANGED   0x61

1

Parameters
number_connections

Referenced by hci_emit_nr_connections_changed().

#define BTSTACK_EVENT_POWERON_FAILED   0x62
#define BTSTACK_EVENT_STATE   0x60

1

Parameters
state

Referenced by hci_emit_state(), and sm_event_packet_handler().

#define BTSTACK_GET_STATE   0x01
#define BTSTACK_GET_SYSTEM_BLUETOOTH_ENABLED   0x05
#define BTSTACK_GET_VERSION   0x04
#define BTSTACK_MEMORY_ALLOC_FAILED   0x56
#define BTSTACK_NOT_ACTIVATED   0x54
#define BTSTACK_SET_ACL_CAPTURE_MODE   0x03
#define BTSTACK_SET_BLUETOOTH_ENABLED   0x08
#define BTSTACK_SET_DISCOVERABLE   0x07
#define BTSTACK_SET_POWER_MODE   0x02
#define BTSTACK_SET_SYSTEM_BLUETOOTH_ENABLED   0x06
#define DAEMON_EVENT_CONNECTION_CLOSED   0x68
#define DAEMON_EVENT_CONNECTION_OPENED   0x67
#define DAEMON_EVENT_L2CAP_CREDITS   0x74
#define DAEMON_EVENT_L2CAP_SERVICE_REGISTERED   0x75

12

Parameters
status
psm
#define DAEMON_EVENT_PACKET   0x05
#define DAEMON_EVENT_REMOTE_NAME_CACHED   0x65
#define DAEMON_EVENT_RFCOMM_CREDITS   0x84

21

Parameters
rfcomm_cid
credits
#define DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL   0x86

11

Parameters
status
server_channel_id
#define DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED   0x85

11

Parameters
status
channel_id
#define DAEMON_EVENT_SDP_SERVICE_REGISTERED   0x90

14

Parameters
status
service_record_handle
#define DAEMON_EVENT_SYSTEM_BLUETOOTH_ENABLED   0x64

1 param system_bluetooth_enabled

#define DAEMON_EVENT_VERSION   0x63

112

Parameters
major
minor@
revision
#define GAP_DISCONNECT   0x50
#define GAP_EVENT_ADVERTISING_REPORT   0xE2

11B1JV

Parameters
advertising_event_type
address_type
address
rssi
data_length
data
#define GAP_EVENT_DEDICATED_BONDING_COMPLETED   0xE1

1B

Parameters
status
address

Referenced by hci_emit_dedicated_bonding_result().

#define GAP_EVENT_INQUIRY_COMPLETE   0xE4

1

Parameters
status

Referenced by event_handler().

#define GAP_EVENT_INQUIRY_RESULT   0xE3

B132111JV

Parameters
bd_addr
page_scan_repetition_mode
class_of_device
clock_offset
rssi_available
rssi
name_available
name_len
name
#define GAP_EVENT_SECURITY_LEVEL   0xE0

H1

Parameters
handle
security_level

Referenced by l2cap_hci_event_handler().

#define GAP_LE_CONNECT   0x62
#define GAP_LE_CONNECT_CANCEL   0x63
#define GAP_LE_SCAN_START   0x60
#define GAP_LE_SCAN_STOP   0x61
#define GAP_LE_SET_SCAN_PARAMETERS   0x64
#define GATT_CLIENT_BUSY   0x94
#define GATT_CLIENT_CHARACTERISTIC_INDICATION_NOT_SUPPORTED   0x99
#define GATT_CLIENT_CHARACTERISTIC_NOTIFICATION_NOT_SUPPORTED   0x98
#define GATT_CLIENT_DIFFERENT_CONTEXT_FOR_ADDRESS_ALREADY_EXISTS   0x96
#define GATT_CLIENT_IN_WRONG_STATE   0x95
#define GATT_CLIENT_NOT_CONNECTED   0x93
#define GATT_CLIENT_VALUE_TOO_LONG   0x97
#define GATT_DISCOVER_ALL_PRIMARY_SERVICES   0x70
#define GATT_DISCOVER_CHARACTERISTIC_DESCRIPTORS   0x76
#define GATT_DISCOVER_CHARACTERISTICS_FOR_SERVICE   0x74
#define GATT_DISCOVER_CHARACTERISTICS_FOR_SERVICE_BY_UUID128   0x75
#define GATT_DISCOVER_PRIMARY_SERVICES_BY_UUID128   0x72
#define GATT_DISCOVER_PRIMARY_SERVICES_BY_UUID16   0x71
#define GATT_EVENT_ALL_CHARACTERISTIC_DESCRIPTORS_QUERY_RESULT   0xA4

HZ

Parameters
handle
characteristic_descriptor

Referenced by emit_gatt_all_characteristic_descriptors_result_event().

#define GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT   0xA9

H2LV

Parameters
handle
descriptor_handle
descriptor_length
descriptor

Referenced by report_gatt_characteristic_descriptor().

#define GATT_EVENT_CHARACTERISTIC_QUERY_RESULT   0xA2

HY

Parameters
handle
characteristic

Referenced by emit_gatt_characteristic_query_result_event(), and handle_hci_event().

#define GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT   0xA5

H2LV

Parameters
handle
value_handle
value_length
value

Referenced by report_gatt_characteristic_value().

#define GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT   0xA3

H2X

Parameters
handle
include_handle
service

Referenced by emit_gatt_included_service_query_result_event().

#define GATT_EVENT_INDICATION   0xA8

H2LV

Parameters
handle
value_handle
value_length
value

Referenced by handle_hci_event(), and report_gatt_indication().

#define GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT   0xAA

H2LV

Parameters
handle
descriptor_offset
descriptor_length
descriptor

Referenced by report_gatt_long_characteristic_descriptor().

#define GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT   0xA6

H22LV

Parameters
handle
value_handle
value_offset
value_length
value

Referenced by report_gatt_long_characteristic_value_blob().

#define GATT_EVENT_MTU   0xAB

H2

Parameters
handle
MTU
#define GATT_EVENT_NOTIFICATION   0xA7

H2LV

Parameters
handle
value_handle
value_length
value

Referenced by handle_hci_event(), and report_gatt_notification().

#define GATT_EVENT_QUERY_COMPLETE   0xA0

H1

Parameters
handle
status

Referenced by emit_gatt_complete_event(), and handle_hci_event().

#define GATT_EVENT_SERVICE_QUERY_RESULT   0xA1

HX

Parameters
handle
service

Referenced by emit_gatt_service_query_result_event(), and handle_hci_event().

#define GATT_FIND_INCLUDED_SERVICES_FOR_SERVICE   0x73
#define GATT_GET_MTU   0x82
#define GATT_READ_CHARACTERISTIC_DESCRIPTOR   0X7D
#define GATT_READ_LONG_CHARACTERISTIC_DESCRIPTOR   0X7E
#define GATT_READ_LONG_VALUE_OF_CHARACTERISTIC   0x78
#define GATT_READ_VALUE_OF_CHARACTERISTIC   0x77
#define GATT_RELIABLE_WRITE_LONG_VALUE_OF_CHARACTERISTIC   0x7C
#define GATT_WRITE_CHARACTERISTIC_DESCRIPTOR   0X7F
#define GATT_WRITE_CLIENT_CHARACTERISTIC_CONFIGURATION   0X81
#define GATT_WRITE_LONG_CHARACTERISTIC_DESCRIPTOR   0X80
#define GATT_WRITE_LONG_VALUE_OF_CHARACTERISTIC   0x7B
#define GATT_WRITE_VALUE_OF_CHARACTERISTIC   0x7A
#define GATT_WRITE_VALUE_OF_CHARACTERISTIC_WITHOUT_RESPONSE   0x79
#define GOEP_DATA_PACKET   0x0d
#define GOEP_SUBEVENT_CAN_SEND_NOW   0x03

12

Parameters
subevent_code
goep_cid
#define GOEP_SUBEVENT_CONNECTION_CLOSED   0x02

12

Parameters
subevent_code
goep_cid
#define GOEP_SUBEVENT_CONNECTION_OPENED   0x01

121BH1

Parameters
subevent_code
goep_cid
status
bd_addr
con_handle
incoming
#define HCI_CON_HANDLE_INVALID   0xffff

Referenced by sm_done_for_handle(), sm_init(), and sm_run().

#define HCI_EVENT_A2DP_META   0xF0
#define HCI_EVENT_ANCS_META   0xEA
#define HCI_EVENT_AVDTP_META   0xEB
#define HCI_EVENT_AVRCP_META   0xEC
#define HCI_EVENT_GOEP_META   0xED
#define HCI_EVENT_HFP_META   0xE9
#define HCI_EVENT_HID_META   0xEF
#define HCI_EVENT_HIDS_META   0xF1
#define HCI_EVENT_HSP_META   0xE8
#define HCI_EVENT_PBAP_META   0xEE
#define HCI_EVENT_SCO_CAN_SEND_NOW   0x6F

B

Parameters
handle

Referenced by event_handler().

#define HCI_EVENT_TRANSPORT_PACKET_SENT   0x6E
#define HCI_EVENT_TRANSPORT_SLEEP_MODE   0x69

Indicates HCI transport enters/exits Sleep mode 1.

Parameters
active

Referenced by hci_transport_h5_emit_sleep_state().

#define HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED   0x06

111T

Parameters
subevent_code
indicator_index
indicator_status
indicator_name
#define HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG   0x0E

1

Parameters
subevent_code
#define HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED   0x03

11HB1

Parameters
subevent_code
status0 == OK
handle
bd_addr
negotiated_codec
#define HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED   0x04

1

Parameters
subevent_code
#define HFP_SUBEVENT_CALL_ANSWERED   0x11

1

Parameters
subevent_code
#define HFP_SUBEVENT_CALL_TERMINATED   0x0C

1

Parameters
subevent_code
#define HFP_SUBEVENT_CALL_WAITING_NOTIFICATION   0x16

11T

Parameters
subevent_code
type
number
#define HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION   0x17

11T

Parameters
subevent_code
type
number
#define HFP_SUBEVENT_COMPLETE   0x05

11

Parameters
subevent_code
status0 == OK
#define HFP_SUBEVENT_CONFERENCE_CALL   0x12

1

Parameters
subevent_code
#define HFP_SUBEVENT_ENHANCED_CALL_STATUS   0x18

111111T

Parameters
subevent_code
clcc_idx
clcc_dir
clcc_status
clcc_mpty
bnip_type
bnip_number
#define HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR   0x08

11

Parameters
subevent_code
error
#define HFP_SUBEVENT_MICROPHONE_VOLUME   0x15

111

Parameters
subevent_code
status
gain
#define HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED   0x07

111T

Parameters
subevent_code
network_operator_mode
network_operator_format
network_operator_name
#define HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG   0x0F

1T

Parameters
subevent_code
number
#define HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER   0x0D

1T

Parameters
subevent_code
number
#define HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS   0x1A

1T

Parameters
subevent_code
value
#define HFP_SUBEVENT_RING   0x13

1

Parameters
subevent_code
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED   0x01

HFP Subevent.

11HB

Parameters
subevent_code
status0 == OK
con_handle
bd_addr
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED   0x02

1

Parameters
subevent_code
#define HFP_SUBEVENT_SPEAKER_VOLUME   0x14

111

Parameters
subevent_code
status
gain
#define HFP_SUBEVENT_START_RINGINIG   0x0A

1

Parameters
subevent_code
#define HFP_SUBEVENT_STOP_RINGINIG   0x0B

1

Parameters
subevent_code
#define HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION   0x19

111T

Parameters
subevent_code
status
bnip_type
bnip_number
#define HFP_SUBEVENT_TRANSMIT_DTMF_CODES   0x10

1T

Parameters
subevent_code
dtmfcode
#define HID_SUBEVENT_CAN_SEND_NOW   0x03

12

Parameters
subevent_code
hid_cid
#define HID_SUBEVENT_CONNECTION_CLOSED   0x02

12

Parameters
subevent_code
hid_cid
#define HID_SUBEVENT_CONNECTION_OPENED   0x01

121BH1

Parameters
subevent_code
hid_cid
status
bd_addr
con_handle
incoming
#define HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE   0x04

121

Parameters
subevent_code
con_handle
enable

Referenced by att_write_callback().

#define HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE   0x03

121

Parameters
subevent_code
con_handle
enable

Referenced by att_write_callback().

#define HIDS_SUBEVENT_CAN_SEND_NOW   0x01

12

Parameters
subevent_code
con_handle

Referenced by hids_device_can_send_now().

#define HIDS_SUBEVENT_INPUT_REPORT_ENABLE   0x05

121

Parameters
subevent_code
con_handle
enable

Referenced by att_write_callback().

#define HIDS_SUBEVENT_PROTOCOL_MODE   0x02

121

Parameters
subevent_code
con_handle
protocol_mode

Referenced by att_write_callback().

#define HSP_SUBEVENT_AG_INDICATION   0x09

1JV

Parameters
subevent_code
value_length
value
#define HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE   0x03

11H

Parameters
subevent_code
status0 == OK
handle
#define HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE   0x04

11

Parameters
subevent_code
status0 == OK
#define HSP_SUBEVENT_HS_COMMAND   0x08

1JV

Parameters
subevent_code
value_length
value
#define HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED   0x06

11

Parameters
subevent_code
gainValid range: [0,15]
#define HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE   0x01

HSP Subevent.

11

Parameters
subevent_code
status0 == OK
#define HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE   0x02

11

Parameters
subevent_code
status0 == OK
#define HSP_SUBEVENT_RING   0x05

1

Parameters
subevent_code
#define HSP_SUBEVENT_SPEAKER_GAIN_CHANGED   0x07

11

Parameters
subevent_code
gainValid range: [0,15]
#define L2CAP_ACCEPT_CONNECTION   0x24
#define L2CAP_COMMAND_REJECT_REASON_COMMAND_NOT_UNDERSTOOD   0x60
#define L2CAP_COMMAND_REJECT_REASON_INVALID_CID_IN_REQUEST   0x62
#define L2CAP_COMMAND_REJECT_REASON_SIGNALING_MTU_EXCEEDED   0x61
#define L2CAP_CONNECTION_BASEBAND_DISCONNECT   0x6A
#define L2CAP_CONNECTION_RESPONSE_RESULT_ERTM_NOT_SUPPORTED   0x68
#define L2CAP_CONNECTION_RESPONSE_RESULT_PENDING   0x64
#define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_PSM   0x65
#define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_RESOURCES   0x67
#define L2CAP_CONNECTION_RESPONSE_RESULT_REFUSED_SECURITY   0x66
#define L2CAP_CONNECTION_RESPONSE_RESULT_RTX_TIMEOUT   0x69
#define L2CAP_CONNECTION_RESPONSE_RESULT_SUCCESSFUL   0x63
#define L2CAP_CREATE_CHANNEL   0x20
#define L2CAP_CREATE_CHANNEL_MTU   0x26
#define L2CAP_DATA_LEN_EXCEEDS_REMOTE_MTU   0x6C
#define L2CAP_DATA_PACKET   0x06
#define L2CAP_DECLINE_CONNECTION   0x25
#define L2CAP_DISCONNECT   0x21
#define L2CAP_EVENT_CAN_SEND_NOW   0x78
#define L2CAP_EVENT_CHANNEL_CLOSED   0x71
#define L2CAP_EVENT_CHANNEL_OPENED   0x70

1BH2222221

Parameters
status
address
handle
psm
local_cid
remote_cid
local_mtu
remote_mtu
flush_timeout
incoming
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST   0x76

H2222

Parameters
handle
interval_min
interval_max
latencey
timeout_multiplier
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE   0x77

H2

Parameters
handle
result
#define L2CAP_EVENT_INCOMING_CONNECTION   0x72

BH222

Parameters
address
handle
psm
local_cid
remote_cid
#define L2CAP_EVENT_LE_CAN_SEND_NOW   0x7c
#define L2CAP_EVENT_LE_CHANNEL_CLOSED   0x7b
#define L2CAP_EVENT_LE_CHANNEL_OPENED   0x7a

11BH122222

Parameters
status
address_type
address
handle
incoming
psm
local_cid
remote_cid
local_mtu
remote_mtu
#define L2CAP_EVENT_LE_INCOMING_CONNECTION   0x79

1BH2222

Parameters
address_type
address
handle
psm
local_cid
remote_cid
remote_mtu
#define L2CAP_EVENT_LE_PACKET_SENT   0x7d

Referenced by l2cap_run().

#define L2CAP_EVENT_TIMEOUT_CHECK   0x73

Referenced by l2cap_hci_event_handler().

#define L2CAP_LOCAL_CID_DOES_NOT_EXIST   0x6E
#define L2CAP_REGISTER_SERVICE   0x22
#define L2CAP_SERVICE_ALREADY_REGISTERED   0x6B
#define L2CAP_SERVICE_DOES_NOT_EXIST   0x6D
#define L2CAP_UNREGISTER_SERVICE   0x23
#define LOG_MESSAGE_PACKET   0xfc
#define OBEX_CONNECT_FAILED   0xB1
#define OBEX_DISCONNECTED   0xB2
#define OBEX_NOT_FOUND   0xB3
#define OBEX_UNKNOWN_ERROR   0xB0
#define OGF_BTSTACK   0x3d
#define PBAP_DATA_PACKET   0x0e
#define PBAP_SUBEVENT_CONNECTION_CLOSED   0x02

12

Parameters
subevent_code
goep_cid
#define PBAP_SUBEVENT_CONNECTION_OPENED   0x01

121BH1

Parameters
subevent_code
pbap_cid
status
bd_addr
con_handle
incoming
#define PBAP_SUBEVENT_OPERATION_COMPLETED   0x03

121

Parameters
subevent_code
goep_cid
status
#define RFCOMM_ACCEPT_CONNECTION   0x44
#define RFCOMM_AGGREGATE_FLOW_OFF   0x73
#define RFCOMM_CHANNEL_ALREADY_REGISTERED   0x71
#define RFCOMM_CREATE_CHANNEL   0x40
#define RFCOMM_CREATE_CHANNEL_WITH_CREDITS   0x47
#define RFCOMM_DATA_LEN_EXCEEDS_MTU   0x74
#define RFCOMM_DATA_PACKET   0x07
#define RFCOMM_DECLINE_CONNECTION   0x45
#define RFCOMM_DISCONNECT   0x41
#define RFCOMM_EVENT_CAN_SEND_NOW   0x89

2

Parameters
rfcomm_cid
#define RFCOMM_EVENT_CHANNEL_CLOSED   0x81

2

Parameters
rfcomm_cid
#define RFCOMM_EVENT_CHANNEL_OPENED   0x80

1B21221

Parameters
status
bd_addr
con_handle
server_channel
rfcomm_cid
max_frame_size
incoming
#define RFCOMM_EVENT_INCOMING_CONNECTION   0x82

B12

Parameters
bd_addr
server_channel
rfcomm_cid
#define RFCOMM_EVENT_PORT_CONFIGURATION   0x88

TODO: format for variable data 2? param rfcomm_cid param rpn_data.

#define RFCOMM_EVENT_REMOTE_LINE_STATUS   0x83

21

Parameters
rfcomm_cid
line_status
#define RFCOMM_EVENT_REMOTE_MODEM_STATUS   0x87

21

Parameters
rfcomm_cid
modem_status
#define RFCOMM_GRANT_CREDITS   0x49
#define RFCOMM_MULTIPLEXER_STOPPED   0x70
#define RFCOMM_NO_OUTGOING_CREDITS   0x72
#define RFCOMM_PERSISTENT_CHANNEL   0x46
#define RFCOMM_REGISTER_SERVICE   0x42
#define RFCOMM_REGISTER_SERVICE_WITH_CREDITS   0x48
#define RFCOMM_UNREGISTER_SERVICE   0x43
#define SDP_CLIENT_PACKET   0x0a
#define SDP_CLIENT_QUERY_RFCOMM_SERVICES   0x32
#define SDP_CLIENT_QUERY_SERVICES   0x33
#define SDP_EVENT_QUERY_ATTRIBUTE_BYTE   0x93

22221

Parameters
record_id
attribute_id
attribute_length
data_offset
data
#define SDP_EVENT_QUERY_ATTRIBUTE_VALUE   0x94

22LV

Parameters
record_id
attribute_id
attribute_length
attribute_value
#define SDP_EVENT_QUERY_COMPLETE   0x91

1

Parameters
status
#define SDP_EVENT_QUERY_RFCOMM_SERVICE   0x92

1T

Parameters
rfcomm_channel
name
#define SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE   0x95

224

Parameters
total_count
record_index
record_handle
Note
Not provided by daemon, only used for internal testing
#define SDP_HANDLE_ALREADY_REGISTERED   0x80
#define SDP_HANDLE_INVALID   0x83
#define SDP_QUERY_BUSY   0x84
#define SDP_QUERY_INCOMPLETE   0x81
#define SDP_REGISTER_SERVICE_RECORD   0x30
#define SDP_SERVICE_NOT_FOUND   0x82
#define SDP_UNREGISTER_SERVICE_RECORD   0x31
#define SM_DATA_PACKET   0x09
#define SM_EVENT_AUTHORIZATION_REQUEST   0xDB

H1B

Parameters
handle
addr_type
address
#define SM_EVENT_AUTHORIZATION_RESULT   0xDC

H1B1

Parameters
handle
addr_type
address
authorization_result

Referenced by att_event_packet_handler(), sm_authorization_decline(), and sm_authorization_grant().

#define SM_EVENT_IDENTITY_CREATED   0xDE

Emitted during pairing to inform app about address used as identity.

H1B1B

Parameters
handle
addr_type
address
identity_addr_type
identity_address

Referenced by sm_key_distribution_handle_all_received().

#define SM_EVENT_IDENTITY_RESOLVING_FAILED   0xD9

H1B

Parameters
handle
addr_type
address

Referenced by att_event_packet_handler(), and sm_address_resolution_handle_event().

#define SM_EVENT_IDENTITY_RESOLVING_STARTED   0xD8

H1B

Parameters
handle
addr_type
address

Referenced by att_event_packet_handler(), and sm_address_resolution_start_lookup().

#define SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED   0xDA

Identify resolving succeeded.

H1B1B2

Parameters
handle
addr_type
address
identity_addr_type
identity_address
index_internal

Referenced by att_event_packet_handler(), and sm_address_resolution_handle_event().

#define SM_EVENT_JUST_WORKS_CANCEL   0xD1

H1B

Parameters
handle
addr_type
address
#define SM_EVENT_JUST_WORKS_REQUEST   0xD0

H1B

Parameters
handle
addr_type
address

Referenced by sm_trigger_user_response().

#define SM_EVENT_KEYPRESS_NOTIFICATION   0xDD

H1

Parameters
handle
actionsee SM_KEYPRESS_*

Referenced by sm_pdu_handler().

#define SM_EVENT_NUMERIC_COMPARISON_CANCEL   0xD7

H1B

Parameters
handle
addr_type
address
#define SM_EVENT_NUMERIC_COMPARISON_REQUEST   0xD6

H1B4

Parameters
handle
addr_type
address
passkey

Referenced by sm_trigger_user_response().

#define SM_EVENT_PASSKEY_DISPLAY_CANCEL   0xD3

H1B

Parameters
handle
addr_type
address

Referenced by sm_pdu_handler().

#define SM_EVENT_PASSKEY_DISPLAY_NUMBER   0xD2

H1B4

Parameters
handle
addr_type
address
passkey

Referenced by sm_trigger_user_response().

#define SM_EVENT_PASSKEY_INPUT_CANCEL   0xD5

H1B

Parameters
handle
addr_type
address
#define SM_EVENT_PASSKEY_INPUT_NUMBER   0xD4

H1B

Parameters
handle
addr_type
address

Referenced by sm_trigger_user_response().

#define UCD_DATA_PACKET   0x0c
#define UNUSED (   x)    (void)(sizeof(x))

typedef void(* btstack_packet_handler_t)(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)
typedef uint8_t sm_key_t[16]

128 bit key used with AES128 in Security Manager