Infineon Logo AIROC BTSDK v4.2 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

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
 This data type is used in tA2D_FIND_CBACK to report the result of the SDP discovery process. More...
 

Modules

 A2DP SBC Support
 This section describes A2DP Low complexity subband codec (SBC) API.
 
 MPEG-1,2 Support
 This section describes A2DP MPEG-1,2 Audio codec API.
 
 MPEG-2,4 AAC Support
 This section describes A2DP MPEG-2,4 AAC Audio codec API.
 

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_bits_set (uint8_t mask)
 Check the number of bits set in a given mask (used to parse stream configuration masks) More...
 
wiced_bt_a2d_status_t wiced_bt_a2d_find_service (uint16_t service_uuid, wiced_bt_device_address_t bd_addr, wiced_bt_a2d_sdp_db_params_t *p_db, wiced_bt_a2d_find_cback *p_cback)
 Performs Service Discovery and fetches SRC/SINK SDP Record Info. More...
 

(Source) Profile supported features.

#define A2D_SUPF_PLAYER   0x0001
 Player.
 
#define A2D_SUPF_MIC   0x0002
 MIC.
 
#define A2D_SUPF_TUNER   0x0004
 Tuner.
 
#define A2D_SUPF_MIXER   0x0008
 Mixer.
 

(Sink) Profile supported features.

#define A2D_SUPF_HEADPHONE   0x0001
 Headphone.
 
#define A2D_SUPF_SPEAKER   0x0002
 Speaker.
 
#define A2D_SUPF_RECORDER   0x0004
 Recorder.
 
#define A2D_SUPF_AMP   0x0008
 Amplifier.
 

AV Media Types.

#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
 

AV Media Codec Type (Audio Codec ID).

#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.
 

A2DP status codes.

typedef uint8_t wiced_bt_a2d_status_t
 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...
 

A2D set bits.

Note
Return values from wiced_bt_a2d_bits_set()
#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
 

Detailed Description

Macro Definition Documentation

#define A2D_BAD_CP_FORMAT   0xE1

The format of Content Protection Service Capability/Content Protection Scheme Dependent Data is not correct.

#define A2D_BAD_CP_TYPE   0xE0

The requested CP Type is not supported.

Typedef Documentation

typedef void( wiced_bt_a2d_find_cback)(wiced_bool_t found, wiced_bt_a2d_service_t *p_service)

A2D Find Service Discovery callback.

Callback for A2D Find Service Discovery Records Registered using wiced_bt_a2d_find_service() The callback function will be executed when service discovery is complete.

Parameters
found: Record found status
p_service: Contains result of SDP discovery process
Returns
Status of event handling
Note
This is the callback to notify the result of the SDP discovery process

Function Documentation

uint8_t wiced_bt_a2d_bits_set ( uint8_t  mask)

Check the number of bits set in a given mask (used to parse stream configuration masks)

Parameters
[in]mask: mask to check
Returns
A2D_SET_BIT
wiced_bt_a2d_status_t wiced_bt_a2d_find_service ( uint16_t  service_uuid,
wiced_bt_device_address_t  bd_addr,
wiced_bt_a2d_sdp_db_params_t p_db,
wiced_bt_a2d_find_cback p_cback 
)

Performs Service Discovery and fetches SRC/SINK SDP Record Info.

Information is returned for the first service record found on the server that matches the service UUID.There can only be one outstanding call to wiced_bt_a2d_find_service() at a time; the application must wait for the callback before it makes another call to the function.

Parameters
[in]service_uuid: Indicates SRC or SNK.
[in]bd_addr: BD address of the peer device.
[in]p_db: Pointer to the information to initialize the discovery database.
[in]p_cback: Pointer to the wiced_bt_a2d_find_service() callback function.
Returns
wiced_bt_a2d_status_t