#include <CanPeakSysUSB.h>
Definition at line 26 of file CanPeakSysUSB.h.
◆ CANPeakSysUSB() [1/2]
| CANPeakSysUSB::CANPeakSysUSB |
( |
const char * |
device, |
|
|
int |
baudrate |
|
) |
| |
◆ CANPeakSysUSB() [2/2]
| CANPeakSysUSB::CANPeakSysUSB |
( |
const char * |
cIniFile | ) |
|
◆ ~CANPeakSysUSB()
| CANPeakSysUSB::~CANPeakSysUSB |
( |
| ) |
|
◆ destroy()
| void CANPeakSysUSB::destroy |
( |
| ) |
|
|
inline |
◆ init()
| void CANPeakSysUSB::init |
( |
| ) |
|
|
virtual |
◆ init_ret()
| bool CANPeakSysUSB::init_ret |
( |
| ) |
|
|
virtual |
◆ initCAN()
| bool CANPeakSysUSB::initCAN |
( |
| ) |
|
|
private |
◆ isObjectMode()
| bool CANPeakSysUSB::isObjectMode |
( |
| ) |
|
|
inlinevirtual |
Check if the current CAN interface was opened on OBJECT mode.
- Returns
- true if opened in OBJECT mode, false if not.
Implements CanItf.
Definition at line 40 of file CanPeakSysUSB.h.
◆ outputDetailedStatus()
| void CANPeakSysUSB::outputDetailedStatus |
( |
| ) |
|
|
private |
◆ receiveMsg()
| bool CANPeakSysUSB::receiveMsg |
( |
CanMsg * |
pCMsg | ) |
|
|
virtual |
◆ receiveMsgRetry()
| bool CANPeakSysUSB::receiveMsgRetry |
( |
CanMsg * |
pCMsg, |
|
|
int |
iNrOfRetry |
|
) |
| |
|
virtual |
Reads a CAN message. The function blocks between the attempts.
- Parameters
-
| pCMsg | CAN message |
| iNrOfRetry | number of retries |
- Returns
- true if a message is available
Implements CanItf.
Definition at line 199 of file CanPeakSysUSB.cpp.
◆ receiveMsgTimeout()
| bool CANPeakSysUSB::receiveMsgTimeout |
( |
CanMsg * |
pCMsg, |
|
|
int |
nMicroSecTimeout |
|
) |
| |
|
virtual |
Reads a CAN message with timeout.
- Parameters
-
| pCMsg | CAN message |
| nMicroSecTimeout | timeout in us |
- Returns
- true if a message is available
Implements CanItf.
Definition at line 245 of file CanPeakSysUSB.cpp.
◆ transmitMsg()
| bool CANPeakSysUSB::transmitMsg |
( |
CanMsg |
CMsg, |
|
|
bool |
bBlocking = true |
|
) |
| |
|
virtual |
Sends a CAN message.
- Parameters
-
| pCMsg | CAN message |
| bBlocking | specifies whether send should be blocking or non-blocking |
Implements CanItf.
Definition at line 105 of file CanPeakSysUSB.cpp.
◆ c_iInterrupt
| const int CANPeakSysUSB::c_iInterrupt |
|
staticprivate |
◆ c_iPort
| const int CANPeakSysUSB::c_iPort |
|
staticprivate |
◆ m_bInitialized
| bool CANPeakSysUSB::m_bInitialized |
|
private |
◆ m_bSimuEnabled
| bool CANPeakSysUSB::m_bSimuEnabled |
|
private |
◆ m_handle
| HANDLE CANPeakSysUSB::m_handle |
|
private |
◆ m_iBaudrateVal
| int CANPeakSysUSB::m_iBaudrateVal |
|
private |
◆ m_IniFile
◆ p_cDevice
| const char* CANPeakSysUSB::p_cDevice |
|
private |
The documentation for this class was generated from the following files: