An interface describing a virtual CANBus. More...
#include <CANBusInterface.hpp>
Public Member Functions | |
| virtual void | setController (CANControllerInterface *c)=0 |
| Specify the controller for this bus. | |
| virtual bool | addDevice (CANDeviceInterface *dev)=0 |
| Register a CANDeviceInterface instance to the bus. | |
| virtual void | removeDevice (CANDeviceInterface *dev)=0 |
| Remove a CANDeviceInterface from the bus. | |
| virtual bool | addListener (CANListenerInterface *dev)=0 |
| Register a CANListenerInterface instance to the bus. | |
| virtual void | removeListener (CANListenerInterface *dev)=0 |
| Remove a CANListenerInterface from the bus. | |
| virtual void | write (const CANMessage *msg)=0 |
| Write a CANMessage to the bus. | |
| virtual CANControllerInterface * | getController ()=0 |
| Get the controller for this bus. | |
An interface describing a virtual CANBus.
Definition at line 43 of file CANBusInterface.hpp.
| virtual bool addDevice | ( | CANDeviceInterface * | dev | ) | [pure virtual] |
Register a CANDeviceInterface instance to the bus.
| dev | The device to be added to the bus. |
Implemented in CANBus.
Referenced by CANRequest::sendTo().
| virtual bool addListener | ( | CANListenerInterface * | dev | ) | [pure virtual] |
Register a CANListenerInterface instance to the bus.
| dev | The listener to be added to the bus. |
Implemented in CANBus.
| virtual void removeDevice | ( | CANDeviceInterface * | dev | ) | [pure virtual] |
Remove a CANDeviceInterface from the bus.
| dev | The device to be removed from the bus. |
Implemented in CANBus.
Referenced by CANRequest::abort().
| virtual void removeListener | ( | CANListenerInterface * | dev | ) | [pure virtual] |
Remove a CANListenerInterface from the bus.
| dev | The listener to be removed from the bus. |
Implemented in CANBus.
| virtual void write | ( | const CANMessage * | msg | ) | [pure 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. |
Implemented in CANBus.
Referenced by SocketCANController::readFromBuffer(), CANPieController::receive(), and CANRequest::sendTo().
1.6.3