yarp-devices
|
Set of SDO configuration values for a PdoProtocol. More...
#include <PdoProtocol.hpp>
Classes | |
struct | Private |
Public Member Functions | |
PdoConfiguration () | |
Constructor. | |
~PdoConfiguration () | |
Destructor. | |
PdoConfiguration (const PdoConfiguration &) | |
Copy constructor. | |
PdoConfiguration & | operator= (const PdoConfiguration &) |
Copy assignment operator. | |
PdoConfiguration & | setValid (bool value) |
Set or reset valid bit. | |
PdoConfiguration & | setRtr (bool value) |
Set or reset RTR bit. | |
PdoConfiguration & | setTransmissionType (PdoTransmissionType value) |
Set transmission type. | |
PdoConfiguration & | setInhibitTime (std::uint16_t value) |
Set inhibit time. | |
PdoConfiguration & | setEventTimer (std::uint16_t value) |
Set event timer. | |
PdoConfiguration & | setSyncStartValue (std::uint8_t value) |
Set sync start value. | |
template<typename T > | |
PdoConfiguration & | addMapping (std::uint16_t index, std::uint8_t subindex=0x00) |
Configure PDO mapping, uses template parameter to deduce object size. | |
Private Member Functions | |
void | addMappingInternal (std::uint32_t value) |
Private Attributes | |
friend | PdoProtocol |
Private * | priv |
This class manages optional values via chainable setters. Unless a setter has been called by client code, no configuration will be applied for its related value. For instance: if setInhibitTime is never called, PdoProtocol will not attempt to create and send a SDO package that configures the inhibit time of the RPDO on the drive side.