52 IOTBUS_PWM_DISABLE = 0,
int iotbus_pwm_set_duty_cycle(iotbus_pwm_context_h pwm, percent_t duty_cycle)
sets the pwm duty cycle.
struct _iotbus_pwm_wrapper_s * iotbus_pwm_context_h
Pointer definition to the internal struct _iotbus_pwm_wrapper_s.
int iotbus_pwm_is_enabled(iotbus_pwm_context_h pwm)
checks if pwm state is enabled.
int iotbus_pwm_set_period(iotbus_pwm_context_h pwm, uint32_t period)
sets the pwm period.
int iotbus_pwm_get_duty_cycle(iotbus_pwm_context_h pwm)
gets the pwm duty cycle.
iotbus_pwm_context_h iotbus_pwm_open(int device, int channel)
closes the pwm_context.
iotbus_pwm_state_e
Enumeration of PWM state.
int iotbus_pwm_close(iotbus_pwm_context_h pwm)
closes the pwm_context.
int iotbus_pwm_get_period(iotbus_pwm_context_h pwm)
gets the pwm period.
uint8_t percent_t
Type of pwm duty cycle.
int iotbus_pwm_set_enabled(iotbus_pwm_context_h pwm, iotbus_pwm_state_e enable)
sets the pwm state.