MIRA
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
PowerSupplyPort_v0 Class Referenceabstract

Function block for charger power supply ports (0x02010001) More...

#include <functionblock/PowerSupplyPort.h>

Inheritance diagram for PowerSupplyPort_v0:
Inheritance graph
[legend]

Public Member Functions

 PowerSupplyPort_v0 ()
 Constructor. More...
 
virtual ~PowerSupplyPort_v0 ()
 Destructor. More...
 
template<typename Reflector >
void reflect (Reflector &r)
 Reflect for serialization. More...
 
bool isCharging ()
 Is the power supply enabled. More...
 
float getVoltage ()
 Return the current voltage. More...
 
float getCurrent ()
 Return the current current. More...
 
Class const & getClass () const
 
Other functions
void checkFunctionBlockID ()
 

Static Public Member Functions

static PseudoClass const & CLASS ()
 

Public Attributes

uint32 functionBlockID
 ID of the function block. More...
 
uint8 nodeID
 ID of the can node. More...
 
uint16 index
 Index. More...
 
mira::can::CANOpenSDOClientPtr sdoClient
 

Protected Member Functions

virtual Class const & internalGetClass () const=0
 

Protected Attributes

uint8 subIndexIsCharging
 Subindex for charging flag. More...
 
uint8 subIndexVoltage
 Subindex for retrieving the voltage. More...
 
uint8 subIndexCurrent
 Subindex for retrieving the current. More...
 

Detailed Description

Function block for charger power supply ports (0x02010001)

Constructor & Destructor Documentation

◆ PowerSupplyPort_v0()

PowerSupplyPort_v0 ( )
inline

Constructor.

◆ ~PowerSupplyPort_v0()

virtual ~PowerSupplyPort_v0 ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

Reflect for serialization.

◆ isCharging()

bool isCharging ( )
inline

Is the power supply enabled.

◆ getVoltage()

float getVoltage ( )
inline

Return the current voltage.

◆ getCurrent()

float getCurrent ( )
inline

Return the current current.

◆ checkFunctionBlockID()

void checkFunctionBlockID ( )
inherited

Member Data Documentation

◆ subIndexIsCharging

uint8 subIndexIsCharging
protected

Subindex for charging flag.

◆ subIndexVoltage

uint8 subIndexVoltage
protected

Subindex for retrieving the voltage.

◆ subIndexCurrent

uint8 subIndexCurrent
protected

Subindex for retrieving the current.

◆ functionBlockID

uint32 functionBlockID
inherited

ID of the function block.

◆ nodeID

uint8 nodeID
inherited

ID of the can node.

◆ index

uint16 index
inherited

Index.

Pointer to the SDO client

◆ sdoClient

mira::can::CANOpenSDOClientPtr sdoClient
inherited

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