trikRuntime
trikControl::BatteryInterface Class Referenceabstract

Provides battery voltage info. More...

#include <batteryInterface.h>

Inheritance diagram for trikControl::BatteryInterface:
Collaboration diagram for trikControl::BatteryInterface:

Public Slots

virtual float readVoltage ()=0
 Returns current battery voltage in volts. More...
 
virtual float readRawDataVoltage ()=0
 Returns current raw reading of battery. More...
 

Additional Inherited Members

- Public Types inherited from trikControl::DeviceInterface
enum  Status {
  Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting,
  Status::ready, Status::stopping
}
 Device status. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 
virtual Status status () const =0
 Returns current status of the device. More...
 
- Static Public Member Functions inherited from trikControl::DeviceInterface
static Status combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent)
 Helper method to return status of a device relying on other device to work. More...
 

Detailed Description

Provides battery voltage info.

Member Function Documentation

virtual float trikControl::BatteryInterface::readRawDataVoltage ( )
pure virtualslot

Returns current raw reading of battery.

virtual float trikControl::BatteryInterface::readVoltage ( )
pure virtualslot

Returns current battery voltage in volts.


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