#include <CanESD.h>

| Public Member Functions | |
| CanESD (const char *cIniFile, bool bObjectMode=false) | |
| void | init () | 
| bool | init_ret () | 
| bool | isObjectMode () | 
| bool | isTransmitError () | 
| bool | receiveMsg (CanMsg *pCMsg) | 
| bool | receiveMsgRetry (CanMsg *pCMsg, int iNrOfRetry) | 
| bool | receiveMsgTimeout (CanMsg *pCMsg, int nMicroSeconds) | 
| bool | transmitMsg (CanMsg CMsg, bool bBlocking=true) | 
| ~CanESD () | |
|  Public Member Functions inherited from CanItf | |
| CanItfType | getCanItfType () | 
| void | setCanItfType (CanItfType iType) | 
| virtual | ~CanItf () | 
| Protected Member Functions | |
| int | canIdAddGroup (NTCAN_HANDLE handle, int id) | 
| std::string | GetErrorStr (int ntstatus) const | 
| int | invert (int id) | 
| int | readEvent () | 
| Private Member Functions | |
| void | initIntern () | 
| Private Attributes | |
| BYTE | m_BaudRate | 
| bool | m_bIsTXError | 
| bool | m_bObjectMode | 
| BYTE | m_DeviceNr | 
| NTCAN_HANDLE | m_Handle | 
| IniFile | m_IniFile | 
| int | m_LastID | 
| Mutex | m_Mutex | 
| Additional Inherited Members | |
|  Public Types inherited from CanItf | |
| enum | CanItfType { CAN_PEAK = 0, CAN_PEAK_USB = 1, CAN_ESD = 2, CAN_DUMMY = 3, CAN_BECKHOFF = 4, CAN_SOCKETCAN = 5 } | 
| CanESD::CanESD | ( | const char * | cIniFile, | 
| bool | bObjectMode = false | ||
| ) | 
Definition at line 27 of file CanESD.cpp.
| CanESD::~CanESD | ( | ) | 
Destructor. Release the allocated resources.
Definition at line 40 of file CanESD.cpp.
| 
 | protected | 
Add a group of CAN identifier to the handle, so it can be received. The identifiers are generated by inverting the id and adding each value between 0 and 7 This is used for generating the answer commands by the RCS5000.
| handle | The handle to add the identifiers to. | 
| id | The command id sent to the RCS5000. | 
Definition at line 280 of file CanESD.cpp.
| 
 | protected | 
Definition at line 300 of file CanESD.cpp.
| 
 | inlinevirtual | 
| 
 | virtual | 
Initializes the CAN bus and returns success.
Implements CanItf.
Definition at line 47 of file CanESD.cpp.
| 
 | private | 
Definition at line 54 of file CanESD.cpp.
| 
 | inlineprotected | 
| 
 | inlinevirtual | 
| 
 | protected | 
Check if errors occured on the CAN bus.
Definition at line 344 of file CanESD.cpp.
| 
 | virtual | 
Reads a CAN message.
Implements CanItf.
Definition at line 184 of file CanESD.cpp.
| 
 | virtual | 
Reads a CAN message. The function blocks between the attempts.
| pCMsg | CAN message | 
| iNrOfRetry | number of retries | 
Implements CanItf.
Definition at line 141 of file CanESD.cpp.
| 
 | virtual | 
Reads a CAN message with timeout.
| pCMsg | CAN message | 
| nMicroSecTimeout | timeout in us | 
Implements CanItf.
Definition at line 266 of file CanESD.cpp.
| 
 | virtual | 
Transmit a message via the CAN bus. Additionally, an error flag is set internally if the transmission does not succeed.
| CMsg | Structure containing the CAN message. | 
Implements CanItf.
Definition at line 108 of file CanESD.cpp.
| 
 | private |