CANDeviceInterface Struct Reference

An interface describing a generic CANOpenDevice. More...

#include <CANDeviceInterface.hpp>

Inheritance diagram for CANDeviceInterface:

CANListenerInterface CANControllerInterface CANDummyDevice CANRequest CANPieController PCANController

List of all members.

Public Types

enum  NodeStatus {
  PowerOff, Initialisation, PreOperational, Stopped,
  Operational
}
 The CANOpen State Diagram of a Device.

Public Member Functions

 CANDeviceInterface ()
 A CANDevice is in the PowerOff status after construction.
virtual unsigned int nodeId () const =0
 Returns the node ID of this device.
virtual void process (const CANMessage *msg)=0
 This method instructs the CANDeviceInterface instance to process a certain CANMessage.

Public Attributes

NodeStatus status
 The state of this device.


Detailed Description

An interface describing a generic CANOpenDevice.

This can be the controller or a normal slave. CANOpen devices on a CANOpenBus receive only CANMessage objects for their node id.

See also:
CANOpenBus for message delivery between your CANOpen devices.

CANMessage for (de-)composing messages.

Definition at line 62 of file CANDeviceInterface.hpp.


Member Function Documentation

virtual void process ( const CANMessage msg  )  [pure virtual, inherited]

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.

Implemented in CANDummyDevice, CANPieController, CANRequest, NodeGuard, and PCANController.

Referenced by CANOpenBus::write().


The documentation for this struct was generated from the following file:

Generated on Tue Aug 25 14:09:55 2009 for OrocosComponentLibrary by  doxygen 1.5.8