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

Data Structures

struct  pwm_t
 
union  pwm_cmd_t
 
union  pwm_config_t
 
union  pwm_threshold_t
 
union  pwm_ch_threshold_t
 
union  pwm_ch_lut_t
 
union  pwm_counter_t
 

Macros

CMD
#define PWM_CMD_START_MASK
 
#define PWM_CMD_START_SHIFT
 
#define PWM_CMD_START(val)
 
#define PWM_CMD_STOP_MASK
 
#define PWM_CMD_STOP_SHIFT
 
#define PWM_CMD_STOP(val)
 
#define PWM_CMD_UPDATE_MASK
 
#define PWM_CMD_UPDATE_SHIFT
 
#define PWM_CMD_UPDATE(val)
 
#define PWM_CMD_RESET_MASK
 
#define PWM_CMD_RESET_SHIFT
 
#define PWM_CMD_RESET(val)
 
#define PWM_CMD_ARM_MASK
 
#define PWM_CMD_ARM_SHIFT
 
#define PWM_CMD_ARM(val)
 
CONFIG
#define PWM_CONFIG_INSEL_MASK
 
#define PWM_CONFIG_INSEL_SHIFT
 
#define PWM_CONFIG_INSEL(val)
 
#define PWM_CONFIG_MODE_MASK
 
#define PWM_CONFIG_MODE_SHIFT
 
#define PWM_CONFIG_MODE(val)
 
#define PWM_CONFIG_CLKSEL_MASK
 
#define PWM_CONFIG_CLKSEL_SHIFT
 
#define PWM_CONFIG_CLKSEL(val)
 
#define PWM_CONFIG_UPDOWNSEL_MASK
 
#define PWM_CONFIG_UPDOWNSEL_SHIFT
 
#define PWM_CONFIG_UPDOWNSEL(val)
 
#define PWM_CONFIG_PRESC_MASK
 
#define PWM_CONFIG_PRESC_SHIFT
 
#define PWM_CONFIG_PRESC(val)
 
THRESHOLD
#define PWM_THRESHOLD_TH_LO_MASK
 
#define PWM_THRESHOLD_TH_LO_SHIFT
 
#define PWM_THRESHOLD_TH_LO(val)
 
#define PWM_THRESHOLD_TH_HI_MASK
 
#define PWM_THRESHOLD_TH_HI_SHIFT
 
#define PWM_THRESHOLD_TH_HI(val)
 
CH_THRESHOLD
#define PWM_CH_THRESHOLD_TH_MASK
 
#define PWM_CH_THRESHOLD_TH_SHIFT
 
#define PWM_CH_THRESHOLD_TH(val)
 
#define PWM_CH_THRESHOLD_MODE_MASK
 
#define PWM_CH_THRESHOLD_MODE_SHIFT
 
#define PWM_CH_THRESHOLD_MODE(val)
 

Macro Definition Documentation

#define PWM_CH_THRESHOLD_MODE (   val)
#define PWM_CH_THRESHOLD_MODE_MASK
#define PWM_CH_THRESHOLD_MODE_SHIFT
#define PWM_CH_THRESHOLD_TH (   val)
#define PWM_CH_THRESHOLD_TH_MASK

Referenced by hal_pwm_channel_th_set().

#define PWM_CH_THRESHOLD_TH_SHIFT
#define PWM_CMD_ARM (   val)
#define PWM_CMD_ARM_MASK
#define PWM_CMD_ARM_SHIFT
#define PWM_CMD_RESET (   val)
#define PWM_CMD_RESET_MASK
#define PWM_CMD_RESET_SHIFT
#define PWM_CMD_START (   val)
#define PWM_CMD_START_MASK
#define PWM_CMD_START_SHIFT
#define PWM_CMD_STOP (   val)
#define PWM_CMD_STOP_MASK
#define PWM_CMD_STOP_SHIFT
#define PWM_CMD_UPDATE (   val)
#define PWM_CMD_UPDATE_MASK
#define PWM_CMD_UPDATE_SHIFT
#define PWM_CONFIG_CLKSEL (   val)
#define PWM_CONFIG_CLKSEL_MASK
#define PWM_CONFIG_CLKSEL_SHIFT
#define PWM_CONFIG_INSEL (   val)
#define PWM_CONFIG_INSEL_MASK
#define PWM_CONFIG_INSEL_SHIFT
#define PWM_CONFIG_MODE (   val)
#define PWM_CONFIG_MODE_MASK

Referenced by hal_pwm_config_mode_set().

#define PWM_CONFIG_MODE_SHIFT
#define PWM_CONFIG_PRESC (   val)
#define PWM_CONFIG_PRESC_MASK
#define PWM_CONFIG_PRESC_SHIFT
#define PWM_CONFIG_UPDOWNSEL (   val)
#define PWM_CONFIG_UPDOWNSEL_MASK
#define PWM_CONFIG_UPDOWNSEL_SHIFT
#define PWM_THRESHOLD_TH_HI (   val)

Referenced by hal_pwm_threshold_set().

#define PWM_THRESHOLD_TH_HI_MASK
#define PWM_THRESHOLD_TH_HI_SHIFT
#define PWM_THRESHOLD_TH_LO (   val)

Referenced by hal_pwm_threshold_set().

#define PWM_THRESHOLD_TH_LO_MASK
#define PWM_THRESHOLD_TH_LO_SHIFT