A Controller which interacts with the CANPie platform to address the physical controller. More...
#include <CANPieController.hpp>
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 |
CANBusInterface * | bus |
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 CANPieController * | controller [CP_CHANNEL_MAX] |
A Controller which interacts with the CANPie platform to address the physical controller.
Definition at line 48 of file CANPieController.hpp.
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 84 of file CANPieController.cpp.