#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 40 of file RS232Device.h.
default constructor
Definition at line 446 of file RS232Device.cpp.
CRS232Device::CRS232Device | ( | const CRS232Device & | rclRS232Device | ) |
copy constructor
Definition at line 451 of file RS232Device.cpp.
CRS232Device::~CRS232Device | ( | ) | [virtual] |
destructor
Definition at line 456 of file RS232Device.cpp.
int CRS232Device::clearReadQueue | ( | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 67 of file RS232Device.cpp.
int CRS232Device::exit | ( | ) | [virtual] |
Implements CDevice.
Definition at line 751 of file RS232Device.cpp.
int CRS232Device::getDeviceError | ( | int | iErrorState | ) | [protected] |
Definition at line 49 of file RS232Device.cpp.
int CRS232Device::init | ( | ) | [virtual] |
Implements CDevice.
Definition at line 502 of file RS232Device.cpp.
int CRS232Device::init | ( | const char * | acInitString | ) | [virtual] |
Implements CDevice.
Definition at line 507 of file RS232Device.cpp.
CRS232Device & CRS232Device::operator= | ( | const CRS232Device & | rclRS232Device | ) |
Definition at line 467 of file RS232Device.cpp.
int CRS232Device::readDevice | ( | CProtocolMessage & | rclProtocolMessage | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 79 of file RS232Device.cpp.
int CRS232Device::reinit | ( | unsigned char | ucBaudRateId | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 73 of file RS232Device.cpp.
int CRS232Device::setBaudRate | ( | ) | [protected] |
Definition at line 55 of file RS232Device.cpp.
int CRS232Device::setMessageId | ( | unsigned long | uiMessageId | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 61 of file RS232Device.cpp.
void CRS232Device::setQueueSize | ( | unsigned short | uiQueueSize | ) |
void CRS232Device::setTimeOut | ( | unsigned long | uiTimeOut | ) |
Definition at line 485 of file RS232Device.cpp.
int CRS232Device::writeDevice | ( | CProtocolMessage & | rclProtocolMessage | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 329 of file RS232Device.cpp.
CStopWatch CRS232Device::m_clTimer [protected] |
Reimplemented from CProtocolDevice.
Definition at line 64 of file RS232Device.h.
int CRS232Device::m_iDeviceId [protected] |
Definition at line 61 of file RS232Device.h.
unsigned long CRS232Device::m_uiBaudRate [protected] |
Definition at line 62 of file RS232Device.h.
unsigned long CRS232Device::m_uiTimeOut [protected] |
Definition at line 63 of file RS232Device.h.