Main Page | Modules | Data Structures | File List | Data Fields | Globals

fqd.h File Reference

FQD TPU functions. More...

#include <68332/types.h>
#include <68332/tpu.h>

Go to the source code of this file.

Functions

int16 fqd (TPUChannel *primaryChannel, TPUChannel *secondaryChannel)


Detailed Description

This file contains the global function prototypes and data structures for the Fast Quadrature Decoder (FQD) functionality of the libtpu library.

To use the functions defined in this file, include <68332/fqd.h> and link libtpu.a.


Function Documentation

int16 fqd TPUChannel primaryChannel,
TPUChannel secondaryChannel
 

Reads the signed 16-bit integer representing the current encoder count. The first call to this function initializes the two channels for quadrature decoding using FQD.

Parameters:
primaryChannel Pointer to first TPUChannel returned from tpu_request_channel().
secondaryChannel Pointer to second TPUChannel returned from tpu_request_channel().
Returns:
Quadrature decoder output count.
Note: The secondaryChannel must be the next higher TPU channel adjacent to the primaryChannel.


Generated on Wed Sep 6 03:02:22 2006 for MotoRobots by doxygen 1.3.6