Data Structures | |
| struct | FACC_ConfigTypeDef |
| struct | __FACC_HandleTypeDef |
Macros | |
| #define | FACC_MAX_FIFO_SIZE 256 |
| #define | FACC_FIR_STATE_SIZE 260 |
| #define | FACC_IIR_STATE_SIZE 388 |
| #define | HAL_FACC_SetCoeffFir(facc, coff, len) HAL_FACC_SetCoeff(facc,coff,len,NULL,0,0) |
| #define | HAL_FACC_SetCoeffFirReverse(facc, coff, len) HAL_FACC_SetCoeff(facc,coff,len,NULL,0,1) |
| #define | HAL_FACC_SetConvKernel(facc, kernel, len) HAL_FACC_SetCoeff(facc,kernel,len,NULL,0,0) |
Typedefs | |
| typedef struct __FACC_HandleTypeDef | FACC_HandleTypeDef |
Enumerations | |
| enum | HAL_FACC_StateTypeDef { HAL_FACC_STATE_RESET = 0x00U, HAL_FACC_STATE_READY = 0x01U, HAL_FACC_STATE_BUSY = 0x02U, HAL_FACC_STATE_ERROR = 0x03U } |
| HAL ACC State structures definition. More... | |
Functions | |
| HAL_StatusTypeDef | HAL_FACC_Init (FACC_HandleTypeDef *facc) |
| Init FACC Accelerator. More... | |
| HAL_StatusTypeDef | HAL_FACC_Config (FACC_HandleTypeDef *facc, FACC_ConfigTypeDef *config) |
| Init FACC Accelerator. More... | |
| HAL_StatusTypeDef | HAL_FACC_Reset (FACC_HandleTypeDef *facc) |
| Reset FACC Accelerator. More... | |
| HAL_StatusTypeDef | HAL_FACC_SetCoeff (FACC_HandleTypeDef *facc, uint8_t *coff_b, uint16_t len_b, uint8_t *coff_a, uint16_t len_a, uint8_t reverse) |
| Set IIR filter co-efficients. More... | |
| HAL_StatusTypeDef | HAL_FACC_Buffer_Enable (FACC_HandleTypeDef *facc, uint8_t *buf_addr) |
| Enable FACC buffer mode, used in FIR/IIR suspend/resume calculation. More... | |
| HAL_StatusTypeDef | HAL_FACC_DeInit (FACC_HandleTypeDef *facc) |
| DeInit FACC Accelerator. More... | |
| HAL_StatusTypeDef | HAL_FACC_Start (FACC_HandleTypeDef *facc, uint8_t *input, uint8_t *output, uint32_t len) |
| Start FACC in synchronous mode. More... | |
| HAL_StatusTypeDef | HAL_FACC_Start_IT (FACC_HandleTypeDef *facc, uint8_t *input, uint8_t *output, uint32_t len) |
| Start FACC in asynchronous mode. More... | |
| HAL_StatusTypeDef | HAL_FACC_IRQHandler (FACC_HandleTypeDef *facc) |
| FACC Interrupt process. More... | |
| typedef struct __FACC_HandleTypeDef FACC_HandleTypeDef |
FACC handle structure definition
| HAL_StatusTypeDef HAL_FACC_Buffer_Enable | ( | FACC_HandleTypeDef * | facc, |
| uint8_t * | buf_addr | ||
| ) |
Enable FACC buffer mode, used in FIR/IIR suspend/resume calculation.
| facc | FACC handle |
| buf_addr | Buffer address |
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_Config | ( | FACC_HandleTypeDef * | facc, |
| FACC_ConfigTypeDef * | config | ||
| ) |
Init FACC Accelerator.
| facc | FACC handle |
| config | FACC configuration |
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_DeInit | ( | FACC_HandleTypeDef * | facc | ) |
DeInit FACC Accelerator.
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_Init | ( | FACC_HandleTypeDef * | facc | ) |
Init FACC Accelerator.
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_IRQHandler | ( | FACC_HandleTypeDef * | facc | ) |
FACC Interrupt process.
| [in] | facc | FACC handle |
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_Reset | ( | FACC_HandleTypeDef * | facc | ) |
Reset FACC Accelerator.
| facc | FACC handle |
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_SetCoeff | ( | FACC_HandleTypeDef * | facc, |
| uint8_t * | coff_b, | ||
| uint16_t | len_b, | ||
| uint8_t * | coff_a, | ||
| uint16_t | len_a, | ||
| uint8_t | reverse | ||
| ) |
Set IIR filter co-efficients.
| facc | FACC handle |
| coff_b | coefficent array b |
| len_b | coefficent array b length in bytes |
| coff_a | coefficent array a |
| len_a | coefficent array a length in bytes |
| reverse | array in reverse order |
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_Start | ( | FACC_HandleTypeDef * | facc, |
| uint8_t * | input, | ||
| uint8_t * | output, | ||
| uint32_t | len | ||
| ) |
Start FACC in synchronous mode.
| [in] | facc | FACC handle |
| [in] | input | Input data |
| [out] | output | Output data, |
| [in] | len | length of input data in bytes |
| status,HAL_OK | if successful, otherwise failed |
| HAL_StatusTypeDef HAL_FACC_Start_IT | ( | FACC_HandleTypeDef * | facc, |
| uint8_t * | input, | ||
| uint8_t * | output, | ||
| uint32_t | len | ||
| ) |
Start FACC in asynchronous mode.
CpltCallback is called after complete
| [in] | facc | FACC handle |
| [in] | input | Input data |
| [out] | output | Output data |
| [in] | len | length of input data in bytes |
| status,HAL_OK | if successful, otherwise failed |