20 #define DPRAM_TIMEOUT 100
106 unsigned char driveStatusToBit(
unsigned int driveStatus);
125 RegMapBlock* hostRead_;
131 RegMapBlock* pmacWrite_;
139 RegMapBlock* newPosition_;
146 RegMapBlock* positionFault_;
164 RegMapBlock* newMode_;
184 RegMapBlock* newAzRate_;
189 RegMapBlock* newElRate_;
194 RegMapBlock* newDkRate_;
215 RegMapBlock* driveStatus_;
216 RegMapBlock* statusMask_;
221 unsigned long dpramSize_;
226 unsigned long dpramBaseAddr_;
231 unsigned long dpramCmdSize_;
236 unsigned long dpramCmdBaseAddr_;
242 std::vector<unsigned char> dpramWork_;
247 void computeDpramStats();
252 unsigned int* readoutDpram();
257 void readReg(RegMapBlock* blk,
unsigned int first,
258 unsigned int nreg,
unsigned int* value);
263 void writeReg(RegMapBlock* blk,
unsigned int first,
264 unsigned int nreg,
unsigned int* value);
269 void writeRegToWork(RegMapBlock *blk,
270 unsigned int first,
unsigned int nreg,
271 unsigned int *value);
281 void initializePmac();
289 #endif // End #ifndef
The AxisPositions class is used by the Tracker class to record the positions of the telescope axes...
PmacBoard(SzaShare *share, std::string name, bool simPmac=false)
Constructor function for this board.
Tagged: Thu Nov 13 16:53:41 UTC 2003.
Tagged: Thu Nov 13 16:53:54 UTC 2003.
Encapsulate the pointing model parameters.
bool isBusyOld()
Returns true if the Pmac isn't ready to receive a new command.
void commandNewPosition(PmacTarget *pmac)
Tell the PMAC to read a new position.
bool readPosition(AxisPositions *axes, Model *model)
Read the pmac monitor data to update our view of where the telescope axes are currently positioned...
unsigned int readPositionFault()
Return the current value of the PMAC position-fault flag.
void disconnect()
Public interface to PmacComms::disconnect() to connect to the pmac.
~PmacBoard()
Destructor function for this board.
bool pmacIsConnected()
Return true if the pmac is connected.
Tagged: Thu Nov 13 16:53:33 UTC 2003.
Tagged: Thu Nov 13 16:53:44 UTC 2003.
Encapsulate details about the registers of the pmac board.
A class which encapsulates resources of a board of the shared register map.
void mirrorDpramToSharedMemory()
Mirror the DPRAM to shared memory.
bool connect()
Public interface to PmacComms::connect() to connect to the pmac.
Tagged: Thu Nov 13 16:53:46 UTC 2003.
Tagged: Thu Nov 13 16:53:34 UTC 2003.
An instance of this class is created by AntennaMaster and passed to the constructors of other tasks...