encoder_counter.c File Reference

#include "encoder_counter.h"
#include "coridium.h"
#include "cor_hwlib.h"
#include "cor_wrflash.h"
#include "string.h"
#include "printf.h"

Go to the source code of this file.

Functions

void setChipSelect (int cs_state)
void spiWrite (int bytes_to_write)
void spiRead (int bytes_to_read)
int initializeEncoderCounter (int cs_pin, int clock_pin, int mosi_pin, int miso_pin)
int getEncoderCounts ()
char getModeRegister0 ()
char getModeRegister1 ()
char getStatusRegister ()
char setModeRegister0 (char mode)
char setModeRegister1 (char mode)
int setCountRegister (int count)
int clearEncoderCounterCounts ()

Function Documentation

int clearEncoderCounterCounts (  ) 

Definition at line 170 of file encoder_counter.c.

int getEncoderCounts (  ) 

Definition at line 69 of file encoder_counter.c.

char getModeRegister0 (  ) 

Definition at line 87 of file encoder_counter.c.

char getModeRegister1 (  ) 

Definition at line 99 of file encoder_counter.c.

char getStatusRegister (  ) 

Definition at line 111 of file encoder_counter.c.

int initializeEncoderCounter ( int  cs_pin,
int  clock_pin,
int  mosi_pin,
int  miso_pin 
)

Definition at line 29 of file encoder_counter.c.

void setChipSelect ( int  cs_state  ) 

Definition at line 195 of file encoder_counter.c.

int setCountRegister ( int  count  ) 

Definition at line 147 of file encoder_counter.c.

char setModeRegister0 ( char  mode  ) 

Definition at line 123 of file encoder_counter.c.

char setModeRegister1 ( char  mode  ) 

Definition at line 135 of file encoder_counter.c.

void spiRead ( int  bytes_to_read  ) 

Definition at line 181 of file encoder_counter.c.

void spiWrite ( int  bytes_to_write  ) 

Definition at line 188 of file encoder_counter.c.

Generated on Sun Nov 7 03:32:29 2010 for navigation_controller by  doxygen 1.6.3