00001 #ifndef MY_LIST_OF_PRIM_FUNCTS
00002 #define MY_LIST_OF_PRIM_FUNCTS
00003
00004 #include "RodCrate/RodPrimList.h"
00005 #include "RodCrate/RodOutList.h"
00006
00007 void buildStream(SctPixelRod::RodPrimList *primList, unsigned short *cmd, unsigned long *data,
00008 int port, int reset, int chip, int fibre);
00009 void echoFile(SctPixelRod::RodPrimList *primList, const char *fileName);
00010 void echoPattern(SctPixelRod::RodPrimList *primList, int length, int pattern);
00011 void eventTrapSetup(SctPixelRod::RodPrimList *primList, EVENT_TRAP_SETUP_IN etsParams);
00012 void memoryTest(SctPixelRod::RodPrimList *primList, MEMORY_TEST_IN memParams);
00013 void pollReg(SctPixelRod::RodPrimList *primList, UINT32 address, int offset, int width, int value, int timeout);
00014 void readFifo(SctPixelRod::RodPrimList *primList, int fifoId, int bank, int count);
00015 void readReg(SctPixelRod::RodPrimList *primList, UINT32 address, int width, int offset);
00016 void readSlaveFile(SctPixelRod::RodPrimList *primList, int slaveNumber, UINT32 slaveAddress, int numWords, char* fileName);
00017 void rodMode(SctPixelRod::RodPrimList *primList,
00018 int mode, int flag, int fifoSetup, int delay, int evtsPerL1A, int message);
00019 void sendSlavePrimList(SctPixelRod::RodPrimList *primList, SctPixelRod::RodPrimList *slavePrimList,
00020 unsigned int slaveNumber);
00021 void sendStream(SctPixelRod::RodPrimList *primList, int port, int captureSerOn);
00022 void setMem(SctPixelRod::RodPrimList *primList, UINT32 start, int val, int size);
00023 void startEventTrap(SctPixelRod::RodPrimList *primList);
00024 void startSlave(SctPixelRod::RodPrimList *primList, int slaveNumber, int commOnOff, int slaveType, int timeout);
00025 void startSlaveList(SctPixelRod::RodPrimList *primList, int slaveNumber, int getSlaveReply, int pauseMasterList);
00026 void startTask(SctPixelRod::RodPrimList *primList, int type, int revision, int priority, int completion,
00027 int structLength, unsigned long *structData);
00028 void writeBuffer(SctPixelRod::RodPrimList *primList, int buffer, const char *data);
00029 void writeFifo(SctPixelRod::RodPrimList *primList, int fifoId, int bank, int count, UINT32 *data);
00030 void writeReg(SctPixelRod::RodPrimList *primList, UINT32 address, int width, int offset, int data);
00031 void writeSlaveFile(SctPixelRod::RodPrimList *primList, int slaveNumber, UINT32 slaveAddress, int numWords, UINT32* data);
00032
00033 bool echoFileOutput(SctPixelRod::RodOutList *outList, int offset, const char *fileName);
00034 bool echoPatternOutput(SctPixelRod::RodOutList *outList, int offset, int length, int pattern);
00035 bool eventTrapSetupOutput(SctPixelRod::RodOutList *outList, int offset);
00036 bool memoryTestOutput(SctPixelRod::RodOutList *outList, int offset);
00037 bool pollRegOutput(SctPixelRod::RodOutList *outList, int offset);
00038 bool readFifoOutput(SctPixelRod::RodOutList *outList, int offset, int id, int bank, int count, const char *outfilename);
00039 bool readRegOutput(SctPixelRod::RodOutList *outList, int offset, UINT32 address, int width, int offset);
00040 bool readRegOutput(SctPixelRod::RodOutList *outList, int offset, UINT32 address, int width, int offset, const char *fileName, int appendFile);
00041 bool readSlaveFileOutput(SctPixelRod::RodOutList *outList, int offset, const char *fileName);
00042 bool startSlaveOutput(SctPixelRod::RodOutList *outList, int offset, int slaveNumber);
00043
00044 #endif