FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/include/pmsis/implem/hal/udma/udma_i2s.h File Reference

Functions

static void i2s_udma_channel_set (uint32_t device_id, udma_channel_e channel, uint32_t l2buf, uint32_t size, uint32_t cfg)
 
static void i2s_udma_clear (uint32_t device_id, udma_channel_e channel)
 
static void i2s_ext_clk_set (uint32_t device_id, uint32_t ext_clk)
 
static uint32_t i2s_ext_clk_get (uint32_t device_id)
 
static void i2s_cfg_clkgen0_set (uint32_t device_id, uint32_t cfg_clkgen0)
 
static uint32_t i2s_cfg_clkgen0_get (uint32_t device_id)
 
static void i2s_cfg_clkgen1_set (uint32_t device_id, uint32_t cfg_clkgen1)
 
static uint32_t i2s_cfg_clkgen1_get (uint32_t device_id)
 
static void i2s_chmode_set (uint32_t device_id, uint32_t chmode)
 
static uint32_t i2s_chmode_get (uint32_t device_id)
 
static void i2s_filt_ch0_set (uint32_t device_id, uint32_t filt_ch0)
 
static uint32_t i2s_filt_ch0_get (uint32_t device_id)
 
static void i2s_filt_ch1_set (uint32_t device_id, uint32_t filt_ch1)
 
static uint32_t i2s_filt_ch1_get (uint32_t device_id)
 
static void hal_i2s_ext_clk_set (uint32_t device_id, uint16_t clk_len)
 
static void hal_i2s_cfg_clkgen0_word_len_set (uint32_t device_id, uint16_t word_len)
 
static void hal_i2s_cfg_clkgen0_clock_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_cfg_clkgen0_clk_div_set (uint32_t device_id, uint16_t clk_div)
 
static void hal_i2s_cfg_clkgen0_set (uint32_t device_id, uint16_t word_len, uint8_t enable, uint16_t clk_div)
 
static void hal_i2s_cfg_clkgen1_word_len_set (uint32_t device_id, uint16_t word_len)
 
static void hal_i2s_cfg_clkgen1_clock_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_cfg_clkgen1_clk_div_set (uint32_t device_id, uint16_t clk_div)
 
static void hal_i2s_cfg_clkgen1_set (uint32_t device_id, uint16_t word_len, uint8_t enable, uint16_t clk_div)
 
static void hal_i2s_chmode_ch0_lsb_set (uint32_t device_id, uint8_t lsb)
 
static void hal_i2s_chmode_ch0_pdm_filter_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_chmode_ch0_pdm_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_chmode_ch0_ddr_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_chmode_ch0_mode_set (uint32_t device_id, uint8_t mode)
 
static void hal_i2s_chmode_ch0_set (uint32_t device_id, uint8_t lsb, uint8_t pdm_filter_ena, uint8_t pdm_ena, uint8_t ddr_ena, uint8_t ch_mode)
 
static void hal_i2s_chmode_ch1_lsb_set (uint32_t device_id, uint8_t lsb)
 
static void hal_i2s_chmode_ch1_pdm_filter_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_chmode_ch1_pdm_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_chmode_ch1_ddr_enable (uint32_t device_id, uint8_t enable)
 
static void hal_i2s_chmode_ch1_mode_set (uint32_t device_id, uint8_t mode)
 
static void hal_i2s_chmode_ch1_set (uint32_t device_id, uint8_t lsb, uint8_t pdm_filter_ena, uint8_t pdm_ena, uint8_t ddr_ena, uint8_t ch_mode)
 
static void hal_i2s_filt_ch0_decimation_set (uint32_t device_id, uint16_t value)
 
static void hal_i2s_filt_ch0_shift_set (uint32_t device_id, uint8_t value)
 
static void hal_i2s_filt_ch0_set (uint32_t device_id, uint16_t decimation, uint8_t shift)
 
static void hal_i2s_filt_ch1_decimation_set (uint32_t device_id, uint16_t value)
 
static void hal_i2s_filt_ch1_shift_set (uint32_t device_id, uint8_t value)
 
static void hal_i2s_filt_ch1_set (uint32_t device_id, uint16_t decimation, uint8_t shift)
 
static void hal_i2s_enqueue (uint32_t device_id, udma_channel_e channel, uint32_t l2buf, uint32_t size, uint32_t cfg)
 
static void hal_i2s_clear (uint32_t device_id, udma_channel_e channel)
 

Function Documentation

static void hal_i2s_cfg_clkgen0_clk_div_set ( uint32_t  device_id,
uint16_t  clk_div 
)
inlinestatic
static void hal_i2s_cfg_clkgen0_clock_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_cfg_clkgen0_set ( uint32_t  device_id,
uint16_t  word_len,
uint8_t  enable,
uint16_t  clk_div 
)
inlinestatic
static void hal_i2s_cfg_clkgen0_word_len_set ( uint32_t  device_id,
uint16_t  word_len 
)
inlinestatic
static void hal_i2s_cfg_clkgen1_clk_div_set ( uint32_t  device_id,
uint16_t  clk_div 
)
inlinestatic
static void hal_i2s_cfg_clkgen1_clock_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_cfg_clkgen1_set ( uint32_t  device_id,
uint16_t  word_len,
uint8_t  enable,
uint16_t  clk_div 
)
inlinestatic
static void hal_i2s_cfg_clkgen1_word_len_set ( uint32_t  device_id,
uint16_t  word_len 
)
inlinestatic
static void hal_i2s_chmode_ch0_ddr_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_chmode_ch0_lsb_set ( uint32_t  device_id,
uint8_t  lsb 
)
inlinestatic
static void hal_i2s_chmode_ch0_mode_set ( uint32_t  device_id,
uint8_t  mode 
)
inlinestatic
static void hal_i2s_chmode_ch0_pdm_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_chmode_ch0_pdm_filter_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_chmode_ch0_set ( uint32_t  device_id,
uint8_t  lsb,
uint8_t  pdm_filter_ena,
uint8_t  pdm_ena,
uint8_t  ddr_ena,
uint8_t  ch_mode 
)
inlinestatic
static void hal_i2s_chmode_ch1_ddr_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_chmode_ch1_lsb_set ( uint32_t  device_id,
uint8_t  lsb 
)
inlinestatic
static void hal_i2s_chmode_ch1_mode_set ( uint32_t  device_id,
uint8_t  mode 
)
inlinestatic
static void hal_i2s_chmode_ch1_pdm_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_chmode_ch1_pdm_filter_enable ( uint32_t  device_id,
uint8_t  enable 
)
inlinestatic
static void hal_i2s_chmode_ch1_set ( uint32_t  device_id,
uint8_t  lsb,
uint8_t  pdm_filter_ena,
uint8_t  pdm_ena,
uint8_t  ddr_ena,
uint8_t  ch_mode 
)
inlinestatic
static void hal_i2s_clear ( uint32_t  device_id,
udma_channel_e  channel 
)
inlinestatic

References i2s_udma_clear().

Referenced by __pi_i2s_suspend().

static void hal_i2s_enqueue ( uint32_t  device_id,
udma_channel_e  channel,
uint32_t  l2buf,
uint32_t  size,
uint32_t  cfg 
)
inlinestatic

UDMA.

References i2s_udma_channel_set(), and UDMA_CORE_RX_CFG_EN.

Referenced by __pi_i2s_enqueue().

static void hal_i2s_ext_clk_set ( uint32_t  device_id,
uint16_t  clk_len 
)
inlinestatic

EXT_CLK.

References i2s_ext_clk_set().

Referenced by __pi_i2s_clock_enable().

static void hal_i2s_filt_ch0_decimation_set ( uint32_t  device_id,
uint16_t  value 
)
inlinestatic
static void hal_i2s_filt_ch0_set ( uint32_t  device_id,
uint16_t  decimation,
uint8_t  shift 
)
inlinestatic
static void hal_i2s_filt_ch0_shift_set ( uint32_t  device_id,
uint8_t  value 
)
inlinestatic
static void hal_i2s_filt_ch1_decimation_set ( uint32_t  device_id,
uint16_t  value 
)
inlinestatic
static void hal_i2s_filt_ch1_set ( uint32_t  device_id,
uint16_t  decimation,
uint8_t  shift 
)
inlinestatic
static void hal_i2s_filt_ch1_shift_set ( uint32_t  device_id,
uint8_t  value 
)
inlinestatic
static uint32_t i2s_cfg_clkgen0_get ( uint32_t  device_id)
inlinestatic
static void i2s_cfg_clkgen0_set ( uint32_t  device_id,
uint32_t  cfg_clkgen0 
)
inlinestatic
static uint32_t i2s_cfg_clkgen1_get ( uint32_t  device_id)
inlinestatic
static void i2s_cfg_clkgen1_set ( uint32_t  device_id,
uint32_t  cfg_clkgen1 
)
inlinestatic
static uint32_t i2s_ext_clk_get ( uint32_t  device_id)
inlinestatic

References hal_read32(), and i2s.

static void i2s_ext_clk_set ( uint32_t  device_id,
uint32_t  ext_clk 
)
inlinestatic

References hal_write32(), and i2s.

Referenced by hal_i2s_ext_clk_set().

static uint32_t i2s_filt_ch0_get ( uint32_t  device_id)
inlinestatic
static void i2s_filt_ch0_set ( uint32_t  device_id,
uint32_t  filt_ch0 
)
inlinestatic
static uint32_t i2s_filt_ch1_get ( uint32_t  device_id)
inlinestatic
static void i2s_filt_ch1_set ( uint32_t  device_id,
uint32_t  filt_ch1 
)
inlinestatic
static void i2s_udma_channel_set ( uint32_t  device_id,
udma_channel_e  channel,
uint32_t  l2buf,
uint32_t  size,
uint32_t  cfg 
)
inlinestatic

References i2s, and udma_enqueue_channel().

Referenced by hal_i2s_enqueue().

static void i2s_udma_clear ( uint32_t  device_id,
udma_channel_e  channel 
)
inlinestatic

References i2s, and udma_channel_clear().

Referenced by hal_i2s_clear().