63extern void pwm_init(
const int pwm,
const uint32_t period);
116extern void pwm_set_steps(
const int pwm,
const uint32_t steps);
void pwm_init(const int pwm, const uint32_t period)
Initializes the PWM channel with the specified period.
uint32_t pwm_get_steps(const int pwm)
Get the number of steps a certain channel has taken so far.
void pwm_set_steps(const int pwm, const uint32_t steps)
Generates steps steps on the PWM channel.
void pwm_destroy(const int pwm)
Removes the instantiated shared memory system of the PWM channel.
uint32_t pwm_get_duty_cycle(const int pwm)
Gets the duty cycle of the specified PWM channel.
pwm_index_t
Enum of PWM channels.
void pwm_set_duty_cycle(const int pwm, const uint32_t duty)
Sets the duty cycle for the specified PWM channel.
bool pwm_initialized(const int pwm)
Checks if the channel index is initialized.
void pwm_set_period(const int pwm, const uint32_t period)
Sets the period for the specified PWM channel.
uint32_t pwm_get_period(const int pwm)
Returns the period of a certain PWM channel.