AIC_ENCODER Class Reference
[AIC Host Interface]

#include <aic.h>

Collaboration diagram for AIC_ENCODER:

Collaboration graph
[legend]
List of all members.

Detailed Description

Provides access to incremental encoder in an Actuator Interface Card.

Author:
Walter Fetter Lages (w.fetter@ieee.org)
Version:
AIC-1.3.0


Public Member Functions

 AIC_ENCODER (AIC_COMM *comm)
 Initializes encoder, clears the counter on the quadrature decoder chip.

double read (void)
 Reads the displacement of encoder in radians.

double read (int *index)
 Reads the displacement of encoder in radians and the status of the sync-switch.


Constructor & Destructor Documentation

AIC_ENCODER::AIC_ENCODER AIC_COMM comm  ) 
 

Initializes encoder, clears the counter on the quadrature decoder chip.

Parameters:
comm pointer to AIC_COMM object implementing the communication channel


Member Function Documentation

double AIC_ENCODER::read int *  index  ) 
 

Reads the displacement of encoder in radians and the status of the sync-switch.

Parameters:
index pointer to an int where the sync-switch status is returned
Returns:
the displacement in radians since the last time the encoder was read

double AIC_ENCODER::read void   ) 
 

Reads the displacement of encoder in radians.

Returns:
the displacement in radians since the last time the encoder was read


The documentation for this class was generated from the following file:
Generated on Thu Mar 27 15:33:35 2008 for Actuator Interface Card by doxygen 1.3.6