TizenRT Public API
v2.0 M2
|
Iotbus APIs for PWM. More...
Go to the source code of this file.
Typedefs | |
typedef struct _iotbus_pwm_wrapper_s * | iotbus_pwm_context_h |
Pointer definition to the internal struct _iotbus_pwm_wrapper_s. More... | |
typedef uint8_t | percent_t |
Type of pwm duty cycle. More... | |
Enumerations |
Functions | |
iotbus_pwm_context_h | iotbus_pwm_open (int device, int channel) |
closes the pwm_context. More... | |
int | iotbus_pwm_close (iotbus_pwm_context_h pwm) |
closes the pwm_context. More... | |
int | iotbus_pwm_set_duty_cycle (iotbus_pwm_context_h pwm, percent_t duty_cycle) |
sets the pwm duty cycle. More... | |
int | iotbus_pwm_set_period (iotbus_pwm_context_h pwm, uint32_t period) |
sets the pwm period. More... | |
int | iotbus_pwm_set_enabled (iotbus_pwm_context_h pwm, iotbus_pwm_state_e enable) |
sets the pwm state. More... | |
int | iotbus_pwm_is_enabled (iotbus_pwm_context_h pwm) |
checks if pwm state is enabled. More... | |
int | iotbus_pwm_get_duty_cycle (iotbus_pwm_context_h pwm) |
gets the pwm duty cycle. More... | |
int | iotbus_pwm_get_period (iotbus_pwm_context_h pwm) |
gets the pwm period. More... | |
Iotbus APIs for PWM.
Definition in file iotbus_pwm.h.