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

servo.c File Reference


Detailed Description

Definition in file servo.c.

#include <avr/io.h>
#include "global.h"
#include "servo.h"

Go to the source code of this file.

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)

Variables

u16 ServoPosTics
u16 ServoPeriodTics
u08 ServoChannel
ServoChannelType ServoChannels [SERVO_NUM_CHANNELS]


Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by  doxygen 1.4.2