LL FMAC Constants

IT and DMA Defines

group FMAC_LL_EC_IT_DMA

Defines which can be used with LL_FMAC_EnableIT, LL_FMAC_DisableIT, LL_FMAC_Enable_DMAReq_and_IT and LL_FMAC_Disable_DMAReq_and_IT functions.

Defines

LL_FMAC_IT_SAT FMAC_CR_SATIEN

Saturation Error Interrupt Enable (it helps in debugging a filter)

LL_FMAC_IT_UNFL FMAC_CR_UNFLIEN

Underflow Error Interrupt Enable

LL_FMAC_IT_OVFL FMAC_CR_OVFLIEN

Overflow Error Interrupt Enable

LL_FMAC_IT_W FMAC_CR_WIEN

Write Interrupt Enable

LL_FMAC_IT_R FMAC_CR_RIEN

Read Interrupt Enable

LL_FMAC_IT_ERROR_ALL

(FMAC_CR_SATIEN | FMAC_CR_UNFLIEN \

| FMAC_CR_OVFLIEN)


All error interrupts Enable

LL_FMAC_IT_ALL

(FMAC_CR_SATIEN | FMAC_CR_RIEN | FMAC_CR_WIEN \

| FMAC_CR_UNFLIEN | FMAC_CR_OVFLIEN)


All interrupts Enable

LL_FMAC_DMA_WRITE FMAC_CR_DMAWEN

DMA Write Enable

LL_FMAC_DMA_READ FMAC_CR_DMAREN

DMA Read Enable

FMAC watermarks

group FMAC_LL_EC_WM

watermark defines that can be used for buffer full (input) or buffer empty (output)

Defines

LL_FMAC_WM_0_THRESHOLD_1 0x00000000U

Buffer full/empty flag set if there is less than 1 free/unread space.

LL_FMAC_WM_1_THRESHOLD_2 0x01000000U

Buffer full/empty flag set if there are less than 2 free/unread spaces.

LL_FMAC_WM_2_THRESHOLD_4 0x02000000U

Buffer full/empty flag set if there are less than 4 free/unread spaces.

LL_FMAC_WM_3_THRESHOLD_8 0x03000000U

Buffer full/empty flag set if there are less than 8 free/empty spaces.

FMAC functions

group FMAC_LL_EC_FUNC

Defines

LL_FMAC_FUNC_LOAD_X1 (FMAC_PARAM_FUNC_0)

Load X1 buffer

LL_FMAC_FUNC_LOAD_X2 (FMAC_PARAM_FUNC_1)

Load X2 buffer

LL_FMAC_FUNC_LOAD_Y (FMAC_PARAM_FUNC_1 | FMAC_PARAM_FUNC_0)

Load Y buffer

LL_FMAC_FUNC_CONVO_FIR (FMAC_PARAM_FUNC_3)

Convolution (FIR filter)

LL_FMAC_FUNC_IIR_DIRECT_FORM_1 (FMAC_PARAM_FUNC_3 | FMAC_PARAM_FUNC_0)

IIR filter (direct form 1)

FMAC processing

group FMAC_LL_EC_PROCESSING

Defines

LL_FMAC_PROCESSING_STOP 0x00U

Stop FMAC Processing

LL_FMAC_PROCESSING_START 0x01U

Start FMAC Processing