A Generic configuration class for sending multiple CANRequest 's on a bus and waiting for each answer. More...
#include <CANConfigurator.hpp>
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 | |
| CANBusInterface * | bus |
|
std::vector< std::pair < CANRequest *, bool > >::iterator | it |
| bool | status |
| True if the config is finished. | |
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.
| void addRequest | ( | CANRequest * | req, | |
| bool | weakcheck = false | |||
| ) | [inline] |
Add a CANRequest for configuration.
| 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.
1.6.3