Main Page   Modules   Data Structures   File List   Data Fields   Globals  

servo.c File Reference

Interrupt-driven RC Servo function library. More...

#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]


Detailed Description

Interrupt-driven RC Servo function library.

Definition in file servo.c.


Generated on Sun Feb 22 19:12:32 2004 for Procyon AVRlib by doxygen1.3-rc2