Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

LC3. More...

Data Structures

struct  bt_codec_lc3_frame_len
 

Macros

#define BT_CODEC_LC3_ID   0x06
 LC3 codec ID. More...
 
#define BT_CODEC_LC3_CAP_BASE   0x01
 
#define BT_CODEC_LC3_FREQ   (BT_CODEC_LC3_CAP_BASE)
 LC3 sample frequency capability type. More...
 
#define BT_CODEC_LC3_FREQ_8KHZ   BIT(0)
 LC3 8 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_11KHZ   BIT(1)
 LC3 11.025 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_16KHZ   BIT(2)
 LC3 16 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_22KHZ   BIT(3)
 LC3 22.05 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_24KHZ   BIT(4)
 LC3 24 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_32KHZ   BIT(5)
 LC3 32 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_44KHZ   BIT(6)
 LC3 44.1 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_48KHZ   BIT(7)
 LC3 48 Khz frequency capability. More...
 
#define BT_CODEC_LC3_FREQ_ANY
 LC3 any frequency capability. More...
 
#define BT_CODEC_LC3_DURATION   (BT_CODEC_LC3_CAP_BASE + 1)
 LC3 frame duration capability type. More...
 
#define BT_CODEC_LC3_DURATION_7_5   BIT(0)
 LC3 7.5 msec frame duration capability. More...
 
#define BT_CODEC_LC3_DURATION_10   BIT(1)
 LC3 10 msec frame duration capability. More...
 
#define BT_CODEC_LC3_DURATION_ANY
 LC3 any frame duration capability. More...
 
#define BT_CODEC_LC3_DURATION_PREFER_7_5   BIT(4)
 LC3 7.5 msec preferred frame duration capability. More...
 
#define BT_CODEC_LC3_DURATION_PREFER_10   BIT(5)
 LC3 10 msec preferred frame duration capability. More...
 
#define BT_CODEC_LC3_CHAN_COUNT   (BT_CODEC_LC3_CAP_BASE + 2)
 LC3 channel count capability type. More...
 
#define BT_CODEC_LC3_CHAN_COUNT_SUPPORT   BIT(0)
 LC3 channel count support capability. More...
 
#define BT_CODEC_LC3_FRAME_LEN   (BT_CODEC_LC3_CAP_BASE + 3)
 LC3 frame length capability type. More...
 
#define BT_CODEC_LC3_FRAME_COUNT   (BT_CODEC_LC3_CAP_BASE + 4)
 LC3 frame count capability type. More...
 
#define BT_CODEC_LC3_CONFIG_BASE   0x01
 
#define BT_CODEC_CONFIG_LC3_FREQ   (BT_CODEC_LC3_CONFIG_BASE)
 LC3 Sample Frequency configuration type. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_8KHZ   0x01
 LC3 8 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_11KHZ   0x02
 LC3 11.025 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_16KHZ   0x03
 LC3 16 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_22KHZ   0x04
 LC3 22.05 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_24KHZ   0x05
 LC3 24 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_32KHZ   0x06
 LC3 32 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_44KHZ   0x07
 LC3 44.1 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_FREQ_48KHZ   0x08
 LC3 48 Khz Sample Frequency configuration. More...
 
#define BT_CODEC_CONFIG_LC3_DURATION   (BT_CODEC_LC3_CONFIG_BASE + 1)
 LC3 Frame Duration configuration type. More...
 
#define BT_CODEC_CONFIG_LC3_DURATION_7_5   0x00
 LC3 7.5 msec Frame Duration configuration. More...
 
#define BT_CODEC_CONFIG_LC3_DURATION_10   0x01
 LC3 10 msec Frame Duration configuration. More...
 
#define BT_CODEC_CONFIG_LC3_CHAN_ALLOC   (BT_CODEC_LC3_CONFIG_BASE + 2)
 LC3 channel Allocation configuration type. More...
 
#define BT_CODEC_CONFIG_LC3_FRAME_LEN   (BT_CODEC_LC3_CONFIG_BASE + 3)
 LC3 Frame Length configuration type. More...
 
#define BT_CODEC_LC3_DATA(_freq, _duration, _chan_count, _len_min, _len_max)
 Helper to declare LC3 codec capability. More...
 
#define BT_CODEC_LC3_META(_prefer_context, _context)
 Helper to declare LC3 codec metadata. More...
 
#define BT_CODEC_LC3(_freq, _duration, _chan_count, _len_min, _len_max, _frames, _prefer_context, _context)
 Helper to declare LC3 codec. More...
 
#define BT_CODEC_LC3_CONFIG_DATA(_freq, _duration, _loc, _len)
 Helper to declare LC3 codec data configuration. More...
 
#define BT_CODEC_LC3_CONFIG_META(_context)
 
#define BT_CODEC_LC3_CONFIG_N(_freq, _duration, _loc, _len, _context)
 Helper to declare LC3 codec configuration for multiple channels. More...
 
#define BT_CODEC_LC3_CONFIG(_freq, _duration, _len, _context)    BT_CODEC_LC3_CONFIG_N(_freq, _duration, 0x000000000, _len, _context)
 Helper to declare LC3 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_8_1
 Helper to declare LC3 8.1 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_8_2
 Helper to declare LC3 8.2 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_16_1
 Helper to declare LC3 16.1 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_16_2
 Helper to declare LC3 16.2 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_24_1
 Helper to declare LC3 24.1 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_24_2
 Helper to declare LC3 24.2 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_32_1
 Helper to declare LC3 32.1 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_32_2
 Helper to declare LC3 32.2 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_441_1
 Helper to declare LC3 441.1 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_441_2
 Helper to declare LC3 441.2 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_48_1
 Helper to declare LC3 48.1 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_48_2
 Helper to declare LC3 48.2 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_48_3
 Helper to declare LC3 48.3 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_48_4
 Helper to declare LC3 48.4 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_48_5
 Helper to declare LC3 48.5 codec configuration. More...
 
#define BT_CODEC_LC3_CONFIG_48_6
 Helper to declare LC3 48.6 codec configuration. More...
 
#define BT_CODEC_LC3_QOS_7_5(_dir, _framing, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 7.5ms interval. More...
 
#define BT_CODEC_LC3_QOS_7_5_IN_UNFRAMED(_sdu, _rtn, _latency, _pd)    BT_CODEC_QOS_IN_UNFRAMED(7500u, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 7.5ms interval unframed input. More...
 
#define BT_CODEC_LC3_QOS_7_5_OUT_UNFRAMED(_sdu, _rtn, _latency, _pd)    BT_CODEC_QOS_OUT_UNFRAMED(7500u, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 7.5ms interval unframed output. More...
 
#define BT_CODEC_LC3_QOS_7_5_INOUT_UNFRAMED(_sdu, _rtn, _latency, _pd)    BT_CODEC_QOS_INOUT_UNFRAMED(7500u, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 7.5ms interval unframed in/out. More...
 
#define BT_CODEC_LC3_QOS_10(_dir, _framing, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 10ms frame internal. More...
 
#define BT_CODEC_LC3_QOS_10_IN_UNFRAMED(_sdu, _rtn, _latency, _pd)    BT_CODEC_QOS_IN_UNFRAMED(10000u, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 10ms interval unframed input. More...
 
#define BT_CODEC_LC3_QOS_10_OUT_UNFRAMED(_sdu, _rtn, _latency, _pd)    BT_CODEC_QOS_OUT_UNFRAMED(10000u, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 10ms interval unframed output. More...
 
#define BT_CODEC_LC3_QOS_10_INOUT_UNFRAMED(_sdu, _rtn, _latency, _pd)    BT_CODEC_QOS_INOUT_UNFRAMED(10000u, _sdu, _rtn, _latency, _pd)
 Helper to declare LC3 codec QoS for 10ms interval unframed in/out. More...
 

Detailed Description

LC3.

Macro Definition Documentation

◆ BT_CODEC_CONFIG_LC3_CHAN_ALLOC

#define BT_CODEC_CONFIG_LC3_CHAN_ALLOC   (BT_CODEC_LC3_CONFIG_BASE + 2)

#include <include/bluetooth/audio/lc3.h>

LC3 channel Allocation configuration type.

◆ BT_CODEC_CONFIG_LC3_DURATION

#define BT_CODEC_CONFIG_LC3_DURATION   (BT_CODEC_LC3_CONFIG_BASE + 1)

#include <include/bluetooth/audio/lc3.h>

LC3 Frame Duration configuration type.

◆ BT_CODEC_CONFIG_LC3_DURATION_10

#define BT_CODEC_CONFIG_LC3_DURATION_10   0x01

#include <include/bluetooth/audio/lc3.h>

LC3 10 msec Frame Duration configuration.

◆ BT_CODEC_CONFIG_LC3_DURATION_7_5

#define BT_CODEC_CONFIG_LC3_DURATION_7_5   0x00

#include <include/bluetooth/audio/lc3.h>

LC3 7.5 msec Frame Duration configuration.

◆ BT_CODEC_CONFIG_LC3_FRAME_LEN

#define BT_CODEC_CONFIG_LC3_FRAME_LEN   (BT_CODEC_LC3_CONFIG_BASE + 3)

#include <include/bluetooth/audio/lc3.h>

LC3 Frame Length configuration type.

◆ BT_CODEC_CONFIG_LC3_FREQ

#define BT_CODEC_CONFIG_LC3_FREQ   (BT_CODEC_LC3_CONFIG_BASE)

#include <include/bluetooth/audio/lc3.h>

LC3 Sample Frequency configuration type.

◆ BT_CODEC_CONFIG_LC3_FREQ_11KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_11KHZ   0x02

#include <include/bluetooth/audio/lc3.h>

LC3 11.025 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_16KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_16KHZ   0x03

#include <include/bluetooth/audio/lc3.h>

LC3 16 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_22KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_22KHZ   0x04

#include <include/bluetooth/audio/lc3.h>

LC3 22.05 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_24KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_24KHZ   0x05

#include <include/bluetooth/audio/lc3.h>

LC3 24 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_32KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_32KHZ   0x06

#include <include/bluetooth/audio/lc3.h>

LC3 32 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_44KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_44KHZ   0x07

#include <include/bluetooth/audio/lc3.h>

LC3 44.1 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_48KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_48KHZ   0x08

#include <include/bluetooth/audio/lc3.h>

LC3 48 Khz Sample Frequency configuration.

◆ BT_CODEC_CONFIG_LC3_FREQ_8KHZ

#define BT_CODEC_CONFIG_LC3_FREQ_8KHZ   0x01

#include <include/bluetooth/audio/lc3.h>

LC3 8 Khz Sample Frequency configuration.

◆ BT_CODEC_LC3

#define BT_CODEC_LC3 (   _freq,
  _duration,
  _chan_count,
  _len_min,
  _len_max,
  _frames,
  _prefer_context,
  _context 
)

#include <include/bluetooth/audio/lc3.h>

Value:
BT_CODEC(BT_CODEC_LC3_ID, 0x0000, 0x0000, \
BT_CODEC_LC3_DATA(_freq, _duration, _chan_count, _len_min, \
_len_max), \
BT_CODEC_LC3_META(_prefer_context, _context))
#define BT_CODEC(_id, _cid, _vid, _data, _meta)
Helper to declare bt_codec structure.
Definition: audio.h:102
#define BT_CODEC_LC3_ID
LC3 codec ID.
Definition: lc3.h:28
#define BT_CODEC_LC3_DATA(_freq, _duration, _chan_count, _len_min, _len_max)
Helper to declare LC3 codec capability.
Definition: lc3.h:196
#define BT_CODEC_LC3_META(_prefer_context, _context)
Helper to declare LC3 codec metadata.
Definition: lc3.h:208

Helper to declare LC3 codec.

◆ BT_CODEC_LC3_CAP_BASE

#define BT_CODEC_LC3_CAP_BASE   0x01

◆ BT_CODEC_LC3_CHAN_COUNT

#define BT_CODEC_LC3_CHAN_COUNT   (BT_CODEC_LC3_CAP_BASE + 2)

#include <include/bluetooth/audio/lc3.h>

LC3 channel count capability type.

◆ BT_CODEC_LC3_CHAN_COUNT_SUPPORT

#define BT_CODEC_LC3_CHAN_COUNT_SUPPORT   BIT(0)

#include <include/bluetooth/audio/lc3.h>

LC3 channel count support capability.

◆ BT_CODEC_LC3_CONFIG

#define BT_CODEC_LC3_CONFIG (   _freq,
  _duration,
  _len,
  _context 
)     BT_CODEC_LC3_CONFIG_N(_freq, _duration, 0x000000000, _len, _context)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec configuration.

◆ BT_CODEC_LC3_CONFIG_16_1

#define BT_CODEC_LC3_CONFIG_16_1

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_META_CONTEXT_VOICE
Definition: audio.h:129
#define BT_CODEC_CONFIG_LC3_DURATION_7_5
LC3 7.5 msec Frame Duration configuration.
Definition: lc3.h:177
#define BT_CODEC_LC3_CONFIG(_freq, _duration, _len, _context)
Helper to declare LC3 codec configuration.
Definition: lc3.h:256
#define BT_CODEC_CONFIG_LC3_FREQ_16KHZ
LC3 16 Khz Sample Frequency configuration.
Definition: lc3.h:148

Helper to declare LC3 16.1 codec configuration.

◆ BT_CODEC_LC3_CONFIG_16_2

#define BT_CODEC_LC3_CONFIG_16_2

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_CONFIG_LC3_DURATION_10
LC3 10 msec Frame Duration configuration.
Definition: lc3.h:181

Helper to declare LC3 16.2 codec configuration.

◆ BT_CODEC_LC3_CONFIG_24_1

#define BT_CODEC_LC3_CONFIG_24_1

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_CONFIG_LC3_FREQ_24KHZ
LC3 24 Khz Sample Frequency configuration.
Definition: lc3.h:156

Helper to declare LC3 24.1 codec configuration.

◆ BT_CODEC_LC3_CONFIG_24_2

#define BT_CODEC_LC3_CONFIG_24_2

◆ BT_CODEC_LC3_CONFIG_32_1

#define BT_CODEC_LC3_CONFIG_32_1

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_CONFIG_LC3_FREQ_32KHZ
LC3 32 Khz Sample Frequency configuration.
Definition: lc3.h:160

Helper to declare LC3 32.1 codec configuration.

◆ BT_CODEC_LC3_CONFIG_32_2

#define BT_CODEC_LC3_CONFIG_32_2

◆ BT_CODEC_LC3_CONFIG_441_1

#define BT_CODEC_LC3_CONFIG_441_1

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_META_CONTEXT_MEDIA
Definition: audio.h:136
#define BT_CODEC_CONFIG_LC3_FREQ_44KHZ
LC3 44.1 Khz Sample Frequency configuration.
Definition: lc3.h:164

Helper to declare LC3 441.1 codec configuration.

◆ BT_CODEC_LC3_CONFIG_441_2

#define BT_CODEC_LC3_CONFIG_441_2

◆ BT_CODEC_LC3_CONFIG_48_1

#define BT_CODEC_LC3_CONFIG_48_1

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_CONFIG_LC3_FREQ_48KHZ
LC3 48 Khz Sample Frequency configuration.
Definition: lc3.h:168

Helper to declare LC3 48.1 codec configuration.

◆ BT_CODEC_LC3_CONFIG_48_2

#define BT_CODEC_LC3_CONFIG_48_2

◆ BT_CODEC_LC3_CONFIG_48_3

#define BT_CODEC_LC3_CONFIG_48_3

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_LC3_DURATION_7_5
LC3 7.5 msec frame duration capability.
Definition: lc3.h:86

Helper to declare LC3 48.3 codec configuration.

◆ BT_CODEC_LC3_CONFIG_48_4

#define BT_CODEC_LC3_CONFIG_48_4

◆ BT_CODEC_LC3_CONFIG_48_5

#define BT_CODEC_LC3_CONFIG_48_5

◆ BT_CODEC_LC3_CONFIG_48_6

#define BT_CODEC_LC3_CONFIG_48_6

◆ BT_CODEC_LC3_CONFIG_8_1

#define BT_CODEC_LC3_CONFIG_8_1

#include <include/bluetooth/audio/lc3.h>

Value:
#define BT_CODEC_CONFIG_LC3_FREQ_8KHZ
LC3 8 Khz Sample Frequency configuration.
Definition: lc3.h:140

Helper to declare LC3 8.1 codec configuration.

◆ BT_CODEC_LC3_CONFIG_8_2

#define BT_CODEC_LC3_CONFIG_8_2

◆ BT_CODEC_LC3_CONFIG_BASE

#define BT_CODEC_LC3_CONFIG_BASE   0x01

◆ BT_CODEC_LC3_CONFIG_DATA

#define BT_CODEC_LC3_CONFIG_DATA (   _freq,
  _duration,
  _loc,
  _len 
)

#include <include/bluetooth/audio/lc3.h>

Value:
{ \
BT_CODEC_DATA(BT_CODEC_CONFIG_LC3_FREQ, _freq), \
BT_CODEC_DATA(BT_CODEC_CONFIG_LC3_DURATION, _duration), \
BT_CODEC_DATA(BT_CODEC_CONFIG_LC3_CHAN_ALLOC, _loc, _loc >> 8, \
_loc >> 16, _loc >> 24), \
BT_CODEC_DATA(BT_CODEC_CONFIG_LC3_FRAME_LEN, _len, _len >> 8) \
}
#define BT_CODEC_CONFIG_LC3_CHAN_ALLOC
LC3 channel Allocation configuration type.
Definition: lc3.h:186
#define BT_CODEC_CONFIG_LC3_FREQ
LC3 Sample Frequency configuration type.
Definition: lc3.h:136
#define BT_CODEC_CONFIG_LC3_DURATION
LC3 Frame Duration configuration type.
Definition: lc3.h:173
#define BT_CODEC_CONFIG_LC3_FRAME_LEN
LC3 Frame Length configuration type.
Definition: lc3.h:191

Helper to declare LC3 codec data configuration.

Helper to declare LC3 codec metadata configuration.

◆ BT_CODEC_LC3_CONFIG_META

#define BT_CODEC_LC3_CONFIG_META (   _context)

#include <include/bluetooth/audio/lc3.h>

Value:
{ \
BT_CODEC_DATA(BT_CODEC_META_CONTEXT, _context, _context >> 8), \
}
#define BT_CODEC_META_CONTEXT
Definition: audio.h:117

◆ BT_CODEC_LC3_CONFIG_N

#define BT_CODEC_LC3_CONFIG_N (   _freq,
  _duration,
  _loc,
  _len,
  _context 
)

#include <include/bluetooth/audio/lc3.h>

Value:
BT_CODEC(BT_CODEC_LC3_ID, 0x0000, 0x0000, \
BT_CODEC_LC3_CONFIG_DATA(_freq, _duration, _loc, _len), \
#define BT_CODEC_LC3_CONFIG_META(_context)
Definition: lc3.h:240
#define BT_CODEC_LC3_CONFIG_DATA(_freq, _duration, _loc, _len)
Helper to declare LC3 codec data configuration.

Helper to declare LC3 codec configuration for multiple channels.

◆ BT_CODEC_LC3_DATA

#define BT_CODEC_LC3_DATA (   _freq,
  _duration,
  _chan_count,
  _len_min,
  _len_max 
)

#include <include/bluetooth/audio/lc3.h>

Value:
{ \
BT_CODEC_DATA(BT_CODEC_LC3_FREQ, _freq, _freq >> 8), \
BT_CODEC_DATA(BT_CODEC_LC3_DURATION, _duration), \
BT_CODEC_DATA(BT_CODEC_LC3_CHAN_COUNT, _chan_count), \
BT_CODEC_DATA(BT_CODEC_LC3_FRAME_LEN, _len_min, _len_min >> 8, \
_len_max, _len_max >> 8,) \
}
#define BT_CODEC_LC3_DURATION
LC3 frame duration capability type.
Definition: lc3.h:82
#define BT_CODEC_LC3_FRAME_LEN
LC3 frame length capability type.
Definition: lc3.h:118
#define BT_CODEC_LC3_CHAN_COUNT
LC3 channel count capability type.
Definition: lc3.h:109
#define BT_CODEC_LC3_FREQ
LC3 sample frequency capability type.
Definition: lc3.h:36

Helper to declare LC3 codec capability.

◆ BT_CODEC_LC3_DURATION

#define BT_CODEC_LC3_DURATION   (BT_CODEC_LC3_CAP_BASE + 1)

#include <include/bluetooth/audio/lc3.h>

LC3 frame duration capability type.

◆ BT_CODEC_LC3_DURATION_10

#define BT_CODEC_LC3_DURATION_10   BIT(1)

#include <include/bluetooth/audio/lc3.h>

LC3 10 msec frame duration capability.

◆ BT_CODEC_LC3_DURATION_7_5

#define BT_CODEC_LC3_DURATION_7_5   BIT(0)

#include <include/bluetooth/audio/lc3.h>

LC3 7.5 msec frame duration capability.

◆ BT_CODEC_LC3_DURATION_ANY

#define BT_CODEC_LC3_DURATION_ANY

#include <include/bluetooth/audio/lc3.h>

Value:
BT_CODEC_LC3_DURATION_10)

LC3 any frame duration capability.

◆ BT_CODEC_LC3_DURATION_PREFER_10

#define BT_CODEC_LC3_DURATION_PREFER_10   BIT(5)

#include <include/bluetooth/audio/lc3.h>

LC3 10 msec preferred frame duration capability.

◆ BT_CODEC_LC3_DURATION_PREFER_7_5

#define BT_CODEC_LC3_DURATION_PREFER_7_5   BIT(4)

#include <include/bluetooth/audio/lc3.h>

LC3 7.5 msec preferred frame duration capability.

◆ BT_CODEC_LC3_FRAME_COUNT

#define BT_CODEC_LC3_FRAME_COUNT   (BT_CODEC_LC3_CAP_BASE + 4)

#include <include/bluetooth/audio/lc3.h>

LC3 frame count capability type.

◆ BT_CODEC_LC3_FRAME_LEN

#define BT_CODEC_LC3_FRAME_LEN   (BT_CODEC_LC3_CAP_BASE + 3)

#include <include/bluetooth/audio/lc3.h>

LC3 frame length capability type.

◆ BT_CODEC_LC3_FREQ

#define BT_CODEC_LC3_FREQ   (BT_CODEC_LC3_CAP_BASE)

#include <include/bluetooth/audio/lc3.h>

LC3 sample frequency capability type.

◆ BT_CODEC_LC3_FREQ_11KHZ

#define BT_CODEC_LC3_FREQ_11KHZ   BIT(1)

#include <include/bluetooth/audio/lc3.h>

LC3 11.025 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_16KHZ

#define BT_CODEC_LC3_FREQ_16KHZ   BIT(2)

#include <include/bluetooth/audio/lc3.h>

LC3 16 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_22KHZ

#define BT_CODEC_LC3_FREQ_22KHZ   BIT(3)

#include <include/bluetooth/audio/lc3.h>

LC3 22.05 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_24KHZ

#define BT_CODEC_LC3_FREQ_24KHZ   BIT(4)

#include <include/bluetooth/audio/lc3.h>

LC3 24 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_32KHZ

#define BT_CODEC_LC3_FREQ_32KHZ   BIT(5)

#include <include/bluetooth/audio/lc3.h>

LC3 32 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_44KHZ

#define BT_CODEC_LC3_FREQ_44KHZ   BIT(6)

#include <include/bluetooth/audio/lc3.h>

LC3 44.1 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_48KHZ

#define BT_CODEC_LC3_FREQ_48KHZ   BIT(7)

#include <include/bluetooth/audio/lc3.h>

LC3 48 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_8KHZ

#define BT_CODEC_LC3_FREQ_8KHZ   BIT(0)

#include <include/bluetooth/audio/lc3.h>

LC3 8 Khz frequency capability.

◆ BT_CODEC_LC3_FREQ_ANY

#define BT_CODEC_LC3_FREQ_ANY

#include <include/bluetooth/audio/lc3.h>

Value:
BT_CODEC_LC3_FREQ_16KHZ | \
BT_CODEC_LC3_FREQ_24KHZ | \
BT_CODEC_LC3_FREQ_32KHZ | \
BT_CODEC_LC3_FREQ_44KHZ | \
BT_CODEC_LC3_FREQ_48KHZ)
#define BT_CODEC_LC3_FREQ_8KHZ
LC3 8 Khz frequency capability.
Definition: lc3.h:40

LC3 any frequency capability.

◆ BT_CODEC_LC3_ID

#define BT_CODEC_LC3_ID   0x06

#include <include/bluetooth/audio/lc3.h>

LC3 codec ID.

◆ BT_CODEC_LC3_META

#define BT_CODEC_LC3_META (   _prefer_context,
  _context 
)

#include <include/bluetooth/audio/lc3.h>

Value:
{ \
BT_CODEC_DATA(BT_CODEC_META_PREFER_CONTEXT, _prefer_context & 0xff, \
_prefer_context >> 8), \
BT_CODEC_DATA(BT_CODEC_META_CONTEXT, _context & 0xff, _context >> 8) \
}
#define BT_CODEC_META_PREFER_CONTEXT
Definition: audio.h:116

Helper to declare LC3 codec metadata.

◆ BT_CODEC_LC3_QOS_10

#define BT_CODEC_LC3_QOS_10 (   _dir,
  _framing,
  _sdu,
  _rtn,
  _latency,
  _pd 
)

#include <include/bluetooth/audio/lc3.h>

Value:
BT_CODEC_QOS(_dir, 10000u, _framing, BT_CODEC_QOS_2M, _sdu, _rtn, \
_latency, _pd)
#define BT_CODEC_QOS(_dir, _interval, _framing, _phy, _sdu, _rtn, _latency, _pd)
Helper to declare elements of bt_codec_qos.
Definition: audio.h:265
@ BT_CODEC_QOS_2M
Definition: audio.h:294

Helper to declare LC3 codec QoS for 10ms frame internal.

◆ BT_CODEC_LC3_QOS_10_IN_UNFRAMED

#define BT_CODEC_LC3_QOS_10_IN_UNFRAMED (   _sdu,
  _rtn,
  _latency,
  _pd 
)     BT_CODEC_QOS_IN_UNFRAMED(10000u, _sdu, _rtn, _latency, _pd)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec QoS for 10ms interval unframed input.

◆ BT_CODEC_LC3_QOS_10_INOUT_UNFRAMED

#define BT_CODEC_LC3_QOS_10_INOUT_UNFRAMED (   _sdu,
  _rtn,
  _latency,
  _pd 
)     BT_CODEC_QOS_INOUT_UNFRAMED(10000u, _sdu, _rtn, _latency, _pd)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec QoS for 10ms interval unframed in/out.

◆ BT_CODEC_LC3_QOS_10_OUT_UNFRAMED

#define BT_CODEC_LC3_QOS_10_OUT_UNFRAMED (   _sdu,
  _rtn,
  _latency,
  _pd 
)     BT_CODEC_QOS_OUT_UNFRAMED(10000u, _sdu, _rtn, _latency, _pd)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec QoS for 10ms interval unframed output.

◆ BT_CODEC_LC3_QOS_7_5

#define BT_CODEC_LC3_QOS_7_5 (   _dir,
  _framing,
  _sdu,
  _rtn,
  _latency,
  _pd 
)

#include <include/bluetooth/audio/lc3.h>

Value:
BT_CODEC_QOS(_dir, 7500u, _framing, BT_CODEC_QOS_2M, _sdu, _rtn, \
_latency, _pd)

Helper to declare LC3 codec QoS for 7.5ms interval.

◆ BT_CODEC_LC3_QOS_7_5_IN_UNFRAMED

#define BT_CODEC_LC3_QOS_7_5_IN_UNFRAMED (   _sdu,
  _rtn,
  _latency,
  _pd 
)     BT_CODEC_QOS_IN_UNFRAMED(7500u, _sdu, _rtn, _latency, _pd)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec QoS for 7.5ms interval unframed input.

◆ BT_CODEC_LC3_QOS_7_5_INOUT_UNFRAMED

#define BT_CODEC_LC3_QOS_7_5_INOUT_UNFRAMED (   _sdu,
  _rtn,
  _latency,
  _pd 
)     BT_CODEC_QOS_INOUT_UNFRAMED(7500u, _sdu, _rtn, _latency, _pd)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec QoS for 7.5ms interval unframed in/out.

◆ BT_CODEC_LC3_QOS_7_5_OUT_UNFRAMED

#define BT_CODEC_LC3_QOS_7_5_OUT_UNFRAMED (   _sdu,
  _rtn,
  _latency,
  _pd 
)     BT_CODEC_QOS_OUT_UNFRAMED(7500u, _sdu, _rtn, _latency, _pd)

#include <include/bluetooth/audio/lc3.h>

Helper to declare LC3 codec QoS for 7.5ms interval unframed output.