Infineon Logo AIROC BTSDK v4.0 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_a2d.h File Reference

Bluetooth A2DP Application Programming Interface. More...

Data Structures

struct  wiced_bt_a2d_sdp_db_params_t
 < SDP record information from the server to initialize discovery database More...
 
struct  wiced_bt_a2d_service_t
 

Macros

#define A2D_SUPF_PLAYER   0x0001
 
#define A2D_SUPF_MIC   0x0002
 
#define A2D_SUPF_TUNER   0x0004
 
#define A2D_SUPF_MIXER   0x0008
 
#define A2D_SUPF_HEADPHONE   0x0001
 
#define A2D_SUPF_SPEAKER   0x0002
 
#define A2D_SUPF_RECORDER   0x0004
 
#define A2D_SUPF_AMP   0x0008
 
#define A2D_MEDIA_TYPE_AUDIO   0x00 /* audio media type + RFA */
 
#define A2D_MEDIA_TYPE_VIDEO   0x10 /* video media type + RFA */
 
#define A2D_MEDIA_TYPE_MULTI   0x20 /* multimedia media type + RFA */
 
#define A2D_MEDIA_CT_SBC   0x00 /* SBC media codec type */
 
#define A2D_MEDIA_CT_M12   0x01 /* MPEG-1, 2 Audio media codec type */
 
#define A2D_MEDIA_CT_M24   0x02 /* MPEG-2, 4 AAC media codec type */
 
#define A2D_MEDIA_CT_ATRAC   0x04 /* ATRAC family media codec type */
 
#define A2D_MEDIA_CT_VEND   0xFF /* Vendor specific */
 
#define A2D_MEDIA_CT_APTX   A2D_MEDIA_CT_VEND /* APTX media codec type */
 
#define A2D_SET_ONE_BIT   1 /* one and only one bit is set */
 
#define A2D_SET_ZERO_BIT   0 /* all bits clear */
 
#define A2D_SET_MULTL_BIT   2 /* multiple bits are set */
 

Typedefs

typedef void( wiced_bt_a2d_find_cback )(wiced_bool_t found, wiced_bt_a2d_service_t *p_service)
 A2D Find Service Discovery callback. More...
 

Functions

uint8_t wiced_bt_a2d_set_trace_level (uint8_t new_level)
 
uint8_t wiced_bt_a2d_bits_set (uint8_t mask)
 Function wiced_bt_a2d_bits_set. More...
 
wiced_bt_a2d_status_t wiced_bt_a2d_find_service (uint16_t service_uuid, BD_ADDR bd_addr, wiced_bt_a2d_sdp_db_params_t *p_db, wiced_bt_a2d_find_cback *p_cback)
 Function wiced_bt_a2d_find_service. More...
 

A2DP status codes.

#define A2D_SUCCESS   0
 Success.
 
#define A2D_FAIL   0x0A
 Failed.
 
#define A2D_BUSY   0x0B
 wiced_bt_a2d_find_service is already in progress
 
#define A2D_INVALID_PARAMS   0x0C
 bad parameters
 
#define A2D_WRONG_CODEC   0x0D
 wrong codec info
 
#define A2D_BAD_CODEC_TYPE   0xC1
 Media Codec Type is not valid.
 
#define A2D_NS_CODEC_TYPE   0xC2
 Media Codec Type is not supported.
 
#define A2D_BAD_SAMP_FREQ   0xC3
 Sampling Frequency is not valid or multiple values have been selected.
 
#define A2D_NS_SAMP_FREQ   0xC4
 Sampling Frequency is not supported.
 
#define A2D_BAD_CH_MODE   0xC5
 Channel Mode is not valid or multiple values have been selected.
 
#define A2D_NS_CH_MODE   0xC6
 Channel Mode is not supported.
 
#define A2D_BAD_SUBBANDS   0xC7
 None or multiple values have been selected for Number of Subbands.
 
#define A2D_NS_SUBBANDS   0xC8
 Number of Subbands is not supported.
 
#define A2D_BAD_ALLOC_MTHD   0xC9
 None or multiple values have been selected for Allocation Method.
 
#define A2D_NS_ALLOC_MTHD   0xCA
 Allocation Method is not supported.
 
#define A2D_BAD_MIN_BITPOOL   0xCB
 Minimum Bitpool Value is not valid.
 
#define A2D_NS_MIN_BITPOOL   0xCC
 Minimum Bitpool Value is not supported.
 
#define A2D_BAD_MAX_BITPOOL   0xCD
 Maximum Bitpool Value is not valid.
 
#define A2D_NS_MAX_BITPOOL   0xCE
 Maximum Bitpool Value is not supported.
 
#define A2D_BAD_LAYER   0xCF
 None or multiple values have been selected for Layer.
 
#define A2D_NS_LAYER   0xD0
 Layer is not supported.
 
#define A2D_NS_CRC   0xD1
 CRC is not supported.
 
#define A2D_NS_MPF   0xD2
 MPF-2 is not supported.
 
#define A2D_NS_VBR   0xD3
 VBR is not supported.
 
#define A2D_BAD_BIT_RATE   0xD4
 None or multiple values have been selected for Bit Rate.
 
#define A2D_NS_BIT_RATE   0xD5
 Bit Rate is not supported.
 
#define A2D_BAD_OBJ_TYPE   0xD6
 Either 1) Object type is not valid (b3-b0) or 2) None or multiple values have been selected for Object Type.
 
#define A2D_NS_OBJ_TYPE   0xD7
 Object type is not supported.
 
#define A2D_BAD_CHANNEL   0xD8
 None or multiple values have been selected for Channels.
 
#define A2D_NS_CHANNEL   0xD9
 Channels is not supported.
 
#define A2D_BAD_BLOCK_LEN   0xDD
 None or multiple values have been selected for Block Length.
 
#define A2D_BAD_CP_TYPE   0xE0
 The requested CP Type is not supported. More...
 
#define A2D_BAD_CP_FORMAT   0xE1
 The format of Content Protection Service Capability/Content Protection Scheme Dependent Data is not correct. More...
 
#define A2D_SUCCESS_ONLY   0xF1 /** < CY Specific - Set Status to Success but not to set to route locally. */
 
typedef uint8_t wiced_bt_a2d_status_t
 

Detailed Description

Bluetooth A2DP Application Programming Interface.