|
MIRA
|
A driver for the MetraLabs CAN device. More...
#include <can/CANDriverMLCAN.h>

Public Member Functions | |
| CANDriverMLCAN () | |
| Default constructor. More... | |
| virtual | ~CANDriverMLCAN () |
| The destructor. More... | |
| Class const & | getClass () const |
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... | |
A driver for the MetraLabs CAN device.
| CANDriverMLCAN | ( | ) |
Default 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.
1.8.14