Data Structures | |
struct | btstack_context_callback_registration_t |
struct | btstack_packet_callback_registration_t |
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
subevent_code | |
a2dp_cid | |
local_seid | |
signal_identifier |
#define A2DP_SUBEVENT_COMMAND_REJECTED 0x0A |
1211
subevent_code | |
a2dp_cid | |
local_seid | |
signal_identifier |
#define A2DP_SUBEVENT_INCOMING_CONNECTION_ESTABLISHED 0x0B |
12B Signaling channel is opened.
subevent_code | |
a2dp_cid | |
bd_addr |
#define A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 0x0C |
12 Signaling channel is released.
subevent_code | |
a2dp_cid |
#define A2DP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CONFIGURATION 0x03 |
1211112LV
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
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.
subevent_code | |
a2dp_cid | |
bd_addr | |
local_seid | |
remote_seid | |
status |
#define A2DP_SUBEVENT_STREAM_RELEASED 0x08 |
121 Stream is released.
subevent_code | |
a2dp_cid | |
local_seid |
#define A2DP_SUBEVENT_STREAM_STARTED 0x05 |
121 Indicates that media transfer is started.
subevent_code | |
a2dp_cid | |
local_seid |
#define A2DP_SUBEVENT_STREAM_STOPPED 0x07 |
121 Stream is stoped or aborted.
subevent_code | |
a2dp_cid | |
local_seid |
#define A2DP_SUBEVENT_STREAM_SUSPENDED 0x06 |
121 Stream is paused.
subevent_code | |
a2dp_cid | |
local_seid |
#define A2DP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 0x01 |
A2DP Subevent.
121 Sent only by A2DP source.
subevent_code | |
a2dp_cid | |
local_seid |
#define ANCS_SUBEVENT_CLIENT_CONNECTED 0xF0 |
#define ANCS_SUBEVENT_CLIENT_DISCONNECTED 0xF2 |
#define ANCS_SUBEVENT_CLIENT_NOTIFICATION 0xF1 |
1H2T
subevent_code | |
handle | |
attribute_id | |
text |
Referenced by ancs_chunk_parser_handle_byte().
#define ATT_DATA_PACKET 0x08 |
Referenced by att_packet_handler(), gatt_client_att_packet_handler(), and l2cap_acl_le_handler().
#define ATT_DB_FLAGS_READ_WITHOUT_AUTHENTICATION 0x0001 |
#define ATT_DB_PERSISTENT_WRITE_CCC 0x0010 |
Referenced by att_db_util_add_client_characteristic_configuration().
#define ATT_EVENT_CAN_SEND_NOW 0xB7 |
Referenced by att_emit_can_send_now_event(), and packet_handler().
#define ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 0xB6 |
1H2
status | |
conn_handle | |
attribute_handle |
Referenced by att_handle_value_indication_notify_client().
#define ATT_EVENT_MTU_EXCHANGE_COMPLETE 0xB5 |
#define ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS 0x90 |
Referenced by att_server_indicate().
#define ATT_HANDLE_VALUE_INDICATION_TIMEOUT 0x91 |
Referenced by att_handle_value_indication_timeout().
#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
subevent_code | |
avdtp_cid | |
local_seid | |
signal_identifier |
#define AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED 0x04 |
12B1
subevent_code | |
avdtp_cid | |
bd_addr | |
status | 0 == OK |
#define AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 0x05 |
12
subevent_code | |
avdtp_cid |
#define AVDTP_SUBEVENT_SIGNALING_GENERAL_REJECT 0x03 |
1211
subevent_code | |
avdtp_cid | |
local_seid | |
signal_identifier |
#define AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_OTHER_CAPABILITY 0x08 |
121112LV
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
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
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
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
subevent_code | |
avdtp_cid | |
local_seid | |
signal_identifier |
#define AVDTP_SUBEVENT_SIGNALING_SEP_FOUND 0x06 |
121111
subevent_code | |
avdtp_cid | |
remote_seid | 0x01 – 0x3E |
in_use | 0-not in use, 1-in use |
media_type | 0-audio, 1-video, 2-multimedia |
sep_type | 0-source, 1-sink |
#define AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW 0x0D |
1212
subevent_code | |
avdtp_cid | |
local_seid | |
sequence_number |
#define AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED 0x0B |
12B111
subevent_code | |
avdtp_cid | |
bd_addr | |
local_seid | |
remote_seid | |
status | 0 == OK |
#define AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED 0x0C |
121
subevent_code | |
avdtp_cid | |
local_seid |
#define AVRCP_SUBEVENT_COMPANY_IDS_QUERY 0x0F |
12
subevent_code | |
avrcp_cid |
#define AVRCP_SUBEVENT_CONNECTION_ESTABLISHED 0x01 |
AVRCP Subevent.
11B2
subevent_code | |
status | 0 == OK |
bd_addr | |
avrcp_cid |
#define AVRCP_SUBEVENT_CONNECTION_RELEASED 0x02 |
12
subevent_code | |
avrcp_cid |
#define AVRCP_SUBEVENT_ENABLE_NOTIFICATION_COMPLETE 0x0B |
1211
subevent_code | |
avrcp_cid | |
command_type | |
notification_id |
#define AVRCP_SUBEVENT_EVENT_IDS_QUERY 0x10 |
12
subevent_code | |
avrcp_cid |
#define AVRCP_SUBEVENT_NOTIFICATION_AVAILABLE_PLAYERS_CHANGED 0x08 |
121
subevent_code | |
avrcp_cid | |
command_type |
#define AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED 0x07 |
121
subevent_code | |
avrcp_cid | |
command_type |
#define AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 0x05 |
1211
subevent_code | |
avrcp_cid | |
command_type | |
play_status |
#define AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 0x06 |
121
subevent_code | |
avrcp_cid | |
command_type |
#define AVRCP_SUBEVENT_NOTIFICATION_VOLUME_CHANGED 0x09 |
1211
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
subevent_code | |
avrcp_cid | |
command_type | |
song_length | in ms |
#define AVRCP_SUBEVENT_NOW_PLAYING_TITLE_INFO 0x16 |
121JV
subevent_code | |
avrcp_cid | |
command_type | |
value_len | |
value |
#define AVRCP_SUBEVENT_NOW_PLAYING_TOTAL_TRACKS_INFO 0x14 |
1211
subevent_code | |
avrcp_cid | |
command_type | |
total_tracks |
#define AVRCP_SUBEVENT_NOW_PLAYING_TRACK_INFO 0x13 |
1211
subevent_code | |
avrcp_cid | |
command_type | |
track |
#define AVRCP_SUBEVENT_OPERATION 0x12 |
12111
subevent_code | |
avrcp_cid | |
operation_id | |
operands_length | |
operand |
#define AVRCP_SUBEVENT_OPERATION_COMPLETE 0x0D |
1211
subevent_code | |
avrcp_cid | |
command_type | |
operation_id |
#define AVRCP_SUBEVENT_OPERATION_START 0x0C |
1211
subevent_code | |
avrcp_cid | |
command_type | |
operation_id |
#define AVRCP_SUBEVENT_PLAY_STATUS 0x04 |
121441
subevent_code | |
avrcp_cid | |
command_type | |
song_length | |
song_position | |
play_status |
#define AVRCP_SUBEVENT_PLAY_STATUS_QUERY 0x11 |
12
subevent_code | |
avrcp_cid |
#define AVRCP_SUBEVENT_PLAYER_APPLICATION_VALUE_RESPONSE 0x0E |
121
subevent_code | |
avrcp_cid | |
command_type |
#define AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE 0x0A |
1211
subevent_code | |
avrcp_cid | |
command_type | |
absolute_volume |
#define AVRCP_SUBEVENT_SHUFFLE_AND_REPEAT_MODE 0x03 |
12111
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
bnep_cid | |
source_uuid | |
destination_uuid | |
remote_address |
#define BNEP_EVENT_CHANNEL_CLOSED 0xC2 |
222B
bnep_cid | |
source_uuid | |
destination_uuid | |
remote_address |
#define BNEP_EVENT_CHANNEL_OPENED 0xC1 |
12222B
status | |
bnep_cid | |
source_uuid | |
destination_uuid | |
mtu | |
remote_address |
#define BNEP_EVENT_CHANNEL_TIMEOUT 0xC3 |
222B1
bnep_cid | |
source_uuid | |
destination_uuid | |
remote_address | |
channel_state |
#define BNEP_EVENT_SERVICE_REGISTERED 0xC0 |
12
status | |
service_uuid |
#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 |
Referenced by sm_address_resolution_lookup().
#define BTSTACK_CONNECTION_TO_BTDAEMON_FAILED 0x50 |
#define BTSTACK_EVENT_DISCOVERABLE_ENABLED 0x66 |
1
discoverable |
#define BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 0x61 |
#define BTSTACK_EVENT_POWERON_FAILED 0x62 |
Referenced by hci_emit_hci_open_failed().
#define BTSTACK_EVENT_STATE 0x60 |
#define BTSTACK_GET_STATE 0x01 |
#define BTSTACK_GET_SYSTEM_BLUETOOTH_ENABLED 0x05 |
#define BTSTACK_GET_VERSION 0x04 |
#define BTSTACK_MEMORY_ALLOC_FAILED 0x56 |
Referenced by gatt_client_cancel_write(), gatt_client_discover_characteristic_descriptors(), gatt_client_discover_characteristics_for_handle_range_by_uuid128(), gatt_client_discover_characteristics_for_handle_range_by_uuid16(), gatt_client_discover_characteristics_for_service(), gatt_client_discover_primary_services(), gatt_client_discover_primary_services_by_uuid128(), gatt_client_discover_primary_services_by_uuid16(), gatt_client_execute_write(), gatt_client_find_included_services_for_service(), gatt_client_prepare_write(), gatt_client_read_characteristic_descriptor_using_descriptor_handle(), gatt_client_read_long_characteristic_descriptor_using_descriptor_handle_with_offset(), gatt_client_read_long_value_of_characteristic_using_value_handle_with_offset(), gatt_client_read_multiple_characteristic_values(), gatt_client_read_value_of_characteristic_using_value_handle(), gatt_client_read_value_of_characteristics_by_uuid128(), gatt_client_read_value_of_characteristics_by_uuid16(), gatt_client_reliable_write_long_value_of_characteristic(), gatt_client_write_characteristic_descriptor_using_descriptor_handle(), gatt_client_write_client_characteristic_configuration(), gatt_client_write_long_characteristic_descriptor_using_descriptor_handle_with_offset(), gatt_client_write_long_value_of_characteristic_with_offset(), gatt_client_write_value_of_characteristic(), gatt_client_write_value_of_characteristic_without_response(), hci_send_cmd_packet(), and sm_address_resolution_lookup().
#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
status | |
psm |
#define DAEMON_EVENT_PACKET 0x05 |
#define DAEMON_EVENT_REMOTE_NAME_CACHED 0x65 |
#define DAEMON_EVENT_RFCOMM_CREDITS 0x84 |
21
rfcomm_cid | |
credits |
#define DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL 0x86 |
11
status | |
server_channel_id |
#define DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED 0x85 |
11
status | |
channel_id |
#define DAEMON_EVENT_SDP_SERVICE_REGISTERED 0x90 |
14
status | |
service_record_handle |
#define DAEMON_EVENT_SYSTEM_BLUETOOTH_ENABLED 0x64 |
1 param system_bluetooth_enabled
#define DAEMON_EVENT_VERSION 0x63 |
112
major | |
minor | @ |
revision |
#define GAP_DISCONNECT 0x50 |
#define GAP_EVENT_ADVERTISING_REPORT 0xE2 |
11B1JV
advertising_event_type | |
address_type | |
address | |
rssi | |
data_length | |
data |
#define GAP_EVENT_DEDICATED_BONDING_COMPLETED 0xE1 |
#define GAP_EVENT_INQUIRY_COMPLETE 0xE4 |
#define GAP_EVENT_INQUIRY_RESULT 0xE3 |
B132111JV
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 |
#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 |
Referenced by gatt_client_write_value_of_characteristic_without_response().
#define GATT_CLIENT_CHARACTERISTIC_INDICATION_NOT_SUPPORTED 0x99 |
Referenced by gatt_client_write_client_characteristic_configuration().
#define GATT_CLIENT_CHARACTERISTIC_NOTIFICATION_NOT_SUPPORTED 0x98 |
Referenced by gatt_client_write_client_characteristic_configuration().
#define GATT_CLIENT_DIFFERENT_CONTEXT_FOR_ADDRESS_ALREADY_EXISTS 0x96 |
#define GATT_CLIENT_IN_WRONG_STATE 0x95 |
Referenced by gatt_client_cancel_write(), gatt_client_discover_characteristic_descriptors(), gatt_client_discover_characteristics_for_handle_range_by_uuid128(), gatt_client_discover_characteristics_for_handle_range_by_uuid16(), gatt_client_discover_characteristics_for_service(), gatt_client_discover_primary_services(), gatt_client_discover_primary_services_by_uuid128(), gatt_client_discover_primary_services_by_uuid16(), gatt_client_execute_write(), gatt_client_find_included_services_for_service(), gatt_client_get_mtu(), gatt_client_prepare_write(), gatt_client_read_characteristic_descriptor_using_descriptor_handle(), gatt_client_read_long_characteristic_descriptor_using_descriptor_handle_with_offset(), gatt_client_read_long_value_of_characteristic_using_value_handle_with_offset(), gatt_client_read_multiple_characteristic_values(), gatt_client_read_value_of_characteristic_using_value_handle(), gatt_client_read_value_of_characteristics_by_uuid128(), gatt_client_read_value_of_characteristics_by_uuid16(), gatt_client_reliable_write_long_value_of_characteristic(), gatt_client_write_characteristic_descriptor_using_descriptor_handle(), gatt_client_write_client_characteristic_configuration(), gatt_client_write_long_characteristic_descriptor_using_descriptor_handle_with_offset(), gatt_client_write_long_value_of_characteristic_with_offset(), gatt_client_write_value_of_characteristic(), and gatt_client_write_value_of_characteristic_without_response().
#define GATT_CLIENT_NOT_CONNECTED 0x93 |
#define GATT_CLIENT_VALUE_TOO_LONG 0x97 |
Referenced by gatt_client_write_value_of_characteristic_without_response().
#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
handle | |
characteristic_descriptor |
Referenced by emit_gatt_all_characteristic_descriptors_result_event().
#define GATT_EVENT_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 0xA9 |
H2LV
handle | |
descriptor_handle | |
descriptor_length | |
descriptor |
Referenced by report_gatt_characteristic_descriptor().
#define GATT_EVENT_CHARACTERISTIC_QUERY_RESULT 0xA2 |
HY
handle | |
characteristic |
Referenced by emit_gatt_characteristic_query_result_event(), and handle_hci_event().
#define GATT_EVENT_CHARACTERISTIC_VALUE_QUERY_RESULT 0xA5 |
H2LV
handle | |
value_handle | |
value_length | |
value |
Referenced by report_gatt_characteristic_value().
#define GATT_EVENT_INCLUDED_SERVICE_QUERY_RESULT 0xA3 |
H2X
handle | |
include_handle | |
service |
Referenced by emit_gatt_included_service_query_result_event().
#define GATT_EVENT_INDICATION 0xA8 |
H2LV
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
handle | |
descriptor_offset | |
descriptor_length | |
descriptor |
Referenced by report_gatt_long_characteristic_descriptor().
#define GATT_EVENT_LONG_CHARACTERISTIC_VALUE_QUERY_RESULT 0xA6 |
H22LV
handle | |
value_handle | |
value_offset | |
value_length | |
value |
Referenced by report_gatt_long_characteristic_value_blob().
#define GATT_EVENT_MTU 0xAB |
H2
handle | |
MTU |
#define GATT_EVENT_NOTIFICATION 0xA7 |
H2LV
handle | |
value_handle | |
value_length | |
value |
Referenced by handle_hci_event(), and report_gatt_notification().
#define GATT_EVENT_QUERY_COMPLETE 0xA0 |
#define GATT_EVENT_SERVICE_QUERY_RESULT 0xA1 |
HX
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
subevent_code | |
goep_cid |
#define GOEP_SUBEVENT_CONNECTION_CLOSED 0x02 |
12
subevent_code | |
goep_cid |
#define GOEP_SUBEVENT_CONNECTION_OPENED 0x01 |
121BH1
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 |
Referenced by notify_client_simple(), and notify_client_text().
#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 |
Referenced by hids_device_can_send_now(), and hids_device_emit_event_with_uint8().
#define HCI_EVENT_HSP_META 0xE8 |
#define HCI_EVENT_PBAP_META 0xEE |
#define HCI_EVENT_SCO_CAN_SEND_NOW 0x6F |
#define HCI_EVENT_TRANSPORT_PACKET_SENT 0x6E |
Outgoing packet.
Referenced by event_handler(), hci_send_acl_packet_fragments(), hci_transport_h5_process_frame(), and l2cap_hci_event_handler().
#define HCI_EVENT_TRANSPORT_SLEEP_MODE 0x69 |
Indicates HCI transport enters/exits Sleep mode 1.
active |
Referenced by hci_transport_h5_emit_sleep_state().
#define HFP_SUBEVENT_AG_INDICATOR_STATUS_CHANGED 0x06 |
111T
subevent_code | |
indicator_index | |
indicator_status | |
indicator_name |
#define HFP_SUBEVENT_ATTACH_NUMBER_TO_VOICE_TAG 0x0E |
1
subevent_code |
#define HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 0x03 |
11HB1
subevent_code | |
status | 0 == OK |
handle | |
bd_addr | |
negotiated_codec |
#define HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED 0x04 |
1
subevent_code |
#define HFP_SUBEVENT_CALL_ANSWERED 0x11 |
1
subevent_code |
#define HFP_SUBEVENT_CALL_TERMINATED 0x0C |
1
subevent_code |
#define HFP_SUBEVENT_CALL_WAITING_NOTIFICATION 0x16 |
11T
subevent_code | |
type | |
number |
#define HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION 0x17 |
11T
subevent_code | |
type | |
number |
#define HFP_SUBEVENT_COMPLETE 0x05 |
11
subevent_code | |
status | 0 == OK |
#define HFP_SUBEVENT_CONFERENCE_CALL 0x12 |
1
subevent_code |
#define HFP_SUBEVENT_ENHANCED_CALL_STATUS 0x18 |
111111T
subevent_code | |
clcc_idx | |
clcc_dir | |
clcc_status | |
clcc_mpty | |
bnip_type | |
bnip_number |
#define HFP_SUBEVENT_EXTENDED_AUDIO_GATEWAY_ERROR 0x08 |
11
subevent_code | |
error |
#define HFP_SUBEVENT_MICROPHONE_VOLUME 0x15 |
111
subevent_code | |
status | |
gain |
#define HFP_SUBEVENT_NETWORK_OPERATOR_CHANGED 0x07 |
111T
subevent_code | |
network_operator_mode | |
network_operator_format | |
network_operator_name |
#define HFP_SUBEVENT_NUMBER_FOR_VOICE_TAG 0x0F |
1T
subevent_code | |
number |
#define HFP_SUBEVENT_PLACE_CALL_WITH_NUMBER 0x0D |
1T
subevent_code | |
number |
#define HFP_SUBEVENT_RESPONSE_AND_HOLD_STATUS 0x1A |
1T
subevent_code | |
value |
#define HFP_SUBEVENT_RING 0x13 |
1
subevent_code |
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED 0x01 |
HFP Subevent.
11HB
subevent_code | |
status | 0 == OK |
con_handle | |
bd_addr |
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 0x02 |
1
subevent_code |
#define HFP_SUBEVENT_SPEAKER_VOLUME 0x14 |
111
subevent_code | |
status | |
gain |
#define HFP_SUBEVENT_START_RINGINIG 0x0A |
1
subevent_code |
#define HFP_SUBEVENT_STOP_RINGINIG 0x0B |
1
subevent_code |
#define HFP_SUBEVENT_SUBSCRIBER_NUMBER_INFORMATION 0x19 |
111T
subevent_code | |
status | |
bnip_type | |
bnip_number |
#define HFP_SUBEVENT_TRANSMIT_DTMF_CODES 0x10 |
1T
subevent_code | |
dtmf | code |
#define HID_SUBEVENT_CAN_SEND_NOW 0x03 |
12
subevent_code | |
hid_cid |
#define HID_SUBEVENT_CONNECTION_CLOSED 0x02 |
12
subevent_code | |
hid_cid |
#define HID_SUBEVENT_CONNECTION_OPENED 0x01 |
121BH1
subevent_code | |
hid_cid | |
status | |
bd_addr | |
con_handle | |
incoming |
#define HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE 0x04 |
#define HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE 0x03 |
#define HIDS_SUBEVENT_CAN_SEND_NOW 0x01 |
#define HIDS_SUBEVENT_INPUT_REPORT_ENABLE 0x05 |
#define HIDS_SUBEVENT_PROTOCOL_MODE 0x02 |
#define HSP_SUBEVENT_AG_INDICATION 0x09 |
1JV
subevent_code | |
value_length | |
value |
#define HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 0x03 |
11H
subevent_code | |
status | 0 == OK |
handle |
#define HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE 0x04 |
11
subevent_code | |
status | 0 == OK |
#define HSP_SUBEVENT_HS_COMMAND 0x08 |
1JV
subevent_code | |
value_length | |
value |
#define HSP_SUBEVENT_MICROPHONE_GAIN_CHANGED 0x06 |
11
subevent_code | |
gain | Valid range: [0,15] |
#define HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE 0x01 |
HSP Subevent.
11
subevent_code | |
status | 0 == OK |
#define HSP_SUBEVENT_RFCOMM_DISCONNECTION_COMPLETE 0x02 |
11
subevent_code | |
status | 0 == OK |
#define HSP_SUBEVENT_RING 0x05 |
1
subevent_code |
#define HSP_SUBEVENT_SPEAKER_GAIN_CHANGED 0x07 |
11
subevent_code | |
gain | Valid 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 |
Referenced by l2cap_acl_classic_handler(), and l2cap_acl_le_handler().
#define L2CAP_DECLINE_CONNECTION 0x25 |
#define L2CAP_DISCONNECT 0x21 |
#define L2CAP_EVENT_CAN_SEND_NOW 0x78 |
2
local_cid |
Referenced by att_packet_handler(), gatt_client_att_packet_handler(), l2cap_emit_can_send_now(), and sm_pdu_handler().
#define L2CAP_EVENT_CHANNEL_CLOSED 0x71 |
#define L2CAP_EVENT_CHANNEL_OPENED 0x70 |
1BH2222221
status | |
address | |
handle | |
psm | |
local_cid | |
remote_cid | |
local_mtu | |
remote_mtu | |
flush_timeout | |
incoming |
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 0x76 |
H2222
handle | |
interval_min | |
interval_max | |
latencey | |
timeout_multiplier |
#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 0x77 |
H2
handle | |
result |
#define L2CAP_EVENT_INCOMING_CONNECTION 0x72 |
BH222
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
status | |
address_type | |
address | |
handle | |
incoming | |
psm | |
local_cid | |
remote_cid | |
local_mtu | |
remote_mtu |
#define L2CAP_EVENT_LE_INCOMING_CONNECTION 0x79 |
1BH2222
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 |
Referenced by hci_dump_log_va_arg(), hci_dump_packet(), and printf_packet().
#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
subevent_code | |
goep_cid |
#define PBAP_SUBEVENT_CONNECTION_OPENED 0x01 |
121BH1
subevent_code | |
pbap_cid | |
status | |
bd_addr | |
con_handle | |
incoming |
#define PBAP_SUBEVENT_OPERATION_COMPLETED 0x03 |
121
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
rfcomm_cid |
#define RFCOMM_EVENT_CHANNEL_CLOSED 0x81 |
2
rfcomm_cid |
#define RFCOMM_EVENT_CHANNEL_OPENED 0x80 |
1B21221
status | |
bd_addr | |
con_handle | |
server_channel | |
rfcomm_cid | |
max_frame_size | |
incoming |
#define RFCOMM_EVENT_INCOMING_CONNECTION 0x82 |
B12
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
rfcomm_cid | |
line_status |
#define RFCOMM_EVENT_REMOTE_MODEM_STATUS 0x87 |
21
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
record_id | |
attribute_id | |
attribute_length | |
data_offset | |
data |
#define SDP_EVENT_QUERY_ATTRIBUTE_VALUE 0x94 |
22LV
record_id | |
attribute_id | |
attribute_length | |
attribute_value |
#define SDP_EVENT_QUERY_COMPLETE 0x91 |
1
status |
#define SDP_EVENT_QUERY_RFCOMM_SERVICE 0x92 |
1T
rfcomm_channel | |
name |
#define SDP_EVENT_QUERY_SERVICE_RECORD_HANDLE 0x95 |
224
total_count | |
record_index | |
record_handle |
#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 |
Referenced by l2cap_acl_le_handler(), and sm_pdu_handler().
#define SM_EVENT_AUTHORIZATION_REQUEST 0xDB |
H1B
handle | |
addr_type | |
address |
#define SM_EVENT_AUTHORIZATION_RESULT 0xDC |
H1B1
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
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
handle | |
addr_type | |
address |
Referenced by att_event_packet_handler(), and sm_address_resolution_handle_event().
#define SM_EVENT_IDENTITY_RESOLVING_STARTED 0xD8 |
H1B
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
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
handle | |
addr_type | |
address |
#define SM_EVENT_JUST_WORKS_REQUEST 0xD0 |
#define SM_EVENT_KEYPRESS_NOTIFICATION 0xDD |
#define SM_EVENT_NUMERIC_COMPARISON_CANCEL 0xD7 |
H1B
handle | |
addr_type | |
address |
#define SM_EVENT_NUMERIC_COMPARISON_REQUEST 0xD6 |
#define SM_EVENT_PASSKEY_DISPLAY_CANCEL 0xD3 |
#define SM_EVENT_PASSKEY_DISPLAY_NUMBER 0xD2 |
#define SM_EVENT_PASSKEY_INPUT_CANCEL 0xD5 |
H1B
handle | |
addr_type | |
address |
#define SM_EVENT_PASSKEY_INPUT_NUMBER 0xD4 |
#define UCD_DATA_PACKET 0x0c |
Referenced by l2cap_acl_classic_handler().
#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