|
Soletta™ Framework
|
PWM configuration struct. More...
#include <sol-pwm.h>
Data Fields | |
| enum sol_pwm_alignment | alignment |
| The PWM alignment. More... | |
| uint16_t | api_version |
| The API version. More... | |
| int32_t | duty_cycle_ns |
| The PWM duty cycle. More... | |
| bool | enabled |
Set to true to for enabled false for disabled. More... | |
| int32_t | period_ns |
| The PWM period. More... | |
| enum sol_pwm_polarity | polarity |
| The PWM polarity. More... | |
PWM configuration struct.
| enum sol_pwm_alignment sol_pwm_config::alignment |
The PWM alignment.
| uint16_t sol_pwm_config::api_version |
The API version.
| int32_t sol_pwm_config::duty_cycle_ns |
The PWM duty cycle.
If -1, the duty cycle is not set , but if period is set, the duty cycle is zeroed
| bool sol_pwm_config::enabled |
Set to true to for enabled false for disabled.
| int32_t sol_pwm_config::period_ns |
The PWM period.
If -1, the period is not set
| enum sol_pwm_polarity sol_pwm_config::polarity |
The PWM polarity.
1.8.6