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/RodRegisterBits.h

Go to the documentation of this file.
00001 //File: RodRegisterBits.h
00002 
00003 #ifndef SCTPIXELROD_RODREGISTERBITS_H 
00004 #define SCTPIXELROD_RODREGISTERBITS_H
00005 
00006 /*!
00007  *  RodRegisterBits.h is a wrapper around the testBench C code header file
00008  * comRegDfns.h. This wrapper adapts things to appear more like C++ and to
00009  * declare things const so the compiler can catch attempts to change them in the
00010  * code.
00011  *
00012  * When writing C++ code, use only the names in this file, not the names in the
00013  * C-code files it wraps.
00014  *
00015  * @author Tom Meyer (meyer@iastate.edu) - originator
00016  */
00017 
00018 namespace SctPixelRod {
00019 
00020 #include "../CommonWithDsp/processor.h"
00021 #include "../CommonWithDsp/comRegDfns.h"
00022 
00023 // Give aliases to the text buffer bits in the VmeCommand and Status registers
00024 
00025 // StatusRegister[0] bits
00026 
00027 const unsigned long OUTLIST_READY = SR_OUT_LIST_RDY;
00028 const unsigned long DSPACK = SR_DSP_ACK;
00029 
00030 const unsigned long TEXT_BUFF_NOT_EMPTY[4] = {
00031   SR_TXT_BUFF_NE(0),  // ERR Buffer
00032   SR_TXT_BUFF_NE(1),  // INFO Buffer
00033   SR_TXT_BUFF_NE(2),  // DIAG Buffer
00034   SR_TXT_BUFF_NE(3)   // XFER Buffer
00035 };
00036 
00037 const unsigned long SR_TEXT_BIT_MASK[4]  = {1<<SR_TXT_BUFF_NE(0),
00038             1<<SR_TXT_BUFF_NE(1), 1<<SR_TXT_BUFF_NE(2), 1<<SR_TXT_BUFF_NE(3)};
00039             
00040 const unsigned long SR_TEXT_MASK = SR_TEXT_BIT_MASK[0] | SR_TEXT_BIT_MASK[1] |
00041                                    SR_TEXT_BIT_MASK[2] | SR_TEXT_BIT_MASK[3];
00042 
00043 // VmeCommandRegister[0] bits
00044 
00045 const unsigned long INLISTRDY = CR_IN_LIST_RDY;
00046 
00047 const unsigned long TEXT_BUFF_READ_REQ[4] = {
00048   CR_TXT_BUFF_RR(0),  // ERR Buffer
00049   CR_TXT_BUFF_RR(1),  // INFO Buffer
00050   CR_TXT_BUFF_RR(2),  // DIAG Buffer
00051   CR_TXT_BUFF_RR(3)   // XFER Buffer
00052 };
00053 
00054 } //  End namespace SctPixelRod
00055 
00056 #endif // SCTPIXELROD_RODREGISTERBITS_H

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