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

Inline class to create a binary command to be sent to pco cameras over serial port. More...

#include <pco_structures.h>

Public Member Functions

 pco_command ()
 
void setCode (unsigned short cx)
 
void addUShort (unsigned short msg)
 
void addUChar (unsigned char msg)
 
void addShort (short msg)
 
void addLong (long msg)
 
void addULong (unsigned long msg)
 
unsigned char * getData (void)
 
unsigned short getLen (void)
 
unsigned short getCode (void)
 

Protected Member Functions

void calcCheckSum (void)
 

Protected Attributes

unsigned short code
 
unsigned short * length
 
unsigned char * checksum
 
char data [256]
 
int addr
 
int totalsum
 

Detailed Description

Inline class to create a binary command to be sent to pco cameras over serial port.

Constructor & Destructor Documentation

◆ pco_command()

pco_command::pco_command ( )
inline

Member Function Documentation

◆ addLong()

void pco_command::addLong ( long  msg)
inline

◆ addShort()

void pco_command::addShort ( short  msg)
inline

◆ addUChar()

void pco_command::addUChar ( unsigned char  msg)
inline

◆ addULong()

void pco_command::addULong ( unsigned long  msg)
inline

◆ addUShort()

void pco_command::addUShort ( unsigned short  msg)
inline

◆ calcCheckSum()

void pco_command::calcCheckSum ( void  )
inlineprotected

◆ getCode()

unsigned short pco_command::getCode ( void  )
inline

◆ getData()

unsigned char* pco_command::getData ( void  )
inline

◆ getLen()

unsigned short pco_command::getLen ( void  )
inline

◆ setCode()

void pco_command::setCode ( unsigned short  cx)
inline

Member Data Documentation

◆ addr

int pco_command::addr
protected

◆ checksum

unsigned char* pco_command::checksum
protected

◆ code

unsigned short pco_command::code
protected

◆ data

char pco_command::data[256]
protected

◆ length

unsigned short* pco_command::length
protected

◆ totalsum

int pco_command::totalsum
protected

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