MIRA
|
Base class for SCITOS modules that act as power supply. More...
#include <CANPowerSupply.h>
Public Member Functions | |
Constructor, destructor and reflect | |
CANPowerSupply () | |
Constructor. More... | |
virtual | ~CANPowerSupply () |
Destructor. More... | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
Reflect for serialization. More... | |
Setters and getters | |
void | setMaxCurrent (float current) |
Set the maximum current. More... | |
float | getMaxCurrent () |
Return the maximum value for current. More... | |
void | enable (bool enable) |
Enable the power supply. More... | |
bool | isEnabled () |
Is the power supply enabled. More... | |
float | getCurrent () |
Return the current current. More... | |
float | getVoltage () |
Return the current voltage. More... | |
virtual std::string | getStatus () |
Return the status [(on,off)|error] of the power supply. More... | |
Public Attributes | |
uint8 | nodeID |
Id of the can node. More... | |
uint16 | index |
Index. More... | |
uint8 | subIndexEnable |
Subindex for enabling the power supply. More... | |
uint8 | subIndexMaxCurrent |
Subindex for setting/retrieving max current. More... | |
uint8 | subIndexCurrent |
Subindex for retrieving the current. More... | |
uint8 | subIndexVoltage |
Subindex for retrieving the voltage. More... | |
uint8 | subIndexStatus |
Subindex for retrieving the status. More... | |
mira::can::CANOpenSDOClientPtr | sdoClient |
bool | hasVoltage |
Does this supply support reading voltage information. More... | |
Base class for SCITOS modules that act as power supply.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
Reflect for serialization.
|
inline |
Set the maximum current.
|
inline |
Return the maximum value for current.
|
inline |
Enable the power supply.
|
inline |
Is the power supply enabled.
|
inline |
Return the current current.
|
inline |
Return the current voltage.
|
inlinevirtual |
Return the status [(on,off)|error] of the power supply.
uint8 nodeID |
Id of the can node.
uint16 index |
Index.
uint8 subIndexEnable |
Subindex for enabling the power supply.
uint8 subIndexMaxCurrent |
Subindex for setting/retrieving max current.
uint8 subIndexCurrent |
Subindex for retrieving the current.
uint8 subIndexVoltage |
Subindex for retrieving the voltage.
uint8 subIndexStatus |
Subindex for retrieving the status.
Pointer to the SDO client
mira::can::CANOpenSDOClientPtr sdoClient |
bool hasVoltage |
Does this supply support reading voltage information.