Caddy
A 2005 Roborodentia entry with vision and path planning capability
 All Data Structures Files Functions Variables Typedefs Macros Pages
Data Structures | Macros | Typedefs | Functions
encoder.h File Reference

Quadrature Encoder reader/driver. More...

#include "global.h"
#include "encoderconf.h"
#include <stdint.h>
Include dependency graph for encoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  struct_EncoderState
 Encoder state structure. More...

Macros

#define IMSK   GIMSK

Typedefs

typedef struct struct_EncoderState EncoderStateType
 Encoder state structure.

Functions

void encoderInit (void)
 encoderInit() initializes hardware and encoder position readings
uint16_t encoderGetPosition (uint8_t encoderNum)
 encoderGetPosition() reads the current position of the encoder
void encoderSetPosition (uint8_t encoderNum, uint16_t position)
 encoderSetPosition() sets the current position of the encoder

Detailed Description

Quadrature Encoder reader/driver.

Definition in file encoder.h.