Descriptor struct for a servo. More...
#include <servo.h>
Data Fields | |
pwm_t | device |
the PWM device driving the servo | |
int | channel |
the channel the servo is connected to | |
unsigned int | min |
minimum pulse width, in us | |
unsigned int | max |
maximum pulse width, in us | |
unsigned int | scale_nom |
timing scale factor, to adjust for an inexact PWM frequency, nominator | |
unsigned int | scale_den |
timing scale factor, to adjust for an inexact PWM frequency, denominator | |