MIRA
|
CAN Driver for hardware from PeakSystems (www.peak-systems.com) More...
#include <can/CANDriverPCAN.h>
Public Member Functions | |
Class const & | getClass () const |
Constructor and destructor | |
CANDriverPCAN () | |
The constructor. More... | |
virtual | ~CANDriverPCAN () |
The destructor. More... | |
Implementation of class CANDriver | |
virtual std::string | getDriverInfo () |
Get some information about the driver. More... | |
virtual void | open () |
Open the CAN driver. More... | |
virtual void | close () |
Close the CAN driver. More... | |
virtual CANStatusFlags | getStatus () |
Return the status of the CAN driver. More... | |
virtual void | sendMessage (const CANMessage &msg) |
Send a new message over the CAN bus. More... | |
virtual bool | waitForNextMessage (Duration timeout) |
Wait until a next message is available or until the timeout is reached. More... | |
virtual void | receiveMessage (CANMessage &oMsg, Time &oReceiveTime) |
Receive a new message over the CAN bus. More... | |
Constructor, destructor and reflect | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
The reflect method. More... | |
General methods | |
CANBaudRate | getBaudRate () const |
Return the current baud rate. More... | |
void | setBaudRate (const CANBaudRate &baudRate) |
Set the baud rate. More... | |
std::string | getDeviceName () const |
Return the device name for the CAN bus. More... | |
void | setDeviceName (const std::string &deviceName) |
Set the device name. More... | |
Static Public Member Functions | |
static PseudoClass const & | CLASS () |
Protected Member Functions | |
virtual Class const & | internalGetClass () const=0 |
Protected Attributes | |
std::string | mDeviceName |
The device name. More... | |
CANBaudRate | mBaudRate |
Used baud rate. More... | |
CAN Driver for hardware from PeakSystems (www.peak-systems.com)
CANDriverPCAN | ( | ) |
The constructor.
|
virtual |
The destructor.
|
virtual |
|
virtual |
Open the CAN driver.
Implements CANDriver.
|
virtual |
Close the CAN driver.
Implements CANDriver.
|
virtual |
|
virtual |
|
virtual |
Wait until a next message is available or until the timeout is reached.
[in] | timeout | How long should we wait for a new message. |
Implements CANDriver.
|
virtual |
|
inlineinherited |
The reflect method.
|
inlineinherited |
Return the current baud rate.
|
inlineinherited |
Set the baud rate.
[in] | baudRate | The baud rate. |
|
inlineinherited |
Return the device name for the CAN bus.
|
inlineinherited |
Set the device name.
[in] | deviceName | The device name. |
|
protectedinherited |
The device name.
|
protectedinherited |
Used baud rate.