RA Flexible Software Package Documentation
Release v5.5.0
|
|
Functions | |
fsp_err_t | RM_ADPCM_DECODER_Open (adpcm_decoder_ctrl_t *p_ctrl, adpcm_decoder_cfg_t const *const p_cfg) |
fsp_err_t | RM_ADPCM_DECODER_Decode (adpcm_decoder_ctrl_t *const p_ctrl, void const *p_src, void *p_dest, uint32_t src_len_bytes) |
fsp_err_t | RM_ADPCM_DECODER_Reset (adpcm_decoder_ctrl_t *p_ctrl) |
fsp_err_t | RM_ADPCM_DECODER_Close (adpcm_decoder_ctrl_t *p_ctrl) |
Middleware to implement the ADPCM Audio Decoder. This module implements the ADPCM Decoder Interface.
The ADPCM Audio Decoder has the following key features:
Configuration | Options | Default | Description |
---|---|---|---|
Parameter Checking |
| Default (BSP) | If selected code for parameter checking is included in the build. |
Configuration | Options | Default | Description |
---|---|---|---|
Name | Name must be a valid C symbol | g_adpcm_decoder0 | Module name. |
This module has no required clock configurations.
This module does not use I/O pins.
This is a basic example of minimal use of the ADPCM Audio Decoder implementation in an application.
Data Structures | |
struct | adpcm_decoder_instance_ctrl_t |
struct adpcm_decoder_instance_ctrl_t |
RM_ADPCM_DECODER instance control block. DO NOT INITIALIZE. Initialized in adpcm_decoder_api_t::open().
fsp_err_t RM_ADPCM_DECODER_Open | ( | adpcm_decoder_ctrl_t * | p_ctrl, |
adpcm_decoder_cfg_t const *const | p_cfg | ||
) |
Initializes ADPCM audio decoder device.
Implements adpcm_decoder_api_t::open().
FSP_SUCCESS | Module is ready for use. |
FSP_ERR_ASSERTION | An input argument is invalid. |
FSP_ERR_ALREADY_OPEN | The instance control structure has already been opened. |
fsp_err_t RM_ADPCM_DECODER_Decode | ( | adpcm_decoder_ctrl_t *const | p_ctrl, |
void const * | p_src, | ||
void * | p_dest, | ||
uint32_t | src_len_bytes | ||
) |
Decodes 4bit ADPCM data to 16bit PCM data. It reads ADPCM data from area pointed by inputAddr pointer, decodes the number of samples specified and stores the decoded data in buffer pointed with outputAddr pointer.
Implements adpcm_decoder_api_t::decode().
FSP_SUCCESS | Decode operation successfully completed. |
FSP_ERR_ASSERTION | An input argument is invalid. |
FSP_ERR_NOT_OPEN | Unit is not open. |
fsp_err_t RM_ADPCM_DECODER_Reset | ( | adpcm_decoder_ctrl_t * | p_ctrl | ) |
This function resets the ADPCM decoder device.
Implements adpcm_decoder_api_t::reset().
FSP_SUCCESS | Module closed. |
FSP_ERR_ASSERTION | An input argument is invalid. |
FSP_ERR_NOT_OPEN | Unit is not open. |
fsp_err_t RM_ADPCM_DECODER_Close | ( | adpcm_decoder_ctrl_t * | p_ctrl | ) |
This function closes the ADPCM decoder device.
Implements adpcm_decoder_api_t::close().
FSP_SUCCESS | Module closed. |
FSP_ERR_ASSERTION | An input argument is invalid. |
FSP_ERR_NOT_OPEN | Unit is not open. |