#include "global.h"
#include "timer.h"
#include "servoconf.h"
Go to the source code of this file.
Data Structures | |
| struct | struct_ServoChannel |
Defines | |
| #define | SERVO_NUM_CHANNELS 4 |
| #define | SERVO_DEFAULT_PORT PORTB |
| #define | SERVO_MAX 71 |
| #define | SERVO_MIN 17 |
| #define | POSITION_MAX 255 |
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) |
Definition in file servo.h.
1.3-rc2