|
Azure Sphere MT3620 M4 API Reference Manual
|
Used to store the PWM base address, group number, clock source, pwm channel common structure information. More...
#include <mhal_pwm.h>
Data Fields | |
| const void __iomem * | pwm_register |
| PWM controller register offset by channel. | |
| u32 | pwm_nums |
| PWM controller's channel number. | |
| u32 | index |
| PWM controller's channel index. | |
| pwm_differential_select | mode |
| Defines the PWM channel's differential mode. | |
| u32 | s0_stay_cycle |
| The stay cycles of S0. | |
| u32 | s1_stay_cycle |
| The stay cycles of S1. | |
| u8 | replay_mode |
| Enable replay mode or one shot mode. | |
| pwm_s0_s1_stages | stage |
| Select PWM S0 or S1 stage to configure. | |
| u32 | duty_cycle |
| PWM duty cycle,typical value(0~100) | |
| u32 | frequency |
| PWM output frequency. | |
| u32 | total_count |
| PWM total count calculator according to PWM frequency and clock. | |
| u32 | current_duty_cycle |
| PWM hardware current's output duty cycle,typical value(0~100) | |
| u32 | current_frequency |
| PWM hardware current's output frequency. | |
| u8 | global_kick_enable |
| PWM group global kick function. | |
| u8 | io_ctrl_sel |
| PWM IO ctrl function setting. | |
| u8 | polarity_set |
| PWM polarity setting. | |
| pwm_running_status | running_status |
| PWM in busy or idle status. | |
Used to store the PWM base address, group number, clock source, pwm channel common structure information.