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/pwm/pwm.h File Reference

Functions

static void pwm_cmd_set (uint8_t pwm_id, uint32_t cmd)
 
static uint32_t pwm_cmd_get (uint8_t pwm_id)
 
static void pwm_config_set (uint8_t pwm_id, uint32_t config)
 
static uint32_t pwm_config_get (uint8_t pwm_id)
 
static void pwm_threshold_set (uint8_t pwm_id, uint32_t threshold)
 
static uint32_t pwm_threshold_get (uint8_t pwm_id)
 
static void pwm_ch_threshold_set (uint8_t pwm_id, uint8_t ch_id, uint32_t ch_threshold)
 
static uint32_t pwm_ch_threshold_get (uint8_t pwm_id, uint8_t ch_id)
 
static uint32_t pwm_counter_get (uint8_t pwm_id)
 
static void hal_pwm_cmd_set (uint8_t pwm_id, uint16_t cmd)
 
static void hal_pwm_config_insel_set (uint8_t pwm_id, uint8_t insel)
 
static void hal_pwm_config_mode_set (uint8_t pwm_id, uint8_t mode)
 
static void hal_pwm_config_clksel_set (uint8_t pwm_id, uint8_t clksel)
 
static void hal_pwm_config_updown_set (uint8_t pwm_id, uint8_t updown)
 
static void hal_pwm_config_presc_set (uint8_t pwm_id, uint8_t presc)
 
static void hal_pwm_config_set (uint8_t pwm_id, uint8_t insel, uint8_t mode, uint8_t clksel, uint8_t updown, uint8_t prescaler)
 
static void hal_pwm_config_mask_set (uint8_t pwm_id, uint32_t mask)
 
static void hal_pwm_threshold_set (uint8_t pwm_id, uint16_t th_lo, uint16_t th_hi)
 
static uint32_t hal_pwm_threshold_get (uint8_t pwm_id)
 
static void hal_pwm_channel_th_set (uint8_t pwm_id, uint8_t ch_id, uint16_t threshold)
 
static void hal_pwm_channel_mode_set (uint8_t pwm_id, uint8_t ch_id, uint8_t mode)
 
static void hal_pwm_channel_th_mode_set (uint8_t pwm_id, uint8_t ch_id, uint16_t threshold, uint8_t mode)
 
static uint32_t hal_pwm_counter_get (uint8_t pwm_id)
 

Function Documentation

static void hal_pwm_channel_mode_set ( uint8_t  pwm_id,
uint8_t  ch_id,
uint8_t  mode 
)
inlinestatic
static void hal_pwm_channel_th_mode_set ( uint8_t  pwm_id,
uint8_t  ch_id,
uint16_t  threshold,
uint8_t  mode 
)
inlinestatic
static void hal_pwm_channel_th_set ( uint8_t  pwm_id,
uint8_t  ch_id,
uint16_t  threshold 
)
inlinestatic
static void hal_pwm_cmd_set ( uint8_t  pwm_id,
uint16_t  cmd 
)
inlinestatic

Cmd.

References pwm_cmd_set().

Referenced by __pi_pwm_command_set().

static void hal_pwm_config_clksel_set ( uint8_t  pwm_id,
uint8_t  clksel 
)
inlinestatic
static void hal_pwm_config_insel_set ( uint8_t  pwm_id,
uint8_t  insel 
)
inlinestatic
static void hal_pwm_config_mask_set ( uint8_t  pwm_id,
uint32_t  mask 
)
inlinestatic

References pwm_config_set().

Referenced by __pi_pwm_timer_conf_set().

static void hal_pwm_config_mode_set ( uint8_t  pwm_id,
uint8_t  mode 
)
inlinestatic
static void hal_pwm_config_presc_set ( uint8_t  pwm_id,
uint8_t  presc 
)
inlinestatic
static void hal_pwm_config_set ( uint8_t  pwm_id,
uint8_t  insel,
uint8_t  mode,
uint8_t  clksel,
uint8_t  updown,
uint8_t  prescaler 
)
inlinestatic
static void hal_pwm_config_updown_set ( uint8_t  pwm_id,
uint8_t  updown 
)
inlinestatic
static uint32_t hal_pwm_counter_get ( uint8_t  pwm_id)
inlinestatic

Counter.

References pwm_counter_get().

Referenced by __pi_pwm_counter_get().

static uint32_t hal_pwm_threshold_get ( uint8_t  pwm_id)
inlinestatic

References pwm_threshold_get().

Referenced by __pi_pwm_duty_cycle_set().

static void hal_pwm_threshold_set ( uint8_t  pwm_id,
uint16_t  th_lo,
uint16_t  th_hi 
)
inlinestatic
static uint32_t pwm_ch_threshold_get ( uint8_t  pwm_id,
uint8_t  ch_id 
)
inlinestatic
static void pwm_ch_threshold_set ( uint8_t  pwm_id,
uint8_t  ch_id,
uint32_t  ch_threshold 
)
inlinestatic
static uint32_t pwm_cmd_get ( uint8_t  pwm_id)
inlinestatic

References hal_read32(), and pwm.

static void pwm_cmd_set ( uint8_t  pwm_id,
uint32_t  cmd 
)
inlinestatic

References hal_write32(), and pwm.

Referenced by hal_pwm_cmd_set().

static uint32_t pwm_config_get ( uint8_t  pwm_id)
inlinestatic
static void pwm_config_set ( uint8_t  pwm_id,
uint32_t  config 
)
inlinestatic
static uint32_t pwm_counter_get ( uint8_t  pwm_id)
inlinestatic

References hal_read32(), and pwm.

Referenced by hal_pwm_counter_get().

static uint32_t pwm_threshold_get ( uint8_t  pwm_id)
inlinestatic

References hal_read32(), and pwm.

Referenced by hal_pwm_threshold_get().

static void pwm_threshold_set ( uint8_t  pwm_id,
uint32_t  threshold 
)
inlinestatic

References hal_write32(), and pwm.

Referenced by hal_pwm_threshold_set().