SCO Application Functions
APP_SCO API Brief
Application |
Brief |
|---|---|
initialize the voice relevant settings |
|
deinitialize the voice relevant settings |
|
application for handling SCO data |
|
get trigger time struct for start handing SCO data |
APP_SCO API Reference
Header File
Functions
-
void app_sco_codec_init(uint32_t codec_type, uint8_t vol)
initialize the voice relevant settings
initialize audio module and set voice relevant data
- 参数:
codec_type – [in] codec Index @btif_sco_codec_t
vol – [in] volume of voice
- 返回:
N/A
-
void app_sco_codec_deinit(void)
deinitialize the voice relevant settings
reset audio module and free voice relevant settings
- 返回:
N/A
-
uint32_t app_sco_data_process(void)
application for handling SCO data
get data from ADC buff and encode to SCO data. After that, decode SCO data and put into DAC buff
- 返回值:
0 – always 0
- 返回:
result
-
bt_clk_t *app_sco_get_trigger_time(void)
get trigger time struct for start handing SCO data
return the BT time clock struct which start encode/decode SCO data
- 返回:
BT clock
Macros
-
APP_SCO_MSBC_FRAME_BUFFER_SIZE
Encoded buffer size in bytes per mSBC frame
-
APP_SCO_MSBC_SAMPLES_PER_FRAME
Encoded samples (mono) per mSBC frame
-
APP_SCO_CVSD_FRAME_BUFFER_SIZE
Raw buffer size in bytes per CVSD frame
-
APP_SCO_CVSD_SAMPLES_PER_FRAME
Encoded samples (mono) per CVSD frame
-
PLC_CVSD_FS
CVSD Frame Size in samples
-
PLC_CVSD_N
CVSD Window Length in samples for pattern matching
-
PLC_CVSD_M
CVSD Template samples for matching
-
PLC_CVSD_LHIST
CVSD Length of history buffer required in samples
-
PLC_CVSD_RT
CVSD Reconvergence Time in samples
-
PLC_CVSD_OLAL
CVSD OverLap-Add Length in samples
-
PLC_MSBC_FS
MSBC Frame Size in samples
-
PLC_MSBC_N
MSBC Window Length in samples for pattern matching
-
PLC_MSBC_M
MSBC Template samples for matching
-
PLC_MSBC_LHIST
MSBC Length of history buffer required in samples
-
PLC_MSBC_RT
MSBC Reconvergence Time in samples
-
PLC_MSBC_OLAL
MSBC OverLap-Add Length in samples
-
PLC_VAD_DET_TH
PLC VAD detection threshold value