Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_pwm_config Struct Reference

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...
 

Detailed Description

PWM configuration struct.

See Also
sol_pwm_open_by_label()
sol_pwm_open()
sol_pwm_open_raw()

Field Documentation

enum sol_pwm_alignment sol_pwm_config::alignment

The PWM alignment.

See Also
sol_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.

See Also
sol_pwm_polarity

The documentation for this struct was generated from the following file: