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

Data Structures

struct  asrc_itf_data_s
 

Functions

void __pi_asrc_conf_init (struct pi_asrc_conf *conf)
 Init asrc configuration structure. More...
 
int32_t __pi_asrc_open (struct pi_asrc_conf *conf, struct asrc_itf_data_s **device_data)
 Open asrc device. More...
 
void __pi_asrc_close (struct asrc_itf_data_s *itf_data)
 Close asrc device. More...
 
int32_t __pi_asrc_convert_async (struct asrc_itf_data_s *itf_data, void *src, void *dst, pi_task_t *task)
 Convert sample rate. More...
 

Function Documentation

void __pi_asrc_close ( struct asrc_itf_data_s itf_data)
void __pi_asrc_conf_init ( struct pi_asrc_conf *  conf)
Parameters
confPointer to asrc conf.

Referenced by pi_asrc_conf_init().

int32_t __pi_asrc_convert_async ( struct asrc_itf_data_s itf_data,
void *  src,
void *  dst,
pi_task_t task 
)
Parameters
itf_dataPointer to driver data.
srcStream data source.
dstStream data dest.
taskPointer to struct pi_task.

References __pi_asrc_conversion_start(), pi_task_t::data, disable_irq(), asrc_itf_data_s::fifo_head, asrc_itf_data_s::fifo_tail, pi_task_t::next, and restore_irq().

Referenced by pi_asrc_convert_async().

int32_t __pi_asrc_open ( struct pi_asrc_conf *  conf,
struct asrc_itf_data_s **  device_data 
)