#include <RS232Device.h>
Public Member Functions | |
CRS232Device () | |
default constructor | |
CRS232Device (const CRS232Device &rclRS232Device) | |
copy constructor | |
int | exit () |
int | init () |
int | init (const char *acInitString) |
CRS232Device & | operator= (const CRS232Device &rclRS232Device) |
void | setQueueSize (unsigned short uiQueueSize) |
void | setTimeOut (unsigned long uiTimeOut) |
virtual | ~CRS232Device () |
destructor | |
Protected Member Functions | |
int | clearReadQueue () |
int | getDeviceError (int iErrorState) |
int | readDevice (CProtocolMessage &rclProtocolMessage) |
int | reinit (unsigned char ucBaudRateId) |
int | setBaudRate () |
int | setMessageId (unsigned long uiMessageId) |
int | writeDevice (CProtocolMessage &rclProtocolMessage) |
Protected Attributes | |
CStopWatch | m_clTimer |
int | m_iDeviceId |
unsigned long | m_uiBaudRate |
unsigned long | m_uiTimeOut |
Definition at line 71 of file RS232Device.h.
default constructor
Definition at line 477 of file RS232Device.cpp.
CRS232Device::CRS232Device | ( | const CRS232Device & | rclRS232Device | ) |
copy constructor
Definition at line 482 of file RS232Device.cpp.
CRS232Device::~CRS232Device | ( | ) | [virtual] |
destructor
Definition at line 487 of file RS232Device.cpp.
int CRS232Device::clearReadQueue | ( | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 98 of file RS232Device.cpp.
int CRS232Device::exit | ( | ) | [virtual] |
Implements CDevice.
Definition at line 782 of file RS232Device.cpp.
int CRS232Device::getDeviceError | ( | int | iErrorState | ) | [protected] |
Definition at line 80 of file RS232Device.cpp.
int CRS232Device::init | ( | ) | [virtual] |
Implements CDevice.
Definition at line 533 of file RS232Device.cpp.
int CRS232Device::init | ( | const char * | acInitString | ) | [virtual] |
Implements CDevice.
Definition at line 538 of file RS232Device.cpp.
CRS232Device & CRS232Device::operator= | ( | const CRS232Device & | rclRS232Device | ) |
Definition at line 498 of file RS232Device.cpp.
int CRS232Device::readDevice | ( | CProtocolMessage & | rclProtocolMessage | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 110 of file RS232Device.cpp.
int CRS232Device::reinit | ( | unsigned char | ucBaudRateId | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 104 of file RS232Device.cpp.
int CRS232Device::setBaudRate | ( | ) | [protected] |
Definition at line 86 of file RS232Device.cpp.
int CRS232Device::setMessageId | ( | unsigned long | uiMessageId | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 92 of file RS232Device.cpp.
void CRS232Device::setQueueSize | ( | unsigned short | uiQueueSize | ) |
void CRS232Device::setTimeOut | ( | unsigned long | uiTimeOut | ) |
Definition at line 516 of file RS232Device.cpp.
int CRS232Device::writeDevice | ( | CProtocolMessage & | rclProtocolMessage | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 360 of file RS232Device.cpp.
CStopWatch CRS232Device::m_clTimer [protected] |
Reimplemented from CProtocolDevice.
Definition at line 95 of file RS232Device.h.
int CRS232Device::m_iDeviceId [protected] |
Definition at line 92 of file RS232Device.h.
unsigned long CRS232Device::m_uiBaudRate [protected] |
Definition at line 93 of file RS232Device.h.
unsigned long CRS232Device::m_uiTimeOut [protected] |
Definition at line 94 of file RS232Device.h.