15 #include "gcp/control/code/unix/libunix_src/common/regmap.h"
20 #define PMAC_DATA_MAX_LEN 1400
51 PMAC_GETBUFFER = 0xC5,
54 PMAC_GETRESPONSE = 0xBF,
56 PMAC_READREADY = 0xC2,
61 PMAC_WRITEBUFFER = 0xC6,
62 PMAC_WRITEERROR = 0xC7
66 unsigned char requestType_;
67 unsigned char request_;
68 unsigned short wValue_;
69 unsigned short wIndex_;
70 unsigned short wLength_;
75 unsigned char sendData_[PMAC_DATA_MAX_LEN];
128 unsigned short length);
175 unsigned short length,
176 unsigned char* data);
192 unsigned int first,
unsigned int nreg,
193 unsigned int* value);
199 unsigned int first,
unsigned int nreg);
221 unsigned int first,
unsigned int nreg,
222 unsigned int* response);
229 unsigned int first,
unsigned int nreg);
241 unsigned short cmdSize_;
246 bool expectsResponse_;
252 unsigned short responseLength_;
257 unsigned char readData_[PMAC_DATA_MAX_LEN];
263 unsigned char tmpBuffer_[PMAC_DATA_MAX_LEN];
288 const void* sendData();
296 #endif // End #ifndef
void packPmacGetResponseCmd(std::string outString)
Definition: PmacCommand.cc:171
void packPmacReadReadyCmd()
Definition: PmacCommand.cc:186
void packCtrlResponseCmd()
Definition: PmacCommand.cc:29
void packReadRegCmd(RegMapBlock *blk, unsigned int first, unsigned int nreg)
Definition: PmacCommand.cc:94
void packWriteRegCmd(RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value)
Definition: PmacCommand.cc:250
void packFwDownLoadCmd()
Definition: PmacCommand.cc:34
void packPmacSetMemCmd(unsigned short offset, unsigned short length, unsigned char *data)
Definition: PmacCommand.cc:218
Definition: PmacCommand.h:73
void readRegResponse(RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *response)
Definition: PmacCommand.cc:153
void packPmacPortCmd()
Definition: PmacCommand.cc:181
size_t responseLength()
Definition: PmacCommand.cc:347
void packIpAddress()
Definition: PmacCommand.cc:39
void * readData()
Definition: PmacCommand.cc:312
PmacCommand()
Definition: PmacCommand.cc:16
Definition: PmacCommand.h:29
Definition: PmacComms.h:33
Definition: PmacCommand.h:65
void packPmacFlushCmd()
Definition: PmacCommand.cc:49
RequestType
Definition: PmacCommand.h:35
void packPmacSetBitsCmd(unsigned int mask)
Definition: PmacCommand.cc:206
~PmacCommand()
Definition: PmacCommand.cc:24
void packPmacGetMemCmd(unsigned short offset, unsigned short length)
Definition: PmacCommand.cc:65
void packPmacWriteBufferCmd(unsigned int *data, unsigned int len)
Definition: PmacCommand.cc:297
void packPmacSendLineCmd(std::string line)
Definition: PmacCommand.cc:196
void packPmacGetBufferCmd()
Definition: PmacCommand.cc:55
void packPmacSetBitCmd(unsigned short bitNo, bool on)
Definition: PmacCommand.cc:201
void packPmacSendCtrlCharCmd(char outch)
Definition: PmacCommand.cc:191
void packPmacGetLineCmd()
Definition: PmacCommand.cc:60
Request
Definition: PmacCommand.h:43