HPM SDK
HPMicro Software Development Kit
hpm_ffa_drv.c File Reference
#include "hpm_ffa_drv.h"
#include <assert.h>

Macros

#define FFA_ERROR_MASKS   (FFA_STATUS_FIR_OV_MASK | FFA_STATUS_FFT_OV_MASK | FFA_STATUS_WR_ERR_MASK | FFA_STATUS_RD_NXT_ERR_MASK | FFA_STATUS_RD_ERR_MASK)
 

Functions

static bool is_point_num_valid (uint16_t num_point)
 
static uint32_t get_fft_misc_reg_fft_len (uint16_t num_point)
 
static hpm_stat_t get_fft_error_kind (uint32_t ffa_status)
 
void ffa_start_fft (FFA_Type *ptr, fft_xfer_t *fft_xfer)
 Start an FFT operation. More...
 
void ffa_start_fir (FFA_Type *ptr, fir_xfer_t *fir_xfer)
 Start an FIR operation. More...
 
hpm_stat_t ffa_calculate_fft_blocking (FFA_Type *ptr, fft_xfer_t *fft_xfer)
 Perform FFT transformation in blocking mode. More...
 
hpm_stat_t ffa_calculate_fir_blocking (FFA_Type *ptr, fir_xfer_t *fir_xfer)
 Perform FIR transform in blocking mode. More...
 

Macro Definition Documentation

◆ FFA_ERROR_MASKS

Function Documentation

◆ get_fft_error_kind()

static hpm_stat_t get_fft_error_kind ( uint32_t  ffa_status)
static

◆ get_fft_misc_reg_fft_len()

static uint32_t get_fft_misc_reg_fft_len ( uint16_t  num_point)
static

◆ is_point_num_valid()

static bool is_point_num_valid ( uint16_t  num_point)
static