Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

commRegs.h

00001 #if (!defined(SIM))
00002 #ifndef COMMREGS_H   /* multiple inclusion protection */
00003 #define COMMREGS_H
00004 #include "accessSlave.h"
00005 
00006 //Inlined SDSP communication routines:
00007 
00008 uint32 getSdspRegI(UINT32 sdsp, UINT32 addr) {
00009     writeSlvHPIA(sdsp, addr);
00010     return readSlvHPID(sdsp);
00011 }
00012 
00013 uint32 getSdspRegI2(UINT32 sdsp, UINT32 addr) {
00014     writeSdspHpia(sdsp, addr); //inlined.
00015     return readSdspHpid(sdsp); //inlined
00016 }
00017 
00018 uint32 getSdspRegI3(UINT32 sdsp, UINT32 addr) {
00019     *((UINT32 *) (SDSP_HPIA(sdsp)))= addr;
00020     waitArdy;
00021 
00022     return *((UINT32 *) (SDSP_HPID(sdsp)));
00023 }
00024 
00025 #endif   /* Multiple inclusion protection */
00026 #endif

Generated on Thu Dec 22 20:16:58 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5