#include <PCanDevice.h>
Public Member Functions | |
CPCanDevice () | |
default constructor | |
CPCanDevice (const CPCanDevice &rclPCanDevice) | |
copy constructor | |
int | exit () |
int | init () |
int | init (unsigned long baudRate) |
int | init (const char *acInitString) |
CPCanDevice & | operator= (const CPCanDevice &rclPCanDevice) |
void | setQueueSize (unsigned short uiQueueSize) |
void | setTimeOut (unsigned long uiTimeOut) |
int | waitForStartMotionAll () |
virtual | ~CPCanDevice () |
destructor | |
Protected Member Functions | |
int | clearReadQueue () |
int | getDeviceError (int iErrorState) |
int | readDevice (CProtocolMessage &rclProtocolMessage) |
int | reinit (unsigned char ucBaudRateId) |
int | setBaudRate () |
int | setBaudRate (unsigned char iBaudRate) |
int | setMessageId (unsigned long uiMessageId) |
int | writeDevice (CProtocolMessage &rclProtocolMessage) |
Protected Attributes | |
bool | m_bInitialized |
char * | m_DeviceName |
HANDLE | m_handle |
int | m_hDevice |
int | m_hSyncDevice |
int | m_iDeviceId |
int | m_iNoOfRetries |
unsigned long | m_uiBaudRate |
unsigned short | m_uiQueueSize |
unsigned long | m_uiTimeOut |
Definition at line 24 of file PCanDevice.h.
default constructor
Definition at line 429 of file PCanDevice.cpp.
CPCanDevice::CPCanDevice | ( | const CPCanDevice & | rclPCanDevice | ) |
copy constructor
Definition at line 436 of file PCanDevice.cpp.
CPCanDevice::~CPCanDevice | ( | ) | [virtual] |
destructor
Definition at line 441 of file PCanDevice.cpp.
int CPCanDevice::clearReadQueue | ( | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 186 of file PCanDevice.cpp.
int CPCanDevice::exit | ( | ) | [virtual] |
Implements CDevice.
Definition at line 725 of file PCanDevice.cpp.
int CPCanDevice::getDeviceError | ( | int | iErrorState | ) | [protected] |
Definition at line 35 of file PCanDevice.cpp.
int CPCanDevice::init | ( | ) | [virtual] |
Implements CDevice.
Definition at line 495 of file PCanDevice.cpp.
int CPCanDevice::init | ( | unsigned long | baudRate | ) |
Definition at line 499 of file PCanDevice.cpp.
int CPCanDevice::init | ( | const char * | acInitString | ) | [virtual] |
Implements CDevice.
Definition at line 531 of file PCanDevice.cpp.
CPCanDevice & CPCanDevice::operator= | ( | const CPCanDevice & | rclPCanDevice | ) |
Definition at line 454 of file PCanDevice.cpp.
int CPCanDevice::readDevice | ( | CProtocolMessage & | rclProtocolMessage | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 348 of file PCanDevice.cpp.
int CPCanDevice::reinit | ( | unsigned char | ucBaudRateId | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 211 of file PCanDevice.cpp.
int CPCanDevice::setBaudRate | ( | ) | [protected] |
Definition at line 115 of file PCanDevice.cpp.
int CPCanDevice::setBaudRate | ( | unsigned char | iBaudRate | ) | [protected] |
Definition at line 108 of file PCanDevice.cpp.
int CPCanDevice::setMessageId | ( | unsigned long | uiMessageId | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 169 of file PCanDevice.cpp.
void CPCanDevice::setQueueSize | ( | unsigned short | uiQueueSize | ) |
Definition at line 472 of file PCanDevice.cpp.
void CPCanDevice::setTimeOut | ( | unsigned long | uiTimeOut | ) |
Definition at line 477 of file PCanDevice.cpp.
int CPCanDevice::waitForStartMotionAll | ( | ) | [virtual] |
Reimplemented from CDevice.
Definition at line 763 of file PCanDevice.cpp.
int CPCanDevice::writeDevice | ( | CProtocolMessage & | rclProtocolMessage | ) | [protected, virtual] |
Implements CProtocolDevice.
Definition at line 392 of file PCanDevice.cpp.
bool CPCanDevice::m_bInitialized [protected] |
Definition at line 40 of file PCanDevice.h.
char* CPCanDevice::m_DeviceName [protected] |
Definition at line 56 of file PCanDevice.h.
HANDLE CPCanDevice::m_handle [protected] |
Definition at line 36 of file PCanDevice.h.
int CPCanDevice::m_hDevice [protected] |
Definition at line 37 of file PCanDevice.h.
int CPCanDevice::m_hSyncDevice [protected] |
Definition at line 38 of file PCanDevice.h.
int CPCanDevice::m_iDeviceId [protected] |
Definition at line 39 of file PCanDevice.h.
int CPCanDevice::m_iNoOfRetries [protected] |
Definition at line 44 of file PCanDevice.h.
unsigned long CPCanDevice::m_uiBaudRate [protected] |
Definition at line 41 of file PCanDevice.h.
unsigned short CPCanDevice::m_uiQueueSize [protected] |
Definition at line 42 of file PCanDevice.h.
unsigned long CPCanDevice::m_uiTimeOut [protected] |
Definition at line 43 of file PCanDevice.h.