servo2go class

Declared:

#include <DML_servo2go.h>    

Derived From:

none

Description

The servo2go class (which really should be re-named servo2go for consistency) is a hardware driver class which is designed to interface with the servo2go card. The class which shipped with the card didn't work (didn't compile right), so we had to write our own. It provides class member functions to simply the unfriendly port I/O which is necessary to use the board.

Public Class Members

Public member data:

none  

Public member functions:

servo2go( off_t )
virtual ~servo2go()
init()
zeroAll()
int setIrq( int )
enableInterrupt( intSrc )
disableInterrupt( intSrc )
int setTimerPeriod( off_t, unsigned long )
setDigitalDirections( int, int, int, int, int )
digitalOut( off_t, BYTE )
digitalOutCBit( int, int )
BYTE digitalIn( off_t )
virtual DAC( off_t, float )
toggleDACport( off_t, float )
float readADC( off_t )
startSingleADConversion( off_t )
int checkEOCflag();
float readADCpoll( off_t )
setADCautoZero( int )
initEncoders( int )
zeroEncoders( byteMask )
latchEncoders()
long readEnc( int )
readEnc2( int which, long [2] )
  

See Also:

inp, outp

 

Class Member Functions

I'm going to let Weston do this file... since he's busily re-writing it to work with the specifics of DEXTER anyway.