![]() |
RA Flexible Software Package Documentation
Release v6.4.0
|
|
Interface for ADPCM decoder.
The ADPCM decoder interface provides functionality to decode the 4bit ADPCM data to 16bit PCM output.
Data Structures | |
| struct | adpcm_decoder_cfg_t |
| struct | adpcm_decoder_api_t |
| struct | adpcm_decoder_instance_t |
Typedefs | |
| typedef void | adpcm_decoder_ctrl_t |
| struct adpcm_decoder_cfg_t |
Audio Decoder general configuration
| struct adpcm_decoder_api_t |
Audio Decoder interface API.
Data Fields | |
| fsp_err_t(* | open )(adpcm_decoder_ctrl_t *const p_ctrl, adpcm_decoder_cfg_t const *const p_cfg) |
| fsp_err_t(* | decode )(adpcm_decoder_ctrl_t *const p_ctrl, void const *p_src, void *p_dest, uint32_t src_len_bytes) |
| fsp_err_t(* | reset )(adpcm_decoder_ctrl_t *const p_ctrl) |
| fsp_err_t(* | close )(adpcm_decoder_ctrl_t *const p_ctrl) |
| fsp_err_t(* adpcm_decoder_api_t::open) (adpcm_decoder_ctrl_t *const p_ctrl, adpcm_decoder_cfg_t const *const p_cfg) |
Initialize Audio Decoder device.
| [in] | p_ctrl | Pointer to control handle structure |
| [in] | p_cfg | Pointer to configuration structure |
| fsp_err_t(* adpcm_decoder_api_t::decode) (adpcm_decoder_ctrl_t *const p_ctrl, void const *p_src, void *p_dest, uint32_t src_len_bytes) |
Decodes the compressed data and stores it in output buffer.
| [in] | p_ctrl | Pointer to control handle structure |
| [in] | p_src | Pointer to a source data buffer from which data will be picked up for decode operation. The argument must not be NULL. |
| [out] | p_dest | Pointer to the location to store the decoded data. |
| [in] | p_dest | Number of bytes to be decoded. |
| fsp_err_t(* adpcm_decoder_api_t::reset) (adpcm_decoder_ctrl_t *const p_ctrl) |
Resets the ADPCM driver.
| [in] | p_ctrl | Pointer to control handle structure |
| fsp_err_t(* adpcm_decoder_api_t::close) (adpcm_decoder_ctrl_t *const p_ctrl) |
Close the specified Audio decoder modules.
| [in] | p_ctrl | Pointer to control handle structure |
| struct adpcm_decoder_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
| Data Fields | ||
|---|---|---|
| adpcm_decoder_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
| adpcm_decoder_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
| adpcm_decoder_api_t const * | p_api | Pointer to the API structure for this instance. |
| typedef void adpcm_decoder_ctrl_t |
Audio Decoder control block. Allocate an instance specific control block to pass into the Audio Decoder API calls.