iCub-main
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
BcbBattery Class Reference

#include <bcbBattery.h>

+ Inheritance diagram for BcbBattery:

Public Member Functions

 BcbBattery ()
 
 ~BcbBattery ()
 
virtual bool open (yarp::os::Searchable &config)
 
virtual bool close ()
 
virtual bool getBatteryVoltage (double &voltage) override
 
virtual bool getBatteryCurrent (double &current) override
 
virtual bool getBatteryCharge (double &charge) override
 
virtual bool getBatteryStatus (Battery_status &status) override
 
virtual bool getBatteryInfo (std::string &info) override
 
virtual bool getBatteryTemperature (double &temperature) override
 

Protected Attributes

batteryReaderThreadbatteryReader =nullptr
 
ResourceFinder rf
 
PolyDriver driver
 
ISerialDevice * iSerial = nullptr
 

Detailed Description

Definition at line 71 of file bcbBattery.h.

Constructor & Destructor Documentation

◆ BcbBattery()

BcbBattery::BcbBattery ( )
inline

Definition at line 81 of file bcbBattery.h.

◆ ~BcbBattery()

BcbBattery::~BcbBattery ( )
inline

Definition at line 82 of file bcbBattery.h.

Member Function Documentation

◆ close()

bool BcbBattery::close ( )
virtual

Definition at line 94 of file bcbBattery.cpp.

◆ getBatteryCharge()

bool BcbBattery::getBatteryCharge ( double &  charge)
overridevirtual

Definition at line 241 of file bcbBattery.cpp.

◆ getBatteryCurrent()

bool BcbBattery::getBatteryCurrent ( double &  current)
overridevirtual

Definition at line 233 of file bcbBattery.cpp.

◆ getBatteryInfo()

bool BcbBattery::getBatteryInfo ( std::string &  info)
overridevirtual

Definition at line 264 of file bcbBattery.cpp.

◆ getBatteryStatus()

bool BcbBattery::getBatteryStatus ( Battery_status &  status)
overridevirtual

Definition at line 249 of file bcbBattery.cpp.

◆ getBatteryTemperature()

bool BcbBattery::getBatteryTemperature ( double &  temperature)
overridevirtual

Definition at line 257 of file bcbBattery.cpp.

◆ getBatteryVoltage()

bool BcbBattery::getBatteryVoltage ( double &  voltage)
overridevirtual

Definition at line 225 of file bcbBattery.cpp.

◆ open()

bool BcbBattery::open ( yarp::os::Searchable &  config)
virtual

Definition at line 36 of file bcbBattery.cpp.

Member Data Documentation

◆ batteryReader

batteryReaderThread* BcbBattery::batteryReader =nullptr
protected

Definition at line 74 of file bcbBattery.h.

◆ driver

PolyDriver BcbBattery::driver
protected

Definition at line 77 of file bcbBattery.h.

◆ iSerial

ISerialDevice* BcbBattery::iSerial = nullptr
protected

Definition at line 78 of file bcbBattery.h.

◆ rf

ResourceFinder BcbBattery::rf
protected

Definition at line 76 of file bcbBattery.h.


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