Microchip® Advanced Software Framework

avdtp.h File Reference
#include <stdint.h>
#include "hci.h"
#include "classic/btstack_sbc.h"
#include "btstack_ring_buffer.h"

Data Structures

struct  adtvp_content_protection_t
 
struct  adtvp_media_codec_capabilities_t
 
struct  avdtp_capabilities_t
 
struct  avdtp_connection_t
 
struct  avdtp_context_t
 
struct  avdtp_header_compression_capabilities_t
 
struct  avdtp_media_packet_header_t
 
struct  avdtp_multiplexing_mode_capabilities_t
 
struct  avdtp_recovery_capabilities_t
 
struct  avdtp_sbc_codec_header_t
 
struct  avdtp_sep_t
 
struct  avdtp_signaling_packet_t
 
struct  avdtp_stream_endpoint
 
struct  avdtp_stream_endpoint_context_t
 

Macros

#define AVDTP_SINK_SF_Amplifier   0x0008
 
#define AVDTP_SINK_SF_Headphone   0x0001
 
#define AVDTP_SINK_SF_Recorder   0x0004
 
#define AVDTP_SINK_SF_Speaker   0x0002
 
#define AVDTP_SOURCE_SF_Microphone   0x0002
 
#define AVDTP_SOURCE_SF_Mixer   0x0008
 
#define AVDTP_SOURCE_SF_Player   0x0001
 
#define AVDTP_SOURCE_SF_Tuner   0x0004
 
#define BAD_ACP_SEID   0x12
 
#define BAD_CP_FORMAT   0x27
 
#define BAD_HEADER_FORMAT   0x01
 
#define BAD_LENGTH   0x11
 
#define BAD_MEDIA_TRANSPORT_FORMAT   0x23
 
#define BAD_MULTIPLEXING_FORMAT   0x28
 
#define BAD_PAYLOAD_FORMAT   0x18
 
#define BAD_RECOVERY_FORMAT   0x25
 
#define BAD_RECOVERY_TYPE   0x22
 
#define BAD_ROHC_FORMAT   0x26
 
#define BAD_SERV_CATEGORY   0x17
 
#define BAD_STATE   0x31
 
#define INVALID_CAPABILITIES   0x1A
 
#define MAX_CSRC_NUM   15
 
#define MAX_NUM_SEPS   10
 
#define NOT_SUPPORTED_COMMAND   0x19
 
#define SEP_IN_USE   0x13
 
#define SEP_NOT_IN_USE   0x14
 
#define UNSUPPORTED_CONFIGURATION   0x29
 

Typedefs

typedef struct
avdtp_stream_endpoint 
avdtp_stream_endpoint_t
 

Enumerations

enum  a2dp_state_t {
  A2DP_IDLE,
  A2DP_CONNECTED,
  A2DP_W2_DISCOVER_SEPS,
  A2DP_W2_GET_CAPABILITIES,
  A2DP_W2_GET_ALL_CAPABILITIES,
  A2DP_W2_SET_CONFIGURATION,
  A2DP_W4_GET_CONFIGURATION,
  A2DP_W4_SET_CONFIGURATION,
  A2DP_W2_SUSPEND_STREAM_WITH_SEID,
  A2DP_W2_RECONFIGURE_WITH_SEID,
  A2DP_W2_OPEN_STREAM_WITH_SEID,
  A2DP_W4_OPEN_STREAM_WITH_SEID,
  A2DP_W2_START_STREAM_WITH_SEID,
  A2DP_W2_ABORT_STREAM_WITH_SEID,
  A2DP_W2_STOP_STREAM_WITH_SEID,
  A2DP_W2_GET_CONFIGURATION,
  A2DP_STREAMING_OPENED
}
 
enum  avdtp_acceptor_connection_state_t {
  AVDTP_SIGNALING_CONNECTION_ACCEPTOR_IDLE,
  AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_ANSWER_DISCOVER_SEPS,
  AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE,
  AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE,
  AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_GENERAL_REJECT_WITH_ERROR_CODE
}
 
enum  avdtp_acceptor_stream_endpoint_state_t {
  AVDTP_ACCEPTOR_STREAM_CONFIG_IDLE,
  AVDTP_ACCEPTOR_W2_ANSWER_GET_CAPABILITIES,
  AVDTP_ACCEPTOR_W2_ANSWER_GET_ALL_CAPABILITIES,
  AVDTP_ACCEPTOR_W2_ANSWER_SET_CONFIGURATION,
  AVDTP_ACCEPTOR_W2_ANSWER_RECONFIGURE,
  AVDTP_ACCEPTOR_W2_ANSWER_GET_CONFIGURATION,
  AVDTP_ACCEPTOR_W2_ANSWER_OPEN_STREAM,
  AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM,
  AVDTP_ACCEPTOR_W2_ANSWER_CLOSE_STREAM,
  AVDTP_ACCEPTOR_W2_ANSWER_ABORT_STREAM,
  AVDTP_ACCEPTOR_W2_SUSPEND_STREAM_WITH_SEID,
  AVDTP_ACCEPTOR_W2_ANSWER_SUSPEND_STREAM,
  AVDTP_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE,
  AVDTP_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE,
  AVDTP_ACCEPTOR_W2_REJECT_UNKNOWN_CMD,
  AVDTP_ACCEPTOR_STREAMING
}
 
enum  avdtp_connection_state_t {
  AVDTP_SIGNALING_CONNECTION_IDLE,
  AVDTP_SIGNALING_W4_SDP_QUERY_COMPLETE,
  AVDTP_SIGNALING_CONNECTION_W4_L2CAP_CONNECTED,
  AVDTP_SIGNALING_CONNECTION_OPENED,
  AVDTP_SIGNALING_CONNECTION_W4_L2CAP_DISCONNECTED
}
 
enum  avdtp_content_protection_type_t {
  AVDTP_CONTENT_PROTECTION_DTCP = 0x0001,
  AVDTP_CONTENT_PROTECTION_SCMS_T = 0x0002
}
 
enum  avdtp_initiator_connection_state_t {
  AVDTP_SIGNALING_CONNECTION_INITIATOR_IDLE,
  AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_DISCOVER_SEPS,
  AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_CAPABILITIES,
  AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_ALL_CAPABILITIES,
  AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_CONFIGURATION,
  AVDTP_SIGNALING_CONNECTION_INITIATOR_W4_ANSWER
}
 
enum  avdtp_initiator_stream_endpoint_state_t {
  AVDTP_INITIATOR_STREAM_CONFIG_IDLE,
  AVDTP_INITIATOR_W2_SET_CONFIGURATION,
  AVDTP_INITIATOR_W2_SUSPEND_STREAM_WITH_SEID,
  AVDTP_INITIATOR_W2_RECONFIGURE_STREAM_WITH_SEID,
  AVDTP_INITIATOR_W2_OPEN_STREAM,
  AVDTP_INITIATOR_W2_STREAMING_ABORT,
  AVDTP_INITIATOR_FRAGMENTATED_COMMAND,
  AVDTP_INITIATOR_W4_ANSWER
}
 
enum  avdtp_media_codec_type_t {
  AVDTP_CODEC_SBC = 0x00,
  AVDTP_CODEC_MPEG_1_2_AUDIO = 0x01,
  AVDTP_CODEC_MPEG_2_4_AAC = 0x02,
  AVDTP_CODEC_ATRAC_FAMILY = 0x04,
  AVDTP_CODEC_NON_A2DP = 0xFF
}
 
enum  avdtp_media_type_t {
  AVDTP_AUDIO = 0,
  AVDTP_VIDEO,
  AVDTP_MULTIMEDIA
}
 
enum  avdtp_message_type_t {
  AVDTP_CMD_MSG = 0,
  AVDTP_GENERAL_REJECT_MSG,
  AVDTP_RESPONSE_ACCEPT_MSG,
  AVDTP_RESPONSE_REJECT_MSG
}
 
enum  avdtp_packet_type_t {
  AVDTP_SINGLE_PACKET = 0,
  AVDTP_START_PACKET,
  AVDTP_CONTINUE_PACKET,
  AVDTP_END_PACKET
}
 
enum  avdtp_sbc_allocation_method_t {
  AVDTP_SBC_ALLOCATION_METHOD_LOUDNESS = 1,
  AVDTP_SBC_ALLOCATION_METHOD_SNR = 2
}
 
enum  avdtp_sbc_block_length_t {
  AVDTP_SBC_BLOCK_LENGTH_16 = 1,
  AVDTP_SBC_BLOCK_LENGTH_12 = 2,
  AVDTP_SBC_BLOCK_LENGTH_8 = 4,
  AVDTP_SBC_BLOCK_LENGTH_4 = 8
}
 
enum  avdtp_sbc_channel_mode_t {
  AVDTP_SBC_JOINT_STEREO = 1,
  AVDTP_SBC_STEREO = 2,
  AVDTP_SBC_DUAL_CHANNEL = 4,
  AVDTP_SBC_MONO = 8
}
 
enum  avdtp_sbc_sampling_frequency_t {
  AVDTP_SBC_48000 = 1,
  AVDTP_SBC_44100 = 2,
  AVDTP_SBC_32000 = 4,
  AVDTP_SBC_16000 = 8
}
 
enum  avdtp_sbc_subbands_t {
  AVDTP_SBC_SUBBANDS_8 = 1,
  AVDTP_SBC_SUBBANDS_4 = 2
}
 
enum  avdtp_sep_type_t {
  AVDTP_SOURCE = 0,
  AVDTP_SINK
}
 
enum  avdtp_service_category_t {
  AVDTP_SERVICE_CATEGORY_INVALID_0 = 0x00,
  AVDTP_MEDIA_TRANSPORT = 0X01,
  AVDTP_REPORTING,
  AVDTP_RECOVERY,
  AVDTP_CONTENT_PROTECTION,
  AVDTP_HEADER_COMPRESSION,
  AVDTP_MULTIPLEXING,
  AVDTP_MEDIA_CODEC,
  AVDTP_DELAY_REPORTING,
  AVDTP_SERVICE_CATEGORY_INVALID_FF = 0xFF
}
 
enum  avdtp_service_mode_t {
  AVDTP_BASIC_SERVICE_MODE,
  AVDTP_MULTIPLEXING_SERVICE_MODE
}
 
enum  avdtp_signal_identifier_t {
  AVDTP_SI_NONE = 0x00,
  AVDTP_SI_DISCOVER = 0x01,
  AVDTP_SI_GET_CAPABILITIES,
  AVDTP_SI_SET_CONFIGURATION,
  AVDTP_SI_GET_CONFIGURATION,
  AVDTP_SI_RECONFIGURE,
  AVDTP_SI_OPEN,
  AVDTP_SI_START,
  AVDTP_SI_CLOSE,
  AVDTP_SI_SUSPEND,
  AVDTP_SI_ABORT,
  AVDTP_SI_SECURITY_CONTROL,
  AVDTP_SI_GET_ALL_CAPABILITIES,
  AVDTP_SI_DELAYREPORT
}
 
enum  avdtp_stream_endpoint_state_t {
  AVDTP_STREAM_ENDPOINT_IDLE,
  AVDTP_STREAM_ENDPOINT_CONFIGURATION_SUBSTATEMACHINE,
  AVDTP_STREAM_ENDPOINT_CONFIGURED,
  AVDTP_STREAM_ENDPOINT_W2_REQUEST_OPEN_STREAM,
  AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_CONNECTED,
  AVDTP_STREAM_ENDPOINT_OPENED,
  AVDTP_STREAM_ENDPOINT_STREAMING,
  AVDTP_STREAM_ENDPOINT_CLOSING,
  AVDTP_STREAM_ENDPOINT_ABORTING,
  AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_DISCONNECTED
}
 

Functions

uint8_t avdtp_abort_stream (uint16_t avdtp_cid, uint8_t local_seid, avdtp_context_t *context)
 
uint8_t avdtp_choose_sbc_allocation_method (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_allocation_method_bitmap)
 
uint8_t avdtp_choose_sbc_block_length (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_block_length_bitmap)
 
uint8_t avdtp_choose_sbc_channel_mode (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_channel_mode_bitmap)
 
uint8_t avdtp_choose_sbc_max_bitpool_value (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_max_bitpool_value)
 
uint8_t avdtp_choose_sbc_min_bitpool_value (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_min_bitpool_value)
 
uint8_t avdtp_choose_sbc_sampling_frequency (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_sampling_frequency_bitmap)
 
uint8_t avdtp_choose_sbc_subbands (avdtp_stream_endpoint_t *stream_endpoint, uint8_t remote_subbands_bitmap)
 
uint8_t avdtp_connect (bd_addr_t remote, avdtp_sep_type_t query_role, avdtp_context_t *context, uint16_t *avdtp_cid)
 
avdtp_connection_tavdtp_create_connection (bd_addr_t remote_addr, avdtp_context_t *context)
 
avdtp_stream_endpoint_tavdtp_create_stream_endpoint (avdtp_sep_type_t sep_type, avdtp_media_type_t media_type, avdtp_context_t *context)
 
uint8_t avdtp_disconnect (uint16_t avdtp_cid, avdtp_context_t *context)
 
void avdtp_discover_stream_endpoints (uint16_t avdtp_cid, avdtp_context_t *context)
 
void avdtp_get_all_capabilities (uint16_t avdtp_cid, uint8_t remote_seid, avdtp_context_t *context)
 
void avdtp_get_capabilities (uint16_t avdtp_cid, uint8_t remote_seid, avdtp_context_t *context)
 
void avdtp_get_configuration (uint16_t avdtp_cid, uint8_t remote_seid, avdtp_context_t *context)
 
void avdtp_handle_can_send_now (avdtp_connection_t *connection, uint16_t l2cap_cid, avdtp_context_t *context)
 
void avdtp_initialize_sbc_configuration_storage (avdtp_stream_endpoint_t *stream_endpoint, uint8_t *config_storage, uint16_t storage_size, uint8_t *packet, uint16_t packet_size)
 
uint8_t avdtp_open_stream (uint16_t avdtp_cid, uint8_t local_seid, uint8_t remote_seid, avdtp_context_t *context)
 
void avdtp_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, avdtp_context_t *context)
 
void avdtp_reconfigure (uint16_t avdtp_cid, uint8_t local_seid, uint8_t remote_seid, uint16_t configured_services_bitmap, avdtp_capabilities_t configuration, avdtp_context_t *context)
 
void avdtp_register_content_protection_category (avdtp_stream_endpoint_t *stream_endpoint, uint16_t cp_type, const uint8_t *cp_type_value, uint8_t cp_type_value_len)
 
void avdtp_register_delay_reporting_category (avdtp_stream_endpoint_t *stream_endpoint)
 
void avdtp_register_header_compression_category (avdtp_stream_endpoint_t *stream_endpoint, uint8_t back_ch, uint8_t media, uint8_t recovery)
 
void avdtp_register_media_codec_category (avdtp_stream_endpoint_t *stream_endpoint, avdtp_media_type_t media_type, avdtp_media_codec_type_t media_codec_type, uint8_t *media_codec_info, uint16_t media_codec_info_len)
 
void avdtp_register_media_transport_category (avdtp_stream_endpoint_t *stream_endpoint)
 
void avdtp_register_multiplexing_category (avdtp_stream_endpoint_t *stream_endpoint, uint8_t fragmentation)
 
void avdtp_register_recovery_category (avdtp_stream_endpoint_t *stream_endpoint, uint8_t maximum_recovery_window_size, uint8_t maximum_number_media_packets)
 
void avdtp_register_reporting_category (avdtp_stream_endpoint_t *stream_endpoint)
 
avdtp_sep_tavdtp_remote_sep (uint16_t avdtp_cid, uint8_t index, avdtp_context_t *context)
 
uint8_t avdtp_remote_seps_num (uint16_t avdtp_cid, avdtp_context_t *context)
 
void avdtp_set_configuration (uint16_t avdtp_cid, uint8_t local_seid, uint8_t remote_seid, uint16_t configured_services_bitmap, avdtp_capabilities_t configuration, avdtp_context_t *context)
 
uint8_t avdtp_start_stream (uint16_t avdtp_cid, uint8_t local_seid, avdtp_context_t *context)
 
uint8_t avdtp_stop_stream (uint16_t avdtp_cid, uint8_t local_seid, avdtp_context_t *context)
 
uint8_t avdtp_stream_endpoint_seid (avdtp_stream_endpoint_t *stream_endpoint)
 
uint8_t avdtp_suspend_stream (uint16_t avdtp_cid, uint8_t local_seid, avdtp_context_t *context)
 

#define AVDTP_SINK_SF_Amplifier   0x0008
#define AVDTP_SINK_SF_Headphone   0x0001
#define AVDTP_SINK_SF_Recorder   0x0004
#define AVDTP_SINK_SF_Speaker   0x0002
#define AVDTP_SOURCE_SF_Microphone   0x0002
#define AVDTP_SOURCE_SF_Mixer   0x0008
#define AVDTP_SOURCE_SF_Player   0x0001
#define AVDTP_SOURCE_SF_Tuner   0x0004
#define BAD_ACP_SEID   0x12
#define BAD_CP_FORMAT   0x27
#define BAD_HEADER_FORMAT   0x01
#define BAD_LENGTH   0x11
#define BAD_MEDIA_TRANSPORT_FORMAT   0x23
#define BAD_MULTIPLEXING_FORMAT   0x28
#define BAD_PAYLOAD_FORMAT   0x18
#define BAD_RECOVERY_FORMAT   0x25
#define BAD_RECOVERY_TYPE   0x22
#define BAD_ROHC_FORMAT   0x26
#define BAD_SERV_CATEGORY   0x17
#define BAD_STATE   0x31
#define INVALID_CAPABILITIES   0x1A
#define MAX_CSRC_NUM   15
#define MAX_NUM_SEPS   10
#define NOT_SUPPORTED_COMMAND   0x19
#define SEP_IN_USE   0x13
#define SEP_NOT_IN_USE   0x14
#define UNSUPPORTED_CONFIGURATION   0x29

Enumerator
A2DP_IDLE 
A2DP_CONNECTED 
A2DP_W2_DISCOVER_SEPS 
A2DP_W2_GET_CAPABILITIES 
A2DP_W2_GET_ALL_CAPABILITIES 
A2DP_W2_SET_CONFIGURATION 
A2DP_W4_GET_CONFIGURATION 
A2DP_W4_SET_CONFIGURATION 
A2DP_W2_SUSPEND_STREAM_WITH_SEID 
A2DP_W2_RECONFIGURE_WITH_SEID 
A2DP_W2_OPEN_STREAM_WITH_SEID 
A2DP_W4_OPEN_STREAM_WITH_SEID 
A2DP_W2_START_STREAM_WITH_SEID 
A2DP_W2_ABORT_STREAM_WITH_SEID 
A2DP_W2_STOP_STREAM_WITH_SEID 
A2DP_W2_GET_CONFIGURATION 
A2DP_STREAMING_OPENED 
Enumerator
AVDTP_SIGNALING_CONNECTION_ACCEPTOR_IDLE 
AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_ANSWER_DISCOVER_SEPS 
AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE 
AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE 
AVDTP_SIGNALING_CONNECTION_ACCEPTOR_W2_GENERAL_REJECT_WITH_ERROR_CODE 
Enumerator
AVDTP_ACCEPTOR_STREAM_CONFIG_IDLE 
AVDTP_ACCEPTOR_W2_ANSWER_GET_CAPABILITIES 
AVDTP_ACCEPTOR_W2_ANSWER_GET_ALL_CAPABILITIES 
AVDTP_ACCEPTOR_W2_ANSWER_SET_CONFIGURATION 
AVDTP_ACCEPTOR_W2_ANSWER_RECONFIGURE 
AVDTP_ACCEPTOR_W2_ANSWER_GET_CONFIGURATION 
AVDTP_ACCEPTOR_W2_ANSWER_OPEN_STREAM 
AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM 
AVDTP_ACCEPTOR_W2_ANSWER_CLOSE_STREAM 
AVDTP_ACCEPTOR_W2_ANSWER_ABORT_STREAM 
AVDTP_ACCEPTOR_W2_SUSPEND_STREAM_WITH_SEID 
AVDTP_ACCEPTOR_W2_ANSWER_SUSPEND_STREAM 
AVDTP_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE 
AVDTP_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE 
AVDTP_ACCEPTOR_W2_REJECT_UNKNOWN_CMD 
AVDTP_ACCEPTOR_STREAMING 
Enumerator
AVDTP_SIGNALING_CONNECTION_IDLE 
AVDTP_SIGNALING_W4_SDP_QUERY_COMPLETE 
AVDTP_SIGNALING_CONNECTION_W4_L2CAP_CONNECTED 
AVDTP_SIGNALING_CONNECTION_OPENED 
AVDTP_SIGNALING_CONNECTION_W4_L2CAP_DISCONNECTED 
Enumerator
AVDTP_CONTENT_PROTECTION_DTCP 
AVDTP_CONTENT_PROTECTION_SCMS_T 
Enumerator
AVDTP_SIGNALING_CONNECTION_INITIATOR_IDLE 
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_DISCOVER_SEPS 
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_CAPABILITIES 
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_ALL_CAPABILITIES 
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_CONFIGURATION 
AVDTP_SIGNALING_CONNECTION_INITIATOR_W4_ANSWER 
Enumerator
AVDTP_INITIATOR_STREAM_CONFIG_IDLE 
AVDTP_INITIATOR_W2_SET_CONFIGURATION 
AVDTP_INITIATOR_W2_SUSPEND_STREAM_WITH_SEID 
AVDTP_INITIATOR_W2_RECONFIGURE_STREAM_WITH_SEID 
AVDTP_INITIATOR_W2_OPEN_STREAM 
AVDTP_INITIATOR_W2_STREAMING_ABORT 
AVDTP_INITIATOR_FRAGMENTATED_COMMAND 
AVDTP_INITIATOR_W4_ANSWER 
Enumerator
AVDTP_CODEC_SBC 
AVDTP_CODEC_MPEG_1_2_AUDIO 
AVDTP_CODEC_MPEG_2_4_AAC 
AVDTP_CODEC_ATRAC_FAMILY 
AVDTP_CODEC_NON_A2DP 
Enumerator
AVDTP_AUDIO 
AVDTP_VIDEO 
AVDTP_MULTIMEDIA 
Enumerator
AVDTP_CMD_MSG 
AVDTP_GENERAL_REJECT_MSG 
AVDTP_RESPONSE_ACCEPT_MSG 
AVDTP_RESPONSE_REJECT_MSG 
Enumerator
AVDTP_SINGLE_PACKET 
AVDTP_START_PACKET 
AVDTP_CONTINUE_PACKET 
AVDTP_END_PACKET 
Enumerator
AVDTP_SBC_ALLOCATION_METHOD_LOUDNESS 
AVDTP_SBC_ALLOCATION_METHOD_SNR 
Enumerator
AVDTP_SBC_BLOCK_LENGTH_16 
AVDTP_SBC_BLOCK_LENGTH_12 
AVDTP_SBC_BLOCK_LENGTH_8 
AVDTP_SBC_BLOCK_LENGTH_4 
Enumerator
AVDTP_SBC_JOINT_STEREO 
AVDTP_SBC_STEREO 
AVDTP_SBC_DUAL_CHANNEL 
AVDTP_SBC_MONO 
Enumerator
AVDTP_SBC_48000 
AVDTP_SBC_44100 
AVDTP_SBC_32000 
AVDTP_SBC_16000 
Enumerator
AVDTP_SBC_SUBBANDS_8 
AVDTP_SBC_SUBBANDS_4 
Enumerator
AVDTP_SOURCE 
AVDTP_SINK 
Enumerator
AVDTP_SERVICE_CATEGORY_INVALID_0 
AVDTP_MEDIA_TRANSPORT 
AVDTP_REPORTING 
AVDTP_RECOVERY 
AVDTP_CONTENT_PROTECTION 
AVDTP_HEADER_COMPRESSION 
AVDTP_MULTIPLEXING 
AVDTP_MEDIA_CODEC 
AVDTP_DELAY_REPORTING 
AVDTP_SERVICE_CATEGORY_INVALID_FF 
Enumerator
AVDTP_BASIC_SERVICE_MODE 
AVDTP_MULTIPLEXING_SERVICE_MODE 
Enumerator
AVDTP_SI_NONE 
AVDTP_SI_DISCOVER 
AVDTP_SI_GET_CAPABILITIES 
AVDTP_SI_SET_CONFIGURATION 
AVDTP_SI_GET_CONFIGURATION 
AVDTP_SI_RECONFIGURE 
AVDTP_SI_OPEN 
AVDTP_SI_START 
AVDTP_SI_CLOSE 
AVDTP_SI_SUSPEND 
AVDTP_SI_ABORT 
AVDTP_SI_SECURITY_CONTROL 
AVDTP_SI_GET_ALL_CAPABILITIES 
AVDTP_SI_DELAYREPORT 
Enumerator
AVDTP_STREAM_ENDPOINT_IDLE 
AVDTP_STREAM_ENDPOINT_CONFIGURATION_SUBSTATEMACHINE 
AVDTP_STREAM_ENDPOINT_CONFIGURED 
AVDTP_STREAM_ENDPOINT_W2_REQUEST_OPEN_STREAM 
AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_CONNECTED 
AVDTP_STREAM_ENDPOINT_OPENED 
AVDTP_STREAM_ENDPOINT_STREAMING 
AVDTP_STREAM_ENDPOINT_CLOSING 
AVDTP_STREAM_ENDPOINT_ABORTING 
AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_DISCONNECTED 

uint8_t avdtp_abort_stream ( uint16_t  avdtp_cid,
uint8_t  local_seid,
avdtp_context_t context 
)
uint8_t avdtp_choose_sbc_allocation_method ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_allocation_method_bitmap 
)
uint8_t avdtp_choose_sbc_block_length ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_block_length_bitmap 
)
uint8_t avdtp_choose_sbc_channel_mode ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_channel_mode_bitmap 
)
uint8_t avdtp_choose_sbc_max_bitpool_value ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_max_bitpool_value 
)
uint8_t avdtp_choose_sbc_min_bitpool_value ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_min_bitpool_value 
)
uint8_t avdtp_choose_sbc_sampling_frequency ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_sampling_frequency_bitmap 
)
uint8_t avdtp_choose_sbc_subbands ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  remote_subbands_bitmap 
)
uint8_t avdtp_connect ( bd_addr_t  remote,
avdtp_sep_type_t  query_role,
avdtp_context_t context,
uint16_t *  avdtp_cid 
)
avdtp_connection_t* avdtp_create_connection ( bd_addr_t  remote_addr,
avdtp_context_t context 
)
avdtp_stream_endpoint_t* avdtp_create_stream_endpoint ( avdtp_sep_type_t  sep_type,
avdtp_media_type_t  media_type,
avdtp_context_t context 
)
uint8_t avdtp_disconnect ( uint16_t  avdtp_cid,
avdtp_context_t context 
)
void avdtp_discover_stream_endpoints ( uint16_t  avdtp_cid,
avdtp_context_t context 
)
void avdtp_get_all_capabilities ( uint16_t  avdtp_cid,
uint8_t  remote_seid,
avdtp_context_t context 
)
void avdtp_get_capabilities ( uint16_t  avdtp_cid,
uint8_t  remote_seid,
avdtp_context_t context 
)
void avdtp_get_configuration ( uint16_t  avdtp_cid,
uint8_t  remote_seid,
avdtp_context_t context 
)
void avdtp_handle_can_send_now ( avdtp_connection_t connection,
uint16_t  l2cap_cid,
avdtp_context_t context 
)
void avdtp_initialize_sbc_configuration_storage ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t *  config_storage,
uint16_t  storage_size,
uint8_t *  packet,
uint16_t  packet_size 
)
uint8_t avdtp_open_stream ( uint16_t  avdtp_cid,
uint8_t  local_seid,
uint8_t  remote_seid,
avdtp_context_t context 
)
void avdtp_packet_handler ( uint8_t  packet_type,
uint16_t  channel,
uint8_t *  packet,
uint16_t  size,
avdtp_context_t context 
)
void avdtp_reconfigure ( uint16_t  avdtp_cid,
uint8_t  local_seid,
uint8_t  remote_seid,
uint16_t  configured_services_bitmap,
avdtp_capabilities_t  configuration,
avdtp_context_t context 
)
void avdtp_register_content_protection_category ( avdtp_stream_endpoint_t stream_endpoint,
uint16_t  cp_type,
const uint8_t *  cp_type_value,
uint8_t  cp_type_value_len 
)
void avdtp_register_delay_reporting_category ( avdtp_stream_endpoint_t stream_endpoint)
void avdtp_register_header_compression_category ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  back_ch,
uint8_t  media,
uint8_t  recovery 
)
void avdtp_register_media_codec_category ( avdtp_stream_endpoint_t stream_endpoint,
avdtp_media_type_t  media_type,
avdtp_media_codec_type_t  media_codec_type,
uint8_t *  media_codec_info,
uint16_t  media_codec_info_len 
)
void avdtp_register_media_transport_category ( avdtp_stream_endpoint_t stream_endpoint)
void avdtp_register_multiplexing_category ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  fragmentation 
)
void avdtp_register_recovery_category ( avdtp_stream_endpoint_t stream_endpoint,
uint8_t  maximum_recovery_window_size,
uint8_t  maximum_number_media_packets 
)
void avdtp_register_reporting_category ( avdtp_stream_endpoint_t stream_endpoint)
avdtp_sep_t* avdtp_remote_sep ( uint16_t  avdtp_cid,
uint8_t  index,
avdtp_context_t context 
)
uint8_t avdtp_remote_seps_num ( uint16_t  avdtp_cid,
avdtp_context_t context 
)
void avdtp_set_configuration ( uint16_t  avdtp_cid,
uint8_t  local_seid,
uint8_t  remote_seid,
uint16_t  configured_services_bitmap,
avdtp_capabilities_t  configuration,
avdtp_context_t context 
)
uint8_t avdtp_start_stream ( uint16_t  avdtp_cid,
uint8_t  local_seid,
avdtp_context_t context 
)
uint8_t avdtp_stop_stream ( uint16_t  avdtp_cid,
uint8_t  local_seid,
avdtp_context_t context 
)
uint8_t avdtp_stream_endpoint_seid ( avdtp_stream_endpoint_t stream_endpoint)
uint8_t avdtp_suspend_stream ( uint16_t  avdtp_cid,
uint8_t  local_seid,
avdtp_context_t context 
)