AIROC™ BTSDK v4.2 - Documentation | ||||
MPEG-1, 2 Audio A2DP Application Programming Interface. More...
Data Structures | |
struct | wiced_bt_a2d_m12_cie_t |
data type for the MPEG-1, 2 Audio Codec Information Element More... | |
Macros | |
#define | A2D_M12_MPL_HDR_LEN 4 |
the length of the MPEG_1, 2 Audio Media Payload header. More... | |
#define | A2D_M12_INFO_LEN 6 |
the LOSC of MPEG_1, 2 Audio media codec capabilitiy | |
#define | A2D_M12_IE_CRC_MSK 0x10 |
b4: CRC | |
#define | A2D_M12_IE_MPF_MSK 0x40 |
b6: MPF | |
#define | A2D_M12_IE_VBR_MSK 0x80 |
b7: VBR | |
#define | A2D_BLD_M12_PML_HDR(p_dst, frag_offset) |
Build MPEG-1,2 Header. More... | |
#define | A2D_PARS_M12_PML_HDR(p_src, frag_offset) |
Parse MPEG-1,2 Header. More... | |
MPEG-1,2 Layer | |
#define | A2D_M12_IE_LAYER_MSK 0xE0 |
b7-b5 layer | |
#define | A2D_M12_IE_LAYER1 0x80 |
b7: layer1 (mp1) | |
#define | A2D_M12_IE_LAYER2 0x40 |
b6: layer2 (mp2) | |
#define | A2D_M12_IE_LAYER3 0x20 |
b5: layer3 (mp3) | |
MPEG-1,2 Channel Mode | |
#define | A2D_M12_IE_CH_MD_MSK 0x0F |
b3-b0 channel mode | |
#define | A2D_M12_IE_CH_MD_MONO 0x08 |
b3: mono | |
#define | A2D_M12_IE_CH_MD_DUAL 0x04 |
b2: dual | |
#define | A2D_M12_IE_CH_MD_STEREO 0x02 |
b1: stereo | |
#define | A2D_M12_IE_CH_MD_JOINT 0x01 |
b0: joint stereo | |
MPEG-1,2 Sampling Frequency | |
#define | A2D_M12_IE_SAMP_FREQ_MSK 0x3F |
b5-b0 sampling frequency | |
#define | A2D_M12_IE_SAMP_FREQ_16 0x20 |
b5:16 kHz | |
#define | A2D_M12_IE_SAMP_FREQ_22 0x10 |
b4:22.05kHz | |
#define | A2D_M12_IE_SAMP_FREQ_24 0x08 |
b3:24 kHz | |
#define | A2D_M12_IE_SAMP_FREQ_32 0x04 |
b2:32 kHz | |
#define | A2D_M12_IE_SAMP_FREQ_44 0x02 |
b1:44.1kHz | |
#define | A2D_M12_IE_SAMP_FREQ_48 0x01 |
b0:48 kHz | |
MPEG-1,2 Bitrate | |
#define | A2D_M12_IE_BITRATE_MSK 0x7FFF |
b6-b0 of octect 2, all of octect3 | |
#define | A2D_M12_IE_BITRATE_0 0x0001 |
0000 | |
#define | A2D_M12_IE_BITRATE_1 0x0002 |
0001 | |
#define | A2D_M12_IE_BITRATE_2 0x0004 |
0010 | |
#define | A2D_M12_IE_BITRATE_3 0x0008 |
0011 | |
#define | A2D_M12_IE_BITRATE_4 0x0010 |
0100 | |
#define | A2D_M12_IE_BITRATE_5 0x0020 |
0101 | |
#define | A2D_M12_IE_BITRATE_6 0x0040 |
0110 | |
#define | A2D_M12_IE_BITRATE_7 0x0080 |
0111 | |
#define | A2D_M12_IE_BITRATE_8 0x0100 |
1000 | |
#define | A2D_M12_IE_BITRATE_9 0x0200 |
1001 | |
#define | A2D_M12_IE_BITRATE_10 0x0400 |
1010 | |
#define | A2D_M12_IE_BITRATE_11 0x0800 |
1011 | |
#define | A2D_M12_IE_BITRATE_12 0x1000 |
1100 | |
#define | A2D_M12_IE_BITRATE_13 0x2000 |
1101 | |
#define | A2D_M12_IE_BITRATE_14 0x4000 |
1110 | |
Functions | |
wiced_bt_a2d_status_t | wiced_bt_a2d_bld_m12info (uint8_t media_type, wiced_bt_a2d_m12_cie_t *p_ie, uint8_t *p_result) |
This function is called by an application to build the MPEG-1, 2 Audio Media Codec Capabilities byte sequence beginning from the LOSC octet. More... | |
wiced_bt_a2d_status_t | wiced_bt_a2d_pars_m12info (wiced_bt_a2d_m12_cie_t *p_ie, uint8_t *p_info, wiced_bool_t for_caps) |
This function is called by an application to parse the MPEG-1, 2 Audio Media Codec Capabilities byte sequence beginning from the LOSC octet. More... | |
MPEG-1, 2 Audio A2DP Application Programming Interface.