the channel the servo is connected to
Low-level PWM peripheral driver interface definitions.
the PWM device driving the servo
Descriptor struct for a servo.
unsigned int max
maximum pulse width, in us
unsigned int scale_den
timing scale factor, to adjust for an inexact PWM frequency, denominator
int servo_init(servo_t *dev, pwm_t pwm, int pwm_channel, unsigned int min, unsigned int max)
Initialize a servo motor by assigning it a PWM device and channel.
unsigned int scale_nom
timing scale factor, to adjust for an inexact PWM frequency, nominator
void servo_set(servo_t *dev, unsigned int pos)
Set the servo motor to a specified position.
unsigned int min
minimum pulse width, in us
unsigned int pwm_t
Default PWM type definition.