A Controller which interacts with the Real-time CAN driver under Xenomai. More...
#include <RTCANController.hpp>
Public Member Functions | |
| RTCANController (int priority, std::string dev_name, int timeout) | |
| Create a real-time socket CAN controller. | |
| bool | initialize () |
| void | loop () |
| bool | breakLoop () |
| void | finalize () |
| virtual void | addBus (CANBusInterface *bus) |
| virtual void | process (const CANMessage *msg) |
| This method instructs the CANDeviceInterface instance to process a certain CANMessage. | |
| bool | readFromBuffer (void) |
A Controller which interacts with the Real-time CAN driver under Xenomai.
It is tested with the PCI CAN card from Peak-Systems.
Definition at line 19 of file RTCANController.hpp.
| RTCANController | ( | int | priority, | |
| std::string | dev_name, | |||
| int | timeout | |||
| ) |
Create a real-time socket CAN controller.
| priority | The priority of the activity | |
| dev_name | The name of the socket CAN device. E.g. if you are using rtcan0, dev_name is rtcan0 | |
| timeout | reception timeout of the socket in ms |
Definition at line 39 of file RTCANController.cpp.
| void process | ( | const CANMessage * | msg | ) | [virtual] |
This method instructs the CANDeviceInterface instance to process a certain CANMessage.
You are not the owner of msg.
| msg | The message to be processed by this instance. |
Implements CANListenerInterface.
Definition at line 166 of file RTCANController.cpp.
References CANMessage::getData(), CANMessage::getDLC(), and CANMessage::isRemote().
1.6.3