9 #ifndef PCO_STRUCTURES_H_ 10 #define PCO_STRUCTURES_H_ 21 #define CAMERATYPE_PCO1200HS 0x0100 22 #define CAMERATYPE_PCO1300 0x0200 23 #define CAMERATYPE_PCO1600 0x0220 24 #define CAMERATYPE_PCO2000 0x0240 25 #define CAMERATYPE_PCO4000 0x0260 64 ptr = (
unsigned short *)(
data +
addr);
76 ptr = (
unsigned char *)(
data +
addr);
112 ptr = (
unsigned long *)(
data +
addr);
162 codehi =
code & (255 * 256);
163 codehi = codehi / 256;
229 for (k = 0; k < len; k++) {
240 ptr = (
unsigned char *)(
data +
addr);
260 ptr = (
unsigned short *)(
data +
addr);
293 ptr = (
unsigned long *)(
data +
addr);
306 ptr = (
unsigned short *)(&
data[adx]);
318 ptr = (
short *)(&
data[adx]);
330 ptr = (
unsigned char *)(&
data[adx]);
341 ptr = (
unsigned long *)(&
data[adx]);
351 sprintf(strg,
"code: 0x%x length: %d cks: 0x%x verified cks: 0x%x \n",
392 int i, codelo, codehi;
399 codehi =
code & (255 * 256);
400 codehi = codehi / 256;
442 #define WORD unsigned short 443 #define DWORD unsigned long unsigned short getLen(void)
Definition: pco_structures.h:370
WORD wOffsetRegulationDESC
Definition: pco_structures.h:490
WORD wSize
Definition: pco_structures.h:452
WORD wIRDESC
Definition: pco_structures.h:472
unsigned char getUChar(int adx)
Definition: pco_structures.h:327
unsigned short code
Definition: pco_structures.h:135
unsigned char * getData(void)
Definition: pco_structures.h:359
WORD wMaxVertResExtDESC
Definition: pco_structures.h:458
SHORT sMaxCoolSetDESC
Definition: pco_structures.h:487
int i
Definition: makeAdl.py:479
unsigned short * length
Definition: pco_structures.h:141
DWORD dwMaxDelayIRDESC
Definition: pco_structures.h:481
WORD wMaxVertResStdDESC
Definition: pco_structures.h:456
unsigned char * getData2(void)
Definition: pco_structures.h:365
void addUChar(unsigned char *msg, int len)
Definition: pco_structures.h:249
pco_response()
Definition: pco_structures.h:187
void setLength(unsigned short lx)
Definition: pco_structures.h:217
void addLong(long msg)
Definition: pco_structures.h:280
DWORD dwMinExposureStepDESC
Definition: pco_structures.h:479
int totalsum
Definition: pco_structures.h:438
unsigned short getCode(void)
Definition: pco_structures.h:135
unsigned short getExpCode(void)
Definition: pco_structures.h:380
void setCode(unsigned short cx)
Definition: pco_structures.h:49
WORD wMaxBinVertDESC
Definition: pco_structures.h:462
DWORD dwMinExposureIRDESC
Definition: pco_structures.h:482
unsigned short error_code
Definition: pco_structures.h:425
int addr
Definition: pco_structures.h:170
unsigned short getErrCode(void)
Definition: pco_structures.h:385
DWORD dwMinExposureDESC
Definition: pco_structures.h:477
void addShort(short msg)
Definition: pco_structures.h:269
int addr
Definition: pco_structures.h:414
SHORT sMinCoolSetDESC
Definition: pco_structures.h:486
void sprintHeader(char *strg)
Definition: pco_structures.h:349
void addLong(long msg)
Definition: pco_structures.h:98
void addUShort(unsigned short msg)
Definition: pco_structures.h:258
unsigned short exp_code
Definition: pco_structures.h:422
DWORD dwMaxExposureIRDESC
Definition: pco_structures.h:483
WORD wMaxHorzResStdDESC
Definition: pco_structures.h:455
SHORT sDefaultCoolSetDESC
Definition: pco_structures.h:488
DWORD dwPixelRateDESC[4]
Definition: pco_structures.h:468
DWORD dwMaxDelayDESC
Definition: pco_structures.h:475
aps designed struct based on PCO SDK.
Definition: pco_structures.h:451
DWORD reserved[9]
Definition: pco_structures.h:514
WORD wNumADCsDESC
Definition: pco_structures.h:466
DWORD dwMinDelayStepDESC
Definition: pco_structures.h:476
void addULong(unsigned long msg)
Definition: pco_structures.h:291
unsigned char * checksum
Definition: pco_structures.h:142
WORD wTimeTableDESC
Definition: pco_structures.h:484
#define WORD
Definition: pco_structures.h:442
void addUChar(unsigned char msg)
Definition: pco_structures.h:238
WORD wPowerDownModeDESC
Definition: pco_structures.h:489
char data[256]
Definition: pco_structures.h:144
void addULong(unsigned long msg)
Definition: pco_structures.h:110
WORD wDoubleImageDESC
Definition: pco_structures.h:485
WORD wRoiHorStepsDESC
Definition: pco_structures.h:464
WORD wSensorTypeDESC
Definition: pco_structures.h:453
WORD wBinHorzSteppingDESC
Definition: pco_structures.h:461
void setCode(unsigned short cx)
Definition: pco_structures.h:199
void setErrCode(unsigned short cx)
Definition: pco_structures.h:211
unsigned long getULong(int adx)
Definition: pco_structures.h:338
int verifyCheckSum(void)
Definition: pco_structures.h:391
unsigned char * getData(void)
Definition: pco_structures.h:123
WORD wBinVertSteppingDESC
Definition: pco_structures.h:463
WORD wColorPatternDESC
Definition: pco_structures.h:491
void calcCheckSum(void)
Definition: pco_structures.h:152
WORD wSensorSubTypeDESC
Definition: pco_structures.h:454
unsigned short * length
Definition: pco_structures.h:428
char data[256]
Definition: pco_structures.h:436
unsigned char verified_chksm
Definition: pco_structures.h:433
void addUShort(unsigned short msg)
Definition: pco_structures.h:62
unsigned short getUShort(int adx)
Definition: pco_structures.h:303
#define SHORT
Definition: pco_structures.h:444
DWORD dwMaxExposureDESC
Definition: pco_structures.h:478
WORD wMaxBinHorzDESC
Definition: pco_structures.h:460
int totalsum
Definition: pco_structures.h:172
WORD wConvFactDESC[4]
Definition: pco_structures.h:470
WORD wRoiVertStepsDESC
Definition: pco_structures.h:465
void copy2Obj(unsigned char *obj, int len)
Definition: pco_structures.h:227
void setExpCode(unsigned short cx)
Definition: pco_structures.h:205
WORD wPatternTypeDESC
Definition: pco_structures.h:510
void addShort(short msg)
Definition: pco_structures.h:86
unsigned short getLen(void)
Definition: pco_structures.h:129
DWORD dwMinDelayIRDESC
Definition: pco_structures.h:480
Inline class to create a binary command to be sent to pco cameras over serial port.
Definition: pco_structures.h:36
short getShort(int adx)
Definition: pco_structures.h:315
#define DWORD
Definition: pco_structures.h:443
unsigned char * checksum
Definition: pco_structures.h:430
void addUChar(unsigned char msg)
Definition: pco_structures.h:74
WORD wDynResDESC
Definition: pco_structures.h:459
WORD wMaxHorzResExtDESC
Definition: pco_structures.h:457
unsigned short code
Definition: pco_structures.h:419
unsigned short getCode(void)
Definition: pco_structures.h:375
DWORD dwMinDelayDESC
Definition: pco_structures.h:474
pco_command()
Definition: pco_structures.h:43
unsigned short verified_length
Definition: pco_structures.h:434
Class to define a single binary response from pco cameras, received over serial port.
Definition: pco_structures.h:180