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 29 of file ProtocolDevice.h.


Constructor & Destructor Documentation

default constructor

Definition at line 2027 of file ProtocolDevice.cpp.

CProtocolDevice::CProtocolDevice ( const CProtocolDevice rclProtocolDevice)

copy constructor

Definition at line 2031 of file ProtocolDevice.cpp.

destructor

Definition at line 2036 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 2611 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 2058 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 2473 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 2544 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 2271 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 71 of file ProtocolDevice.cpp.

int CProtocolDevice::initDLR_FTS ( ) [virtual]

Implements CDevice.

Definition at line 2989 of file ProtocolDevice.cpp.

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

Definition at line 2046 of file ProtocolDevice.cpp.

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

Definition at line 3147 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 107 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 568 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 727 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 409 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 646 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 255 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 181 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 488 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 332 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 2831 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 2690 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 2764 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 32 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1340 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 808 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1365 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 1262 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 1846 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1506 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 1932 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1106 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 1671 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1425 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 1757 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 954 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 1587 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 881 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1184 of file ProtocolDevice.cpp.

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

Implements CDevice.

Definition at line 1030 of file ProtocolDevice.cpp.


Member Data Documentation

Reimplemented from CDevice.

Reimplemented in CRS232Device, and CCP5X11Device.

Definition at line 42 of file ProtocolDevice.h.

CRITICAL_SECTION CProtocolDevice::m_csDevice [protected]

Definition at line 41 of file ProtocolDevice.h.


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


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Sat Jun 8 2019 20:25:13