servo_t Struct Reference

Descriptor struct for a servo. More...

Detailed Description

Descriptor struct for a servo.

Definition at line 35 of file servo.h.

#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
 

The documentation for this struct was generated from the following file: