13 #include "carma/szaarrayutils/regmap.h"
17 #define PMAC_HOST_ADDR "192.6.94.5"
18 #define PMAC_HOST_PORT 1025
25 #define PMAC_TIMEOUT_USEC 600000
40 PmacComms(SzaShare* share);
58 bool connect(std::string host);
68 bool pmacIsConnected();
73 void sendCommand(PmacCommand& command);
80 void readResponse(PmacCommand& command);
92 void readReg(RegMapBlock *blk,
93 unsigned int first,
unsigned int nreg,
99 void writeReg(RegMapBlock *blk,
100 unsigned int first,
unsigned int nreg,
101 unsigned int *value);
106 void* getMem(
unsigned short offset,
unsigned short length);
111 void* setMem(
unsigned short offset,
unsigned short length,
112 unsigned char* data);
117 std::string getIpAddress();
122 void setIpAddress(std::string ipAddress);
124 unsigned int ipStringToInt(std::string addr);
125 std::string ipIntToString(
unsigned int);
158 PmacCommand command_;
163 bool responsePending_;
180 void registerReadFd(
int fd);
186 int waitForNextMessage();
191 int waitForResponse();
200 void* getResponse(PmacCommand& command);
208 #endif // End #ifndef
Tagged: Thu Nov 13 16:53:43 UTC 2003.