riot_sys

Function pwm_set

Source
pub unsafe extern "C" fn pwm_set(dev: pwm_t, channel: u8, value: u16)
Expand description

@brief Set the duty-cycle for a given channel of the given PWM device

The duty-cycle is set in relation to the chosen resolution of the given device. If value > resolution, value is set to resolution.

@param[in] dev the PWM device to set @param[in] channel the channel of the given device to set @param[in] value the desired duty-cycle to set