areaDetector  3-5-0
EPICS areaDetector framework
Public Member Functions | Protected Attributes | List of all members
pco_response Class Reference

Class to define a single binary response from pco cameras, received over serial port. More...

#include <pco_structures.h>

Public Member Functions

 pco_response ()
 
void setCode (unsigned short cx)
 
void setExpCode (unsigned short cx)
 
void setErrCode (unsigned short cx)
 
void setLength (unsigned short lx)
 
void copy2Obj (unsigned char *obj, int len)
 
void addUChar (unsigned char msg)
 
void addUChar (unsigned char *msg, int len)
 
void addUShort (unsigned short msg)
 
void addShort (short msg)
 
void addLong (long msg)
 
void addULong (unsigned long msg)
 
unsigned short getUShort (int adx)
 
short getShort (int adx)
 
unsigned char getUChar (int adx)
 
unsigned long getULong (int adx)
 
void sprintHeader (char *strg)
 
unsigned char * getData (void)
 
unsigned char * getData2 (void)
 
unsigned short getLen (void)
 
unsigned short getCode (void)
 
unsigned short getExpCode (void)
 
unsigned short getErrCode (void)
 
int verifyCheckSum (void)
 

Protected Attributes

int addr
 
unsigned short code
 
unsigned short exp_code
 
unsigned short error_code
 
unsigned short * length
 
unsigned char * checksum
 
unsigned char verified_chksm
 
unsigned short verified_length
 
char data [256]
 
int totalsum
 

Detailed Description

Class to define a single binary response from pco cameras, received over serial port.

Constructor & Destructor Documentation

◆ pco_response()

pco_response::pco_response ( )
inline

Member Function Documentation

◆ addLong()

void pco_response::addLong ( long  msg)
inline

◆ addShort()

void pco_response::addShort ( short  msg)
inline

◆ addUChar() [1/2]

void pco_response::addUChar ( unsigned char  msg)
inline

◆ addUChar() [2/2]

void pco_response::addUChar ( unsigned char *  msg,
int  len 
)
inline

◆ addULong()

void pco_response::addULong ( unsigned long  msg)
inline

◆ addUShort()

void pco_response::addUShort ( unsigned short  msg)
inline

◆ copy2Obj()

void pco_response::copy2Obj ( unsigned char *  obj,
int  len 
)
inline

◆ getCode()

unsigned short pco_response::getCode ( void  )
inline

◆ getData()

unsigned char* pco_response::getData ( void  )
inline

◆ getData2()

unsigned char* pco_response::getData2 ( void  )
inline

◆ getErrCode()

unsigned short pco_response::getErrCode ( void  )
inline

◆ getExpCode()

unsigned short pco_response::getExpCode ( void  )
inline

◆ getLen()

unsigned short pco_response::getLen ( void  )
inline

◆ getShort()

short pco_response::getShort ( int  adx)
inline

◆ getUChar()

unsigned char pco_response::getUChar ( int  adx)
inline

◆ getULong()

unsigned long pco_response::getULong ( int  adx)
inline

◆ getUShort()

unsigned short pco_response::getUShort ( int  adx)
inline

◆ setCode()

void pco_response::setCode ( unsigned short  cx)
inline

◆ setErrCode()

void pco_response::setErrCode ( unsigned short  cx)
inline

◆ setExpCode()

void pco_response::setExpCode ( unsigned short  cx)
inline

◆ setLength()

void pco_response::setLength ( unsigned short  lx)
inline

◆ sprintHeader()

void pco_response::sprintHeader ( char *  strg)
inline

◆ verifyCheckSum()

int pco_response::verifyCheckSum ( void  )
inline

Member Data Documentation

◆ addr

int pco_response::addr
protected

◆ checksum

unsigned char* pco_response::checksum
protected

◆ code

unsigned short pco_response::code
protected

◆ data

char pco_response::data[256]
protected

◆ error_code

unsigned short pco_response::error_code
protected

◆ exp_code

unsigned short pco_response::exp_code
protected

◆ length

unsigned short* pco_response::length
protected

◆ totalsum

int pco_response::totalsum
protected

◆ verified_chksm

unsigned char pco_response::verified_chksm
protected

◆ verified_length

unsigned short pco_response::verified_length
protected

The documentation for this class was generated from the following file: