RTCANController Class Reference

A Controller which interacts with the Real-time CAN driver under Xenomai. More...

#include <RTCANController.hpp>

Inheritance diagram for RTCANController:
CANControllerInterface CANDeviceInterface CANListenerInterface

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

RTCANController ( int  priority,
std::string  dev_name,
int  timeout 
)

Create a real-time socket CAN controller.

Parameters:
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.


Member Function Documentation

void process ( const CANMessage msg  )  [virtual]

This method instructs the CANDeviceInterface instance to process a certain CANMessage.

You are not the owner of msg.

Parameters:
msg The message to be processed by this instance.
Invariant:
Only this may be removed from the CANBusInterface during process.

Implements CANListenerInterface.

Definition at line 166 of file RTCANController.cpp.

References CANMessage::getData(), CANMessage::getDLC(), and CANMessage::isRemote().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 15:05:29 2010 for OrocosComponentLibrary by  doxygen 1.6.3