Developer World
Spresense SDK Library v3.2.0-ebc0364
bt_a2dp_codecs.h File Reference

Bluetooth A2DP common header for SDK on Spresense. More...

#include <stdint.h>

Go to the source code of this file.

Classes

struct  BT_A2D_SBC_CODEC_INFO
 data type for the SBC Codec Information Element More...
 
struct  BT_A2D_AAC_CODEC_INFO
 data type for the MPEG-2, 4 AAC Codec Information Element More...
 
struct  BT_A2D_VENDOR_CODEC_INFO
 Vendor Specific Codec information element type. More...
 
struct  BT_AUDIO_CODEC_INFO
 Codec information element structure, used to provide info of a single type of codec. More...
 

Macros

Codec Information format data max length
#define CODEC_INFO_MAX_LENGTH   20
 

Enumerations

enum  BT_A2DP_CODEC_TYPE { BT_A2DP_SINK_CODEC_SBC = 1 << 0 , BT_A2DP_SINK_CODEC_AAC = 1 << 2 }
 Masks for supported Codecs. More...
 
enum  BT_A2DP_TRANSFER_TYPE { BT_A2DP_SINK_DIRECT_TRANSFER = 0x00 , BT_A2DP_SINK_PACKET_TRANSFER = 0x01 }
 Masks for supported Codecs. More...
 
enum  BT_A2DP_SAMPLE_FREQ {
  BT_A2DP_SAMPLE_FREQ_8000HZ , BT_A2DP_SAMPLE_FREQ_11000HZ , BT_A2DP_SAMPLE_FREQ_12000HZ , BT_A2DP_SAMPLE_FREQ_16000HZ ,
  BT_A2DP_SAMPLE_FREQ_22050HZ , BT_A2DP_SAMPLE_FREQ_24000HZ , BT_A2DP_SAMPLE_FREQ_32000HZ , BT_A2DP_SAMPLE_FREQ_44100HZ ,
  BT_A2DP_SAMPLE_FREQ_48000HZ , BT_A2DP_SAMPLE_FREQ_64000HZ , BT_A2DP_SAMPLE_FREQ_88000HZ , BT_A2DP_SAMPLE_FREQ_96000HZ
}
 Masks for supported sample frequency TODO: Need to create mask.
 
enum  BT_A2DP_CHANNEL_MODE { BT_A2DP_CHANNEL_MONO , BT_A2DP_CHANNEL_DUAL , BT_A2DP_CHANNEL_STEREO , BT_A2DP_CHANNEL_JOINTSTEREO }
 Masks for supported channel TODO: Need to create mask.
 
enum  BT_A2DP_SBC_ALLOC_MODE { BT_A2DP_CHANNEL_SNR , BT_A2DP_CHANNEL_LOUDNESS }
 Masks for supported allocation method.
 
enum  BT_A2DP_AAC_PROFILE { BT_A2DP_MPEG2_AAC_LC , BT_A2DP_MPEG4_AAC_LC , BT_A2DP_MPEG4_AAC_LTP , BT_A2DP_MPEG4_AAC_SSR }
 Masks for supported Codecs.
 

Detailed Description

Bluetooth A2DP common header for SDK on Spresense.

Author
Sony Semiconductor Solutions Corporation

This header file includes bluetooth A2DP common definition between API and HAL I/F.

  • Codec information

Enumeration Type Documentation

◆ BT_A2DP_CODEC_TYPE

Masks for supported Codecs.

Enumerator
BT_A2DP_SINK_CODEC_SBC 

SBC Codec

BT_A2DP_SINK_CODEC_AAC 

AAC New codec might be add

◆ BT_A2DP_TRANSFER_TYPE

Masks for supported Codecs.

Enumerator
BT_A2DP_SINK_DIRECT_TRANSFER 

Use direct transfer to BB

BT_A2DP_SINK_PACKET_TRANSFER 

Use packet transfer to decode