Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

/var/pcce/usera/hill/rcc_1.2/RodDaq/RodCrate/RodStatus.h

Go to the documentation of this file.
00001 // File: RodStatus.h
00002 
00003 #ifndef SCTPIXELROD_RODSTATUS_H
00004 #define SCTPIXELROD_RODSTATUS_H
00005 
00006 #include "RodModule.h"
00007 
00008 namespace SctPixelRod {
00009 
00010 /*! 
00011  * @class RodStatus  
00012  *
00013  * @brief This is a class for ROD status reports.
00014  *
00015  * This class contains the status information for a ROD. For now it does very
00016  * little.
00017  *
00018  * @author Tom Meyer (meyer@iastate.edu) - originator
00019  */
00020 
00021 class RodStatus
00022 {
00023 public:
00024         RodStatus();                                     // Constructor
00025         RodStatus( const RodStatus& );                   // Copy constructor
00026         ~RodStatus();                                    // Destructor
00027         RodStatus& operator=( const RodStatus&);         //Overload = operator
00028         friend ostream& operator<<(ostream& os, RodModule& rod); //Overload << operator
00029 
00030         //! Accessor function to get slot number
00031         long getSlotNumber() const { return m_slotNumber; };
00032 
00033         //! Accessor function to get serial number
00034         long getSerialNumber() const { return m_serialNumber; };
00035         
00036         //! Accessor function to get number of slaves installed
00037         long getNumSlaves() const { return m_numSlaves; };
00038         
00039         //! Accessor function to get a status register.
00040         unsigned long getStatusReg(long regNumber) const {return
00041                       m_statusReg[regNumber]; };
00042 
00043         //! Accessor function to get a command register.
00044         unsigned long getCommandReg(long regNumber) const {return
00045                       m_commandReg[regNumber]; };
00046 
00047         //! Accessor function to get the Primitive state
00048         PrimState getPrimState() const {return m_primState;};
00049         
00050         //! Accessor function to get the Text state
00051         TextBuffState getTextState() const {return m_textState;};
00052         
00053                       
00054 // Methods
00055         void snapShot(RodModule& rod); 
00056               
00057 private:
00058     //! The ROD serial number. 
00059         unsigned long m_serialNumber;
00060     //! The ROD slot number
00061         unsigned long m_slotNumber;
00062     //! The number of slave DSPs installed
00063         unsigned long m_numSlaves;
00064     //! The status registers.
00065         unsigned long m_statusReg[3];
00066     //! The command registers.
00067         unsigned long m_commandReg[2];
00068     //! The state of the Primitive transfer operation
00069         PrimState m_primState;
00070     //! The state of the Text buffer transfer operation
00071         TextBuffState m_textState;
00072 
00073   };                                   // End of RodStatus declaration
00074 }; // End namespace SctPixelRod
00075 
00076 #endif  // SCTPIXELROD_RODSTATUS_H

Generated on Mon Mar 3 11:16:17 2003 for SCTPixelDAQ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001