Main Page   Modules   Data Structures   File List   Data Fields   Globals  

encoder.c File Reference

Quadrature Encoder reader/driver. More...

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


Detailed Description

Quadrature Encoder reader/driver.

Definition in file encoder.c.


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