Go to the source code of this file.
Classes | |
struct | pwm_param |
Macros | |
#define | PWM_CHANNEL_NUM_MAX 8 |
Functions | |
void | pwm_init (uint32 period, uint32 *duty, uint32 pwm_channel_num, uint32(*pin_info_list)[3]) |
Initialize PWM function, including GPIO selection, period and duty cycle. More... | |
void | pwm_start (void) |
Starts PWM. More... | |
void | pwm_set_duty (uint32 duty, uint8 channel) |
Sets duty cycle of a PWM output. More... | |
uint32 | pwm_get_duty (uint8 channel) |
Get duty cycle of PWM output. More... | |
void | pwm_set_period (uint32 period) |
Set PWM period. More... | |
uint32 | pwm_get_period (void) |
Get PWM period. More... | |
uint32 | get_pwm_version (void) |
Get version information of PWM. More... | |
void | set_pwm_debug_en (uint8 print_en) |
Macro Definition Documentation
◆ PWM_CHANNEL_NUM_MAX
#define PWM_CHANNEL_NUM_MAX 8 |
Function Documentation
◆ set_pwm_debug_en()
void set_pwm_debug_en | ( | uint8 | print_en | ) |