Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# servo.h File Reference

## Detailed Description

Definition in file servo.h.

`#include "global.h"`
`#include "timer.h"`
`#include "servoconf.h"`

Go to the source code of this file.

## Typedefs
typedef struct_ServoChannel | ServoChannelType
## Functions
void | servoInit (void)
| initializes software PWM system
void | servoOff (void)
| turns off software PWM system
void | servoSetChannelIO (u08 channel, u08 port, u08 pin)
| set port and I/O pin for channel
void | servoSetPosition (u08 channel, u08 position)
| set servo position on channel
u08 | servoGetPosition (u08 channel)
| get servo position on channel
void | servoSetPositionRaw (u08 channel, u16 position)
| set servo position on channel (raw unscaled format)
u16 | servoGetPositionRaw (u08 channel)
| get servo position on channel (raw unscaled format)
void | servoService (void)