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/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 Sun Oct 29 03:41:08 2006 for Procyon AVRlib by  doxygen 1.4.2