EncoderSSI_apci1710_board Class Reference

An EncoderSSI_apci1710_board is a 'data-refresh' class for an apci1710 board with 1 or more modules configured as SSI encoder inputs. More...

#include <EncoderSSIapci1710.hpp>

List of all members.

Public Member Functions

 EncoderSSI_apci1710_board (unsigned int mNr1)
 EncoderSSI_apci1710_board (unsigned int mNr1, unsigned int mNr2)
 EncoderSSI_apci1710_board (unsigned int mNr1, unsigned int mNr2, unsigned int mNr3)
 EncoderSSI_apci1710_board (unsigned int mNr1, unsigned int mNr2, unsigned int mNr3, unsigned int mNr4)
unsigned int read (unsigned int encNr)

Protected Member Functions

virtual void step ()
void readCard (unsigned int *)
void switchBuffers ()

Protected Attributes

unsigned int nr_of_modules
unsigned int moduleNr1
unsigned int moduleNr2
unsigned int moduleNr3
unsigned int moduleNr4
void * dev
unsigned int * readbuffer
unsigned int * writebuffer
unsigned int * buffer1
unsigned int * buffer2
OS::Mutex readLock

Detailed Description

An EncoderSSI_apci1710_board is a 'data-refresh' class for an apci1710 board with 1 or more modules configured as SSI encoder inputs.

Maximum nr of SSI modules is 4, since there are 4 modules on an apci1710.

It is a data-refresh class, since it reads new encoder data periodically from the SSI modules and stores it into a local buffer.

unsigned int read( unsigned int encNr ) returns the encoder ticks of encoder encNr.

Since there are 3 encoders pro SSI module, encNr is: 1, 2 or 3 for the encoders of module <mNr1>;

and, if available: 4, 5 or 6 for the encoders of module <mNr2>; 7, 8 or 9 for the encoders of module <mNr3>; 10, 11 or 12 for the encoders of module <mNr4>;

: It probably doesn't work when there are multiple apci1710's. The 'dirty' bits above bit 21 is probably related to our SSI encoders and probably has nothing to do with the apci1710 card. Dependency on CoreLib_Tasks Dependency on Device_Interface package Dependency on apci1710 package

Definition at line 62 of file EncoderSSIapci1710.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 15:05:29 2010 for OrocosComponentLibrary by  doxygen 1.6.3