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

Data Structures

struct  pwm_data_s
 

Macros

#define PI_PWM_TIMER_ID_SHIFT
 
#define PI_PWM_TIMER_ID_MASK
 
#define PI_PWM_TIMER_ID(data)
 
#define PI_PWM_CHANNEL_ID_SHIFT
 
#define PI_PWM_CHANNEL_ID_MASK
 
#define PI_PWM_CHANNEL_ID(data)
 

Functions

void __pi_pwm_conf_init (struct pi_pwm_conf *conf)
 
int32_t __pi_pwm_open (struct pi_pwm_conf *conf, uint32_t **device_data)
 
void __pi_pwm_close (uint32_t pwm_ch)
 
int32_t __pi_pwm_ioctl (uint32_t pwm_ch, pi_pwm_ioctl_cmd_e cmd, void *arg)
 
uint32_t __pi_pwm_counter_get (uint32_t pwm_ch)
 
int32_t __pi_pwm_duty_cycle_set (uint32_t pwm_ch, uint32_t pwm_freq, uint8_t duty_cycle)
 
static void pi_pwm_timer_start (struct pi_device *device)
 
static void pi_pwm_timer_stop (struct pi_device *device)
 

Macro Definition Documentation

#define PI_PWM_CHANNEL_ID (   data)
#define PI_PWM_CHANNEL_ID_MASK
#define PI_PWM_CHANNEL_ID_SHIFT

Referenced by __pi_pwm_open().

#define PI_PWM_TIMER_ID_MASK
#define PI_PWM_TIMER_ID_SHIFT

Referenced by __pi_pwm_open().

Function Documentation

void __pi_pwm_close ( uint32_t  pwm_ch)
void __pi_pwm_conf_init ( struct pi_pwm_conf *  conf)
uint32_t __pi_pwm_counter_get ( uint32_t  pwm_ch)
int32_t __pi_pwm_duty_cycle_set ( uint32_t  pwm_ch,
uint32_t  pwm_freq,
uint8_t  duty_cycle 
)
int32_t __pi_pwm_ioctl ( uint32_t  pwm_ch,
pi_pwm_ioctl_cmd_e  cmd,
void *  arg 
)
int32_t __pi_pwm_open ( struct pi_pwm_conf *  conf,
uint32_t **  device_data 
)
static void pi_pwm_timer_start ( struct pi_device *  device)
inlinestatic

References __pi_pwm_ioctl().

static void pi_pwm_timer_stop ( struct pi_device *  device)
inlinestatic

References __pi_pwm_ioctl().