思澈科技软件开发工具包  2.20

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...
 

Detailed Description

Typedef Documentation

◆ FACC_HandleTypeDef

FACC handle structure definition

Enumeration Type Documentation

◆ HAL_FACC_StateTypeDef

HAL ACC State structures definition.

Enumerator
HAL_FACC_STATE_RESET 

FACC not yet initialized or disabled

HAL_FACC_STATE_READY 

Peripheral Initialized and ready for use

HAL_FACC_STATE_BUSY 

An internal process is ongoing

HAL_FACC_STATE_ERROR 

FACC state error

Function Documentation

◆ HAL_FACC_Buffer_Enable()

HAL_StatusTypeDef HAL_FACC_Buffer_Enable ( FACC_HandleTypeDef facc,
uint8_t *  buf_addr 
)

Enable FACC buffer mode, used in FIR/IIR suspend/resume calculation.

Parameters
faccFACC handle
buf_addrBuffer address
Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_Config()

HAL_StatusTypeDef HAL_FACC_Config ( FACC_HandleTypeDef facc,
FACC_ConfigTypeDef config 
)

Init FACC Accelerator.

Parameters
faccFACC handle
configFACC configuration
Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_DeInit()

HAL_StatusTypeDef HAL_FACC_DeInit ( FACC_HandleTypeDef facc)

DeInit FACC Accelerator.

Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_Init()

HAL_StatusTypeDef HAL_FACC_Init ( FACC_HandleTypeDef facc)

Init FACC Accelerator.

Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_IRQHandler()

HAL_StatusTypeDef HAL_FACC_IRQHandler ( FACC_HandleTypeDef facc)

FACC Interrupt process.

Parameters
[in]faccFACC handle
Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_Reset()

HAL_StatusTypeDef HAL_FACC_Reset ( FACC_HandleTypeDef facc)

Reset FACC Accelerator.

Parameters
faccFACC handle
Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_SetCoeff()

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.

Parameters
faccFACC handle
coff_bcoefficent array b
len_bcoefficent array b length in bytes
coff_acoefficent array a
len_acoefficent array a length in bytes
reversearray in reverse order
Return values
status,HAL_OKif successful, otherwise failed

◆ HAL_FACC_Start()

HAL_StatusTypeDef HAL_FACC_Start ( FACC_HandleTypeDef facc,
uint8_t *  input,
uint8_t *  output,
uint32_t  len 
)

Start FACC in synchronous mode.

Parameters
[in]faccFACC handle
[in]inputInput data
[out]outputOutput data,
[in]lenlength of input data in bytes
Return values
status,HAL_OKif successful, otherwise failed
Note
Ouput buffer length need to be 8 bytes aligned in Lite, 4 bytes aligned in PRO.

◆ HAL_FACC_Start_IT()

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

Parameters
[in]faccFACC handle
[in]inputInput data
[out]outputOutput data
[in]lenlength of input data in bytes
Return values
status,HAL_OKif successful, otherwise failed
Note
Ouput buffer length need to be 8 bytes aligned in Lite, 4 bytes aligned in PRO.