#include <CANOpenBus.hpp>

Public Member Functions | |
| CANOpenBus () | |
| Create a CANBus instance with no devices attached to it. | |
| void | sync () |
| Write a SYNC message to the bus. | |
| void | setController (CANControllerInterface *contr) |
| Specify the controller for this bus. | |
| virtual bool | addDevice (CANDeviceInterface *dev) |
| Register a CANDeviceInterface instance to the bus. | |
| virtual bool | addListener (CANListenerInterface *dev) |
| Register a CANListenerInterface instance to the bus. | |
| virtual void | removeDevice (CANDeviceInterface *dev) |
| Remove a CANDeviceInterface from the bus. | |
| virtual void | removeListener (CANListenerInterface *dev) |
| Remove a CANListenerInterface from the bus. | |
| virtual void | write (const CANMessage *msg) |
| Write a CANMessage to the bus. | |
Static Public Attributes | |
| static const unsigned int | MAX_DEVICES = 127 |
Protected Attributes | |
| list< CANDeviceInterface * > | devices |
| list< CANListenerInterface * > | listeners |
| CANControllerInterface * | controller |
Definition at line 50 of file CANOpenBus.hpp.
| CANOpenBus | ( | ) | [inline] |
Create a CANBus instance with no devices attached to it.
A controller device needs to be added to put on and receive messages from the bus.
| _controller | The Controller of the bus. |
Definition at line 63 of file CANOpenBus.hpp.
References CANMessage::setStdId().
| virtual bool addDevice | ( | CANDeviceInterface * | dev | ) | [inline, virtual] |
Register a CANDeviceInterface instance to the bus.
| dev | The device to be added to the bus. |
Implements CANBusInterface.
Definition at line 83 of file CANOpenBus.hpp.
| virtual bool addListener | ( | CANListenerInterface * | dev | ) | [inline, virtual] |
Register a CANListenerInterface instance to the bus.
| dev | The listener to be added to the bus. |
Implements CANBusInterface.
Definition at line 92 of file CANOpenBus.hpp.
| virtual void removeDevice | ( | CANDeviceInterface * | dev | ) | [inline, virtual] |
Remove a CANDeviceInterface from the bus.
| dev | The device to be removed from the bus. |
Implements CANBusInterface.
Definition at line 101 of file CANOpenBus.hpp.
| virtual void removeListener | ( | CANListenerInterface * | dev | ) | [inline, virtual] |
Remove a CANListenerInterface from the bus.
| dev | The listener to be removed from the bus. |
Implements CANBusInterface.
Definition at line 109 of file CANOpenBus.hpp.
| virtual void write | ( | const CANMessage * | msg | ) | [inline, virtual] |
Write a CANMessage to the bus.
CANDevices can use this to put data on the CANBus. When this call returns, you are still the owner of msg.
| msg | A CANMessage which will be put on the bus. |
Implements CANBusInterface.
Definition at line 117 of file CANOpenBus.hpp.
References CANMessage::origin, and CANListenerInterface::process().
Referenced by CANOpenBus::sync().
1.5.8