Public Member Functions | Protected Member Functions | Protected Attributes
CProtocolDevice Class Reference

#include <ProtocolDevice.h>

Inheritance diagram for CProtocolDevice:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CProtocolDevice ()
 default constructor
 CProtocolDevice (const CProtocolDevice &rclProtocolDevice)
 copy constructor
int getCanOpenRawAbsEnc (int iModuleId, short *piValue)
int getDataDLR_FTS (std::vector< float > &rafData, long *piState)
int getDataMP55_IO (int iModuleId, float *pfData)
int getDataMP55_IO_fast (int iModuleId, float *pfData)
int getDataSCHUNK_FTC (int iModuleId, int iChannelTypeId, std::vector< float > &rafData, short *piState)
int initDLR_FTS ()
CProtocolDeviceoperator= (const CProtocolDevice &rclProtocolDevice)
int setInitMP55_IO_fast (int iModuleId)
int setNullSCHUNK_FTC (int iModuleId, short *piState)
int setTaraMP55_IO (int iModuleId, float fTara)
virtual ~CProtocolDevice ()
 destructor

Protected Member Functions

virtual int clearReadQueue ()=0
int getUnsignedLong (int iModuleId, unsigned long *puiData)
int printMessage (CProtocolMessage &rclProtocolMessage, bool read)
int readChar (int iModuleId, int iCommandId, int iParameterId, char *pcData)
virtual int readDevice (CProtocolMessage &rclProtocolMessage)=0
int readFloat (int iModuleId, int iCommandId, int iParameterId, float *pfData)
int readFloatUnsignedChars (int iModuleId, int iCommandId, int iParameterId, float *pfData, unsigned char *pucData1, unsigned char *pucData2)
int readLong (int iModuleId, int iCommandId, int iParameterId, long *piData)
int readLongUnsignedChars (int iModuleId, int iCommandId, int iParameterId, long *piData, unsigned char *pucData1, unsigned char *pucData2)
int readShort (int iModuleId, int iCommandId, int iParameterId, short *piData)
int readUnsignedChar (int iModuleId, int iCommandId, int iParameterId, unsigned char *pucData)
int readUnsignedLong (int iModuleId, int iCommandId, int iParameterId, unsigned long *puiData)
int readUnsignedShort (int iModuleId, int iCommandId, int iParameterId, unsigned short *puiData)
virtual int reinit (unsigned char ucBaudRateId)=0
virtual int setMessageId (unsigned long uiMessageId)=0
int write8Bytes (int iModuleId, bool bAck, void *pBytes)
int writeAll (int iCommandId, int iParameterId)
int writeChar (int iModuleId, int iCommandId, int iParameterId, char cData)
int writeCommand (int iModuleId, int iCommandId)
virtual int writeDevice (CProtocolMessage &rclProtocolMessage)=0
int writeFloat (int iModuleId, int iCommandId, int iParameterId, float fData)
int writeFloatReadFloatUnsignedChars (int iModuleId, int iCommandId, int iParameterId, float fData, float *pfData, unsigned char *pucData1, unsigned char *pucData2)
int writeFloatShort (int iModuleId, int iCommandId, int iParameterId, float fData, short iData)
int writeFloatShortReadFloatUnsignedChars (int iModuleId, int iCommandId, int iParameterId, float fData, short iData, float *pfData, unsigned char *pucData1, unsigned char *pucData2)
int writeLong (int iModuleId, int iCommandId, int iParameterId, long iData)
int writeLongReadLongUnsignedChars (int iModuleId, int iCommandId, int iParameterId, long iData, long *piData, unsigned char *pucData1, unsigned char *pucData2)
int writeLongShort (int iModuleId, int iCommandId, int iParameterId, long iData1, short iData2)
int writeLongShortReadLongUnsignedChars (int iModuleId, int iCommandId, int iParameterId, long iData1, short iData2, long *piData, unsigned char *pucData1, unsigned char *pucData2)
int writeShort (int iModuleId, int iCommandId, int iParameterId, short iData)
int writeShortReadLongUnsignedChars (int iModuleId, int iCommandId, int iParameterId, short iData, long *piData, unsigned char *pucData1, unsigned char *pucData2)
int writeUnsignedChar (int iModuleId, int iCommandId, int iParameterId, unsigned char ucData)
int writeUnsignedLong (int iModuleId, int iCommandId, int iParameterId, unsigned long uiData)
int writeUnsignedShort (int iModuleId, int iCommandId, int iParameterId, unsigned short uiData)

Protected Attributes

CStopWatch m_clTimer
CRITICAL_SECTION m_csDevice

Detailed Description

Definition at line 60 of file ProtocolDevice.h.


Constructor & Destructor Documentation

default constructor

Definition at line 2058 of file ProtocolDevice.cpp.

CProtocolDevice::CProtocolDevice ( const CProtocolDevice rclProtocolDevice)

copy constructor

Definition at line 2062 of file ProtocolDevice.cpp.

destructor

Definition at line 2067 of file ProtocolDevice.cpp.


Member Function Documentation

virtual int CProtocolDevice::clearReadQueue ( ) [protected, pure virtual]
int CProtocolDevice::getCanOpenRawAbsEnc ( int  iModuleId,
short *  piValue 
) [virtual]

Implements CDevice.

Definition at line 2642 of file ProtocolDevice.cpp.

int CProtocolDevice::getDataDLR_FTS ( std::vector< float > &  rafData,
long *  piState 
) [virtual]

Implements CDevice.

Definition at line 2089 of file ProtocolDevice.cpp.

int CProtocolDevice::getDataMP55_IO ( int  iModuleId,
float *  pfData 
) [virtual]

Implements CDevice.

Definition at line 2504 of file ProtocolDevice.cpp.

int CProtocolDevice::getDataMP55_IO_fast ( int  iModuleId,
float *  pfData 
) [virtual]

Implements CDevice.

Definition at line 2575 of file ProtocolDevice.cpp.

int CProtocolDevice::getDataSCHUNK_FTC ( int  iModuleId,
int  iChannelTypeId,
std::vector< float > &  rafData,
short *  piState 
) [virtual]

Implements CDevice.

Definition at line 2302 of file ProtocolDevice.cpp.

int CProtocolDevice::getUnsignedLong ( int  iModuleId,
unsigned long *  puiData 
) [protected, virtual]

Implements CDevice.

Definition at line 102 of file ProtocolDevice.cpp.

int CProtocolDevice::initDLR_FTS ( ) [virtual]

Implements CDevice.

Definition at line 3020 of file ProtocolDevice.cpp.

CProtocolDevice & CProtocolDevice::operator= ( const CProtocolDevice rclProtocolDevice)

Definition at line 2077 of file ProtocolDevice.cpp.

int CProtocolDevice::printMessage ( CProtocolMessage rclProtocolMessage,
bool  read 
) [protected]

Definition at line 3178 of file ProtocolDevice.cpp.

int CProtocolDevice::readChar ( int  iModuleId,
int  iCommandId,
int  iParameterId,
char *  pcData 
) [protected, virtual]

Implements CDevice.

Definition at line 138 of file ProtocolDevice.cpp.

virtual int CProtocolDevice::readDevice ( CProtocolMessage rclProtocolMessage) [protected, pure virtual]
int CProtocolDevice::readFloat ( int  iModuleId,
int  iCommandId,
int  iParameterId,
float *  pfData 
) [protected, virtual]

Implements CDevice.

Definition at line 599 of file ProtocolDevice.cpp.

int CProtocolDevice::readFloatUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
float *  pfData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 758 of file ProtocolDevice.cpp.

int CProtocolDevice::readLong ( int  iModuleId,
int  iCommandId,
int  iParameterId,
long *  piData 
) [protected, virtual]

Implements CDevice.

Definition at line 440 of file ProtocolDevice.cpp.

int CProtocolDevice::readLongUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
long *  piData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 677 of file ProtocolDevice.cpp.

int CProtocolDevice::readShort ( int  iModuleId,
int  iCommandId,
int  iParameterId,
short *  piData 
) [protected, virtual]

Implements CDevice.

Definition at line 286 of file ProtocolDevice.cpp.

int CProtocolDevice::readUnsignedChar ( int  iModuleId,
int  iCommandId,
int  iParameterId,
unsigned char *  pucData 
) [protected, virtual]

Implements CDevice.

Definition at line 212 of file ProtocolDevice.cpp.

int CProtocolDevice::readUnsignedLong ( int  iModuleId,
int  iCommandId,
int  iParameterId,
unsigned long *  puiData 
) [protected, virtual]

Implements CDevice.

Definition at line 519 of file ProtocolDevice.cpp.

int CProtocolDevice::readUnsignedShort ( int  iModuleId,
int  iCommandId,
int  iParameterId,
unsigned short *  puiData 
) [protected, virtual]

Implements CDevice.

Definition at line 363 of file ProtocolDevice.cpp.

virtual int CProtocolDevice::reinit ( unsigned char  ucBaudRateId) [protected, pure virtual]

Implements CDevice.

Implemented in CRS232Device, CESDDevice, CPCanDevice, and CCP5X11Device.

int CProtocolDevice::setInitMP55_IO_fast ( int  iModuleId) [virtual]

Implements CDevice.

Definition at line 2862 of file ProtocolDevice.cpp.

virtual int CProtocolDevice::setMessageId ( unsigned long  uiMessageId) [protected, pure virtual]
int CProtocolDevice::setNullSCHUNK_FTC ( int  iModuleId,
short *  piState 
) [virtual]

Implements CDevice.

Definition at line 2721 of file ProtocolDevice.cpp.

int CProtocolDevice::setTaraMP55_IO ( int  iModuleId,
float  fTara 
) [virtual]

Implements CDevice.

Definition at line 2795 of file ProtocolDevice.cpp.

int CProtocolDevice::write8Bytes ( int  iModuleId,
bool  bAck,
void *  pBytes 
) [protected, virtual]

Implements CDevice.

Definition at line 63 of file ProtocolDevice.cpp.

int CProtocolDevice::writeAll ( int  iCommandId,
int  iParameterId 
) [protected, virtual]

Implements CDevice.

Definition at line 1371 of file ProtocolDevice.cpp.

int CProtocolDevice::writeChar ( int  iModuleId,
int  iCommandId,
int  iParameterId,
char  cData 
) [protected, virtual]

Implements CDevice.

Definition at line 839 of file ProtocolDevice.cpp.

int CProtocolDevice::writeCommand ( int  iModuleId,
int  iCommandId 
) [protected, virtual]

Implements CDevice.

Definition at line 1396 of file ProtocolDevice.cpp.

virtual int CProtocolDevice::writeDevice ( CProtocolMessage rclProtocolMessage) [protected, pure virtual]
int CProtocolDevice::writeFloat ( int  iModuleId,
int  iCommandId,
int  iParameterId,
float  fData 
) [protected, virtual]

Implements CDevice.

Definition at line 1293 of file ProtocolDevice.cpp.

int CProtocolDevice::writeFloatReadFloatUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
float  fData,
float *  pfData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 1877 of file ProtocolDevice.cpp.

int CProtocolDevice::writeFloatShort ( int  iModuleId,
int  iCommandId,
int  iParameterId,
float  fData,
short  iData 
) [protected, virtual]

Implements CDevice.

Definition at line 1537 of file ProtocolDevice.cpp.

int CProtocolDevice::writeFloatShortReadFloatUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
float  fData,
short  iData,
float *  pfData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 1963 of file ProtocolDevice.cpp.

int CProtocolDevice::writeLong ( int  iModuleId,
int  iCommandId,
int  iParameterId,
long  iData 
) [protected, virtual]

Implements CDevice.

Definition at line 1137 of file ProtocolDevice.cpp.

int CProtocolDevice::writeLongReadLongUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
long  iData,
long *  piData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 1702 of file ProtocolDevice.cpp.

int CProtocolDevice::writeLongShort ( int  iModuleId,
int  iCommandId,
int  iParameterId,
long  iData1,
short  iData2 
) [protected, virtual]

Implements CDevice.

Definition at line 1456 of file ProtocolDevice.cpp.

int CProtocolDevice::writeLongShortReadLongUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
long  iData1,
short  iData2,
long *  piData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 1788 of file ProtocolDevice.cpp.

int CProtocolDevice::writeShort ( int  iModuleId,
int  iCommandId,
int  iParameterId,
short  iData 
) [protected, virtual]

Implements CDevice.

Definition at line 985 of file ProtocolDevice.cpp.

int CProtocolDevice::writeShortReadLongUnsignedChars ( int  iModuleId,
int  iCommandId,
int  iParameterId,
short  iData,
long *  piData,
unsigned char *  pucData1,
unsigned char *  pucData2 
) [protected, virtual]

Implements CDevice.

Definition at line 1618 of file ProtocolDevice.cpp.

int CProtocolDevice::writeUnsignedChar ( int  iModuleId,
int  iCommandId,
int  iParameterId,
unsigned char  ucData 
) [protected, virtual]

Implements CDevice.

Definition at line 912 of file ProtocolDevice.cpp.

int CProtocolDevice::writeUnsignedLong ( int  iModuleId,
int  iCommandId,
int  iParameterId,
unsigned long  uiData 
) [protected, virtual]

Implements CDevice.

Definition at line 1215 of file ProtocolDevice.cpp.

int CProtocolDevice::writeUnsignedShort ( int  iModuleId,
int  iCommandId,
int  iParameterId,
unsigned short  uiData 
) [protected, virtual]

Implements CDevice.

Definition at line 1061 of file ProtocolDevice.cpp.


Member Data Documentation

Reimplemented from CDevice.

Reimplemented in CRS232Device, and CCP5X11Device.

Definition at line 73 of file ProtocolDevice.h.

CRITICAL_SECTION CProtocolDevice::m_csDevice [protected]

Definition at line 72 of file ProtocolDevice.h.


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


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Thu Aug 27 2015 15:06:52