AIROC™ BTSDK v4.6 - Documentation | ||||
Bluetooth SCO Hook Application Programming Interface. More...
Modules | |
API Functions | |
API Functions module for SCO Hook. | |
Data Types | |
Data Types for SCO Hook. | |
Variables | |
int16_t * | p_input |
Pointer to Received PCM samples (16 bits, Mono) | |
int16_t * | p_output |
Pointer to PCM samples which will be send (16 bits, Mono) | |
uint32_t | sample_count |
Number of PCM samples. | |
uint32_t value | |
uint32_t timeSeqNum: 16 | |
uint32_t res: 8 | |
uint32_t bufSmpCnt: 8 | |
struct { | |
uint32_t timeSeqNum: 16 | |
uint32_t res: 8 | |
uint32_t bufSmpCnt: 8 | |
} in | |
< bit definition used for input SCO (PCM) data. More... | |
uint32_t corr: 9 | |
uint32_t sign: 1 | |
uint32_t tStamp: 21 | |
uint32_t reset: 1 | |
struct { | |
uint32_t corr: 9 | |
uint32_t sign: 1 | |
uint32_t tStamp: 21 | |
uint32_t reset: 1 | |
} out | |
union { | |
struct { | |
uint32_t timeSeqNum: 16 | |
uint32_t res: 8 | |
uint32_t bufSmpCnt: 8 | |
} in | |
< bit definition used for input SCO (PCM) data. More... | |
struct { | |
uint32_t corr: 9 | |
uint32_t sign: 1 | |
uint32_t tStamp: 21 | |
uint32_t reset: 1 | |
} out | |
} sco_info | |
union { | |
uint32_t value | |
union { | |
struct { | |
uint32_t timeSeqNum: 16 | |
uint32_t res: 8 | |
uint32_t bufSmpCnt: 8 | |
} in | |
< bit definition used for input SCO (PCM) data. More... | |
struct { | |
uint32_t corr: 9 | |
uint32_t sign: 1 | |
uint32_t tStamp: 21 | |
uint32_t reset: 1 | |
} out | |
} sco_info | |
} | inserted_silence_len |
Number of silence PCM samples (0 for for Mic) | |
wiced_bt_sco_hook_event_mic_samples_t | mic_samples |
wiced_bt_sco_hook_event_spk_samples_t | spk_samples |
wiced_bt_sco_hook_event_spk_inserted_zeros_t | spk_zeros_inserted |
Bluetooth SCO Hook Application Programming Interface.
The SCO Hook library provides API to access SCO/eSCO data (both received and sent). This API can be used by the application to introduce a sound in the SCO data (to the Speaker or from the Microphone) or to implement Noise Reduction and Echo Cancellation. Incoming voice packets (i.e. from Audio Gateway) are passed to the application which can modify them before they goes out of the chip (e.g. to external Codec for rendering). Outgoing voice packets (e.g. from Microphone connected to an external Codec) are passed to the application which can modify them before they are send (to the Audio Gateway). The Audio Algorithm (DSP code) must be provided by the application. Note that the CPU clock is increased to the maximum (i.e. 96 MHz) when the callback is called. Once the callback returns, the CPU clock is set back to the normal frequency.
struct { ... } in |
< bit definition used for input SCO (PCM) data.
bit definition used for output SCO (PCM) data to PCM.
struct { ... } in |
< bit definition used for input SCO (PCM) data.
bit definition used for output SCO (PCM) data to PCM.