20#ifndef ZEPHYR_INCLUDE_BLUETOOTH_A2DP_CODEC_H_
21#define ZEPHYR_INCLUDE_BLUETOOTH_A2DP_CODEC_H_
33#define A2DP_SBC_SAMP_FREQ_16000 BIT(7)
34#define A2DP_SBC_SAMP_FREQ_32000 BIT(6)
35#define A2DP_SBC_SAMP_FREQ_44100 BIT(5)
36#define A2DP_SBC_SAMP_FREQ_48000 BIT(4)
43#define A2DP_SBC_CH_MODE_MONO BIT(3)
44#define A2DP_SBC_CH_MODE_DUAL BIT(2)
45#define A2DP_SBC_CH_MODE_STREO BIT(1)
46#define A2DP_SBC_CH_MODE_JOINT BIT(0)
53#define A2DP_SBC_BLK_LEN_4 BIT(7)
54#define A2DP_SBC_BLK_LEN_8 BIT(6)
55#define A2DP_SBC_BLK_LEN_12 BIT(5)
56#define A2DP_SBC_BLK_LEN_16 BIT(4)
63#define A2DP_SBC_SUBBAND_4 BIT(3)
64#define A2DP_SBC_SUBBAND_8 BIT(2)
71#define A2DP_SBC_ALLOC_MTHD_SNR BIT(1)
72#define A2DP_SBC_ALLOC_MTHD_LOUDNESS BIT(0)
79#define BT_A2DP_SBC_SAMP_FREQ(preset) ((preset->config[0] >> 4) & 0x0f)
84#define BT_A2DP_SBC_CHAN_MODE(preset) ((preset->config[0]) & 0x0f)
89#define BT_A2DP_SBC_BLK_LEN(preset) ((preset->config[1] >> 4) & 0x0f)
94#define BT_A2DP_SBC_SUB_BAND(preset) ((preset->config[1] >> 2) & 0x03)
99#define BT_A2DP_SBC_ALLOC_MTHD(preset) ((preset->config[1]) & 0x03)
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
SBC Codec.
Definition: a2dp-codec.h:102
uint8_t min_bitpool
Minimum Bitpool Value.
Definition: a2dp-codec.h:106
uint8_t max_bitpool
Maximum Bitpool Value.
Definition: a2dp-codec.h:108
uint8_t config[2]
First two octets of configuration.
Definition: a2dp-codec.h:104