Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
a2dp-codec.h File Reference

Advance Audio Distribution Profile - SBC Codec header. More...

Go to the source code of this file.

Data Structures

struct  bt_a2dp_codec_sbc_params
 SBC Codec. More...
 

Macros

#define A2DP_SBC_SAMP_FREQ_16000   BIT(7)
 
#define A2DP_SBC_SAMP_FREQ_32000   BIT(6)
 
#define A2DP_SBC_SAMP_FREQ_44100   BIT(5)
 
#define A2DP_SBC_SAMP_FREQ_48000   BIT(4)
 
#define A2DP_SBC_CH_MODE_MONO   BIT(3)
 
#define A2DP_SBC_CH_MODE_DUAL   BIT(2)
 
#define A2DP_SBC_CH_MODE_STREO   BIT(1)
 
#define A2DP_SBC_CH_MODE_JOINT   BIT(0)
 
#define A2DP_SBC_BLK_LEN_4   BIT(7)
 
#define A2DP_SBC_BLK_LEN_8   BIT(6)
 
#define A2DP_SBC_BLK_LEN_12   BIT(5)
 
#define A2DP_SBC_BLK_LEN_16   BIT(4)
 
#define A2DP_SBC_SUBBAND_4   BIT(3)
 
#define A2DP_SBC_SUBBAND_8   BIT(2)
 
#define A2DP_SBC_ALLOC_MTHD_SNR   BIT(1)
 
#define A2DP_SBC_ALLOC_MTHD_LOUDNESS   BIT(0)
 
#define BT_A2DP_SBC_SAMP_FREQ(preset)   ((preset->config[0] >> 4) & 0x0f)
 
#define BT_A2DP_SBC_CHAN_MODE(preset)   ((preset->config[0]) & 0x0f)
 
#define BT_A2DP_SBC_BLK_LEN(preset)   ((preset->config[1] >> 4) & 0x0f)
 
#define BT_A2DP_SBC_SUB_BAND(preset)   ((preset->config[1] >> 2) & 0x03)
 
#define BT_A2DP_SBC_ALLOC_MTHD(preset)   ((preset->config[1]) & 0x03)
 

Detailed Description

Advance Audio Distribution Profile - SBC Codec header.

Macro Definition Documentation

◆ A2DP_SBC_ALLOC_MTHD_LOUDNESS

#define A2DP_SBC_ALLOC_MTHD_LOUDNESS   BIT(0)

◆ A2DP_SBC_ALLOC_MTHD_SNR

#define A2DP_SBC_ALLOC_MTHD_SNR   BIT(1)

◆ A2DP_SBC_BLK_LEN_12

#define A2DP_SBC_BLK_LEN_12   BIT(5)

◆ A2DP_SBC_BLK_LEN_16

#define A2DP_SBC_BLK_LEN_16   BIT(4)

◆ A2DP_SBC_BLK_LEN_4

#define A2DP_SBC_BLK_LEN_4   BIT(7)

◆ A2DP_SBC_BLK_LEN_8

#define A2DP_SBC_BLK_LEN_8   BIT(6)

◆ A2DP_SBC_CH_MODE_DUAL

#define A2DP_SBC_CH_MODE_DUAL   BIT(2)

◆ A2DP_SBC_CH_MODE_JOINT

#define A2DP_SBC_CH_MODE_JOINT   BIT(0)

◆ A2DP_SBC_CH_MODE_MONO

#define A2DP_SBC_CH_MODE_MONO   BIT(3)

◆ A2DP_SBC_CH_MODE_STREO

#define A2DP_SBC_CH_MODE_STREO   BIT(1)

◆ A2DP_SBC_SAMP_FREQ_16000

#define A2DP_SBC_SAMP_FREQ_16000   BIT(7)

◆ A2DP_SBC_SAMP_FREQ_32000

#define A2DP_SBC_SAMP_FREQ_32000   BIT(6)

◆ A2DP_SBC_SAMP_FREQ_44100

#define A2DP_SBC_SAMP_FREQ_44100   BIT(5)

◆ A2DP_SBC_SAMP_FREQ_48000

#define A2DP_SBC_SAMP_FREQ_48000   BIT(4)

◆ A2DP_SBC_SUBBAND_4

#define A2DP_SBC_SUBBAND_4   BIT(3)

◆ A2DP_SBC_SUBBAND_8

#define A2DP_SBC_SUBBAND_8   BIT(2)

◆ BT_A2DP_SBC_ALLOC_MTHD

#define BT_A2DP_SBC_ALLOC_MTHD (   preset)    ((preset->config[1]) & 0x03)

◆ BT_A2DP_SBC_BLK_LEN

#define BT_A2DP_SBC_BLK_LEN (   preset)    ((preset->config[1] >> 4) & 0x0f)

◆ BT_A2DP_SBC_CHAN_MODE

#define BT_A2DP_SBC_CHAN_MODE (   preset)    ((preset->config[0]) & 0x0f)

◆ BT_A2DP_SBC_SAMP_FREQ

#define BT_A2DP_SBC_SAMP_FREQ (   preset)    ((preset->config[0] >> 4) & 0x0f)

◆ BT_A2DP_SBC_SUB_BAND

#define BT_A2DP_SBC_SUB_BAND (   preset)    ((preset->config[1] >> 2) & 0x03)