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

Functions

void wiced_bt_a2d_sbc_chk_fr_init (uint8_t *p_pkt)
 Function wiced_bt_a2d_sbc_chk_fr_init. More...
 
void wiced_bt_a2d_sbc_descramble (uint8_t *p_pkt, uint16_t len)
 Function wiced_bt_a2d_sbc_descramble. More...
 
wiced_bt_a2d_status_t wiced_bt_a2d_bld_sbc_info (uint8_t media_type, wiced_bt_a2d_sbc_cie_t *p_ie, uint8_t *p_result)
 Function wiced_bt_a2d_bld_sbc_info. More...
 
wiced_bt_a2d_status_t wiced_bt_a2d_pars_sbc_info (wiced_bt_a2d_sbc_cie_t *p_ie, uint8_t *p_info, wiced_bool_t for_caps)
 Function wiced_bt_a2d_pars_sbc_info. More...
 
void wiced_bt_a2d_bld_sbc_mpl_hdr (uint8_t *p_dst, wiced_bool_t frag, wiced_bool_t start, wiced_bool_t last, uint8_t num)
 Function wiced_bt_a2d_bld_sbc_mpl_hdr. More...
 
void wiced_bt_a2d_pars_sbc_mpl_hdr (uint8_t *p_src, wiced_bool_t *p_frag, wiced_bool_t *p_start, wiced_bool_t *p_last, uint8_t *p_num)
 Function wiced_bt_a2d_pars_sbc_mpl_hdr. More...
 

Detailed Description

Function Documentation

wiced_bt_a2d_status_t wiced_bt_a2d_bld_sbc_info ( uint8_t  media_type,
wiced_bt_a2d_sbc_cie_t p_ie,
uint8_t *  p_result 
)

Function wiced_bt_a2d_bld_sbc_info.

Build SBC Media Codec Capabilities byte sequence (beginning from the LOSC octet)

Parameters
[in]media_type: Media type, audio or multimedia
[in]p_ie: Pointer to the SBC codec information element
[out]p_result: Pointer to the built codec info byte stream
Returns
Status code (see A2DP status codes) A2D_SUCCESS if successful, otherwise error.
void wiced_bt_a2d_bld_sbc_mpl_hdr ( uint8_t *  p_dst,
wiced_bool_t  frag,
wiced_bool_t  start,
wiced_bool_t  last,
uint8_t  num 
)

Function wiced_bt_a2d_bld_sbc_mpl_hdr.

Build SBC Media Payload header

Parameters
[in]frag: 1, if fragmented. 0, otherwise.
[in]start: 1, if the starting packet of a fragmented frame.
[in]last: 1, if the last packet of a fragmented frame.
[in]num: If frag is 1, this is the number of remaining fragments (including this fragment) of this frame. If frag is 0, this is the number of frames in this packet.
[out]p_dst: Pointer to the built media payload header byte
Returns
None
wiced_bt_a2d_status_t wiced_bt_a2d_pars_sbc_info ( wiced_bt_a2d_sbc_cie_t p_ie,
uint8_t *  p_info,
wiced_bool_t  for_caps 
)

Function wiced_bt_a2d_pars_sbc_info.

Parse SBC Media Codec Capabilities byte sequence (beginning from the LOSC octet)

Parameters
[in]p_info: Pointer to the byte stream to parse
[in]for_caps: True if the byte stream is for get capabilities response
[out]p_ie: Pointer to the parsed codec info byte sequence
Returns
Status code (see A2DP status codes) A2D_SUCCESS if successful, otherwise error.
void wiced_bt_a2d_pars_sbc_mpl_hdr ( uint8_t *  p_src,
wiced_bool_t *  p_frag,
wiced_bool_t *  p_start,
wiced_bool_t *  p_last,
uint8_t *  p_num 
)

Function wiced_bt_a2d_pars_sbc_mpl_hdr.

Parse SBC Media Payload header

Parameters
[in]p_src: Pointer to the byte stream to parse
[out]p_frag: 1, if fragmented. 0, otherwise.
[out]p_start: 1, if the starting packet of a fragmented frame.
[out]p_last: 1, if the last packet of a fragmented frame.
[out]p_num: If frag is 1, this is the number of remaining fragments (including this fragment) of this frame. If frag is 0, this is the number of frames in this packet.
Returns
None
void wiced_bt_a2d_sbc_chk_fr_init ( uint8_t *  p_pkt)

Function wiced_bt_a2d_sbc_chk_fr_init.

Check if control block descrambling needs to be initiated

Parameters
[in]p_pkt: Pointer to the incoming data
Returns
None
void wiced_bt_a2d_sbc_descramble ( uint8_t *  p_pkt,
uint16_t  len 
)

Function wiced_bt_a2d_sbc_descramble.

Descramble packet

Parameters
[in]p_pkt: Pointer to the incoming data
[in]len: Size of the data
Returns
None