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
Inline class to create a binary command to be sent to pco cameras over serial port.
Definition: pco_structures.h:36
unsigned char * getData(void)
Definition: pco_structures.h:123
void addULong(unsigned long msg)
Definition: pco_structures.h:110
unsigned short * length
Definition: pco_structures.h:141
char data[256]
Definition: pco_structures.h:144
void calcCheckSum(void)
Definition: pco_structures.h:152
void setCode(unsigned short cx)
Definition: pco_structures.h:49
unsigned short code
Definition: pco_structures.h:135
void addUChar(unsigned char msg)
Definition: pco_structures.h:74
void addLong(long msg)
Definition: pco_structures.h:98
pco_command()
Definition: pco_structures.h:43
unsigned short getCode(void)
Definition: pco_structures.h:135
int addr
Definition: pco_structures.h:170
unsigned short getLen(void)
Definition: pco_structures.h:129
void addUShort(unsigned short msg)
Definition: pco_structures.h:62
void addShort(short msg)
Definition: pco_structures.h:86
unsigned char * checksum
Definition: pco_structures.h:142
int totalsum
Definition: pco_structures.h:172
Class to define a single binary response from pco cameras, received over serial port.
Definition: pco_structures.h:180
void copy2Obj(unsigned char *obj, int len)
Definition: pco_structures.h:227
void addUChar(unsigned char *msg, int len)
Definition: pco_structures.h:249
unsigned short error_code
Definition: pco_structures.h:425
void addUChar(unsigned char msg)
Definition: pco_structures.h:238
void sprintHeader(char *strg)
Definition: pco_structures.h:349
void addULong(unsigned long msg)
Definition: pco_structures.h:291
void setCode(unsigned short cx)
Definition: pco_structures.h:199
unsigned char getUChar(int adx)
Definition: pco_structures.h:327
int addr
Definition: pco_structures.h:414
unsigned char * getData2(void)
Definition: pco_structures.h:365
int verifyCheckSum(void)
Definition: pco_structures.h:391
void addUShort(unsigned short msg)
Definition: pco_structures.h:258
unsigned short * length
Definition: pco_structures.h:428
void addLong(long msg)
Definition: pco_structures.h:280
unsigned short code
Definition: pco_structures.h:419
void setLength(unsigned short lx)
Definition: pco_structures.h:217
pco_response()
Definition: pco_structures.h:187
unsigned short verified_length
Definition: pco_structures.h:434
void setExpCode(unsigned short cx)
Definition: pco_structures.h:205
unsigned short getCode(void)
Definition: pco_structures.h:375
short getShort(int adx)
Definition: pco_structures.h:315
unsigned long getULong(int adx)
Definition: pco_structures.h:338
int totalsum
Definition: pco_structures.h:438
unsigned char * checksum
Definition: pco_structures.h:430
unsigned short getErrCode(void)
Definition: pco_structures.h:385
unsigned short exp_code
Definition: pco_structures.h:422
unsigned char verified_chksm
Definition: pco_structures.h:433
unsigned short getLen(void)
Definition: pco_structures.h:370
void addShort(short msg)
Definition: pco_structures.h:269
void setErrCode(unsigned short cx)
Definition: pco_structures.h:211
char data[256]
Definition: pco_structures.h:436
unsigned char * getData(void)
Definition: pco_structures.h:359
unsigned short getUShort(int adx)
Definition: pco_structures.h:303
unsigned short getExpCode(void)
Definition: pco_structures.h:380
int i
Definition: makeAdl.py:479
#define WORD
Definition: pco_structures.h:442
#define SHORT
Definition: pco_structures.h:444
#define DWORD
Definition: pco_structures.h:443
aps designed struct based on PCO SDK.
Definition: pco_structures.h:451
WORD wTimeTableDESC
Definition: pco_structures.h:484
WORD wMaxVertResStdDESC
Definition: pco_structures.h:456
WORD wPatternTypeDESC
Definition: pco_structures.h:510
DWORD dwMaxExposureDESC
Definition: pco_structures.h:478
DWORD dwMinExposureIRDESC
Definition: pco_structures.h:482
WORD wMaxVertResExtDESC
Definition: pco_structures.h:458
DWORD dwMinDelayStepDESC
Definition: pco_structures.h:476
DWORD dwMaxDelayIRDESC
Definition: pco_structures.h:481
DWORD dwMaxDelayDESC
Definition: pco_structures.h:475
WORD wBinVertSteppingDESC
Definition: pco_structures.h:463
DWORD reserved[9]
Definition: pco_structures.h:514
WORD wColorPatternDESC
Definition: pco_structures.h:491
WORD wBinHorzSteppingDESC
Definition: pco_structures.h:461
WORD wSensorTypeDESC
Definition: pco_structures.h:453
SHORT sDefaultCoolSetDESC
Definition: pco_structures.h:488
SHORT sMaxCoolSetDESC
Definition: pco_structures.h:487
DWORD dwMinDelayDESC
Definition: pco_structures.h:474
SHORT sMinCoolSetDESC
Definition: pco_structures.h:486
WORD wMaxHorzResStdDESC
Definition: pco_structures.h:455
DWORD dwMinDelayIRDESC
Definition: pco_structures.h:480
WORD wRoiVertStepsDESC
Definition: pco_structures.h:465
DWORD dwPixelRateDESC[4]
Definition: pco_structures.h:468
DWORD dwMinExposureDESC
Definition: pco_structures.h:477
WORD wRoiHorStepsDESC
Definition: pco_structures.h:464
WORD wMaxBinHorzDESC
Definition: pco_structures.h:460
WORD wConvFactDESC[4]
Definition: pco_structures.h:470
WORD wDoubleImageDESC
Definition: pco_structures.h:485
DWORD dwMinExposureStepDESC
Definition: pco_structures.h:479
WORD wNumADCsDESC
Definition: pco_structures.h:466
WORD wSize
Definition: pco_structures.h:452
WORD wOffsetRegulationDESC
Definition: pco_structures.h:490
WORD wDynResDESC
Definition: pco_structures.h:459
WORD wMaxHorzResExtDESC
Definition: pco_structures.h:457
DWORD dwMaxExposureIRDESC
Definition: pco_structures.h:483
WORD wSensorSubTypeDESC
Definition: pco_structures.h:454
WORD wMaxBinVertDESC
Definition: pco_structures.h:462
WORD wPowerDownModeDESC
Definition: pco_structures.h:489
WORD wIRDESC
Definition: pco_structures.h:472