CANPieController Class Reference

A Controller which interacts with the CANPie platform to address the physical controller. More...

#include <CANPieController.hpp>

Inheritance diagram for CANPieController:
CANControllerInterface CANDeviceInterface CANListenerInterface

List of all members.

Public Member Functions

 CANPieController (double period, bool interrupt=false)
 Create a CANPie Controller and indicate if received messages are put on the bus with an interrupt or if they are polled.
bool initialize ()
void step ()
void finalize ()
virtual void addBus (unsigned int chan, CANBusInterface *_bus)
virtual void process (const CANMessage *msg)
 This method instructs the CANDeviceInterface instance to process a certain CANMessage.
virtual unsigned int nodeId () const
bool readFromBuffer (CANMessage &msg)
bool writeToBuffer (const CANMessage &msg)

Static Public Member Functions

static unsigned int ReceiveIntHandler (unsigned int channel, CpStruct_CAN *msg)

Protected Member Functions

int receive (CpStruct_CAN *msg)
 This method is called by the ReceiveIntHandler in response to an interrupt.

Protected Attributes

int CANPieStatus
int CANPieChannel
CANBusInterfacebus
bool process_in_int
CANMessage CANmsg
unsigned int total_recv
unsigned int total_trns
unsigned int failed_recv
unsigned int failed_trns
unsigned int generic_trns

Static Protected Attributes

static CANPieControllercontroller [CP_CHANNEL_MAX]

Detailed Description

A Controller which interacts with the CANPie platform to address the physical controller.

Definition at line 48 of file CANPieController.hpp.


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 84 of file CANPieController.cpp.


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