FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ffc.c File Reference

Data Structures

struct  pi_ffc_data_t
 
struct  pi_ffc_itf_data_t
 

Functions

static uint32_t __ffc_compute_udma_lin_shift (uint8_t is_rx, pi_ffc_mode_e mode, pi_ffc_float_type_e fl_type, pi_ffc_fixed_type_e fp_type)
 
static void __ffc_drv_fifo_enqueue (pi_ffc_itf_data_t *itf_data, pi_task_t *pi_task)
 
static pi_task_t__ffc_drv_fifo_pop (pi_ffc_itf_data_t *itf_data)
 
static void __pi_ffc_conf_apply (pi_ffc_itf_data_t *itf_data)
 
static void __pi_ffc_conversion_start (pi_ffc_itf_data_t *itf_data)
 
static void __pi_ffc_null_handler (void *arg)
 
static void __pi_ffc_event_handler (void *arg)
 
void pi_ffc_conf_init (pi_ffc_conf_t *conf)
 
int pi_ffc_open (pi_device_t *device)
 
void pi_ffc_close (pi_device_t *device)
 
void pi_ffc_ioctl (pi_device_t *device, uint32_t cmd, void *arg)
 
void pi_ffc_convert (pi_device_t *device, void *src, void *dst, uint16_t size)
 
void pi_ffc_convert_async (pi_device_t *device, void *src, void *dst, uint16_t size, pi_task_t *task)
 

Variables

static pi_ffc_itf_data_tg_ffc_itf_data [UDMA_NB_FFC]
 

Function Documentation

static uint32_t __ffc_compute_udma_lin_shift ( uint8_t  is_rx,
pi_ffc_mode_e  mode,
pi_ffc_float_type_e  fl_type,
pi_ffc_fixed_type_e  fp_type 
)
inlinestatic
static void __ffc_drv_fifo_enqueue ( pi_ffc_itf_data_t itf_data,
pi_task_t pi_task 
)
inlinestatic
static pi_task_t* __ffc_drv_fifo_pop ( pi_ffc_itf_data_t itf_data)
inlinestatic
static void __pi_ffc_null_handler ( void *  arg)
static

Referenced by pi_ffc_open().

void pi_ffc_conf_init ( pi_ffc_conf_t *  conf)
void pi_ffc_convert ( pi_device_t *  device,
void *  src,
void *  dst,
uint16_t  size 
)
void pi_ffc_convert_async ( pi_device_t *  device,
void *  src,
void *  dst,
uint16_t  size,
pi_task_t task 
)
void pi_ffc_ioctl ( pi_device_t *  device,
uint32_t  cmd,
void *  arg 
)

Variable Documentation

pi_ffc_itf_data_t* g_ffc_itf_data[UDMA_NB_FFC]
static