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

encoder.c File Reference


Detailed Description

Definition in file encoder.c.

#include <avr/io.h>
#include <avr/signal.h>
#include <avr/interrupt.h>
#include "global.h"
#include "encoder.h"

Go to the source code of this file.

Functions

void encoderInit (void)
 encoderInit() initializes hardware and encoder position readings
void encoderOff (void)
 encoderOff() disables hardware and stops encoder position updates
s32 encoderGetPosition (u08 encoderNum)
 encoderGetPosition() reads the current position of the encoder
void encoderSetPosition (u08 encoderNum, s32 position)
 encoderSetPosition() sets the current position of the encoder

Variables

volatile EncoderStateType EncoderState [NUM_ENCODERS]


Generated on Tue Sep 20 03:11:44 2005 for Procyon AVRlib by  doxygen 1.4.2