24 #ifndef __RFLPC_PWM_H__
25 #define __RFLPC_PWM_H__
27 #ifdef RFLPC_CONFIG_ENABLE_PWM
30 #include "../pinconf.h"
void rflpc_pwm_double_edge(rflpc_pin_t pin, uint32_t high_edge, uint32_t low_edge)
Sets the pwm parameters to operate on double edge mode.
void rflpc_pwm_single_edge(rflpc_pin_t pin, uint32_t pulsewidth)
Sets the pwm parameters in single edge mode.
void rflpc_pwm_reset(void)
Resets pwm duty cycle (restart at the start of a period.
uint8_t rflpc_pin_t
Represents a pin.
int rflpc_pwm_init(rflpc_pin_t pin)
Inits the PWM peripheral for use with selected pin.
void rflpc_pwm_disable(rflpc_pin_t pin)
Disable the PWM output on the given pin.
void rflpc_pwm_enable(rflpc_pin_t pin)
Enable the PWM on the given pin (do not reset the timer, only enable PWM output)
void rflpc_pwm_stop(void)
Stops pwm duty cycle.
void rflpc_pwm_set_period(uint32_t period)
Sets the period in micro seconds.
void rflpc_pwm_start(void)
Starts pwm duty cycle.