CANConfigurator Class Reference

A Generic configuration class for sending multiple CANRequest 's on a bus and waiting for each answer. More...

#include <CANConfigurator.hpp>

List of all members.

Public Member Functions

 CANConfigurator (CANBusInterface *_bus)
 Create a CAN Device Configurator.
void addRequest (CANRequest *req, bool weakcheck=false)
 Add a CANRequest for configuration.
virtual void configInit ()
virtual bool configStep ()
 A stepwise configuration of the device.
virtual bool isFinished () const
virtual void configCleanup ()

Protected Attributes

CANBusInterfacebus
std::vector< std::pair
< CANRequest *, bool >
>::iterator 
it
bool status
 True if the config is finished.

Detailed Description

A Generic configuration class for sending multiple CANRequest 's on a bus and waiting for each answer.

Definition at line 54 of file CANConfigurator.hpp.


Member Function Documentation

void addRequest ( CANRequest req,
bool  weakcheck = false 
) [inline]

Add a CANRequest for configuration.

Parameters:
req It is owned by the CANConfigurator.
weakcheck Set to true for non strict checking of received message. Only the COBId is checked to match the expected value in that case.

Definition at line 75 of file CANConfigurator.hpp.

virtual bool configStep (  )  [inline, virtual]

A stepwise configuration of the device.

returns false if it fatally failed.

Definition at line 90 of file CANConfigurator.hpp.

References CANConfigurator::status.


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