#include <CanPeakSysUSB.h>
Public Member Functions | |
CANPeakSysUSB (const char *cIniFile) | |
void | destroy () |
void | init () |
bool | isObjectMode () |
bool | receiveMsg (CanMsg *pCMsg) |
bool | receiveMsgRetry (CanMsg *pCMsg, int iNrOfRetry) |
bool | transmitMsg (CanMsg CMsg, bool bBlocking=true) |
~CANPeakSysUSB () | |
Private Member Functions | |
bool | initCAN () |
void | outputDetailedStatus () |
Private Attributes | |
bool | m_bInitialized |
bool | m_bSimuEnabled |
HANDLE | m_handle |
int | m_iBaudrateVal |
IniFile | m_IniFile |
Static Private Attributes | |
static const int | c_iInterrupt |
static const int | c_iPort |
Definition at line 62 of file CanPeakSysUSB.h.
CANPeakSysUSB::CANPeakSysUSB | ( | const char * | cIniFile | ) |
Definition at line 66 of file CanPeakSysUSB.cpp.
Definition at line 77 of file CanPeakSysUSB.cpp.
void CANPeakSysUSB::destroy | ( | ) | [inline] |
Definition at line 69 of file CanPeakSysUSB.h.
void CANPeakSysUSB::init | ( | ) | [virtual] |
bool CANPeakSysUSB::initCAN | ( | ) | [private] |
Definition at line 249 of file CanPeakSysUSB.cpp.
bool CANPeakSysUSB::isObjectMode | ( | ) | [inline, virtual] |
Check if the current CAN interface was opened on OBJECT mode.
Implements CanItf.
Definition at line 73 of file CanPeakSysUSB.h.
void CANPeakSysUSB::outputDetailedStatus | ( | ) | [private] |
Definition at line 294 of file CanPeakSysUSB.cpp.
bool CANPeakSysUSB::receiveMsg | ( | CanMsg * | pCMsg | ) | [virtual] |
Reads a CAN message.
Implements CanItf.
Definition at line 167 of file CanPeakSysUSB.cpp.
bool CANPeakSysUSB::receiveMsgRetry | ( | CanMsg * | pCMsg, |
int | iNrOfRetry | ||
) | [virtual] |
Reads a CAN message. The function blocks between the attempts.
pCMsg | CAN message |
iNrOfRetry | number of retries |
Implements CanItf.
Definition at line 205 of file CanPeakSysUSB.cpp.
bool CANPeakSysUSB::transmitMsg | ( | CanMsg | CMsg, |
bool | bBlocking = true |
||
) | [virtual] |
Sends a CAN message.
pCMsg | CAN message |
bBlocking | specifies whether send should be blocking or non-blocking |
Implements CanItf.
Definition at line 112 of file CanPeakSysUSB.cpp.
const int CANPeakSysUSB::c_iInterrupt [static, private] |
Definition at line 84 of file CanPeakSysUSB.h.
const int CANPeakSysUSB::c_iPort [static, private] |
Definition at line 85 of file CanPeakSysUSB.h.
bool CANPeakSysUSB::m_bInitialized [private] |
Definition at line 79 of file CanPeakSysUSB.h.
bool CANPeakSysUSB::m_bSimuEnabled [private] |
Definition at line 81 of file CanPeakSysUSB.h.
HANDLE CANPeakSysUSB::m_handle [private] |
Definition at line 77 of file CanPeakSysUSB.h.
int CANPeakSysUSB::m_iBaudrateVal [private] |
Definition at line 82 of file CanPeakSysUSB.h.
IniFile CANPeakSysUSB::m_IniFile [private] |
Definition at line 80 of file CanPeakSysUSB.h.