iCub-main
Public Member Functions | List of all members
embObjCanBatterysensor_Mock Class Reference
+ Inheritance diagram for embObjCanBatterysensor_Mock:

Public Member Functions

 embObjCanBatterysensor_Mock (std::shared_ptr< yarp::dev::embObjDevPrivData > device)
 
 embObjCanBatterysensor_Mock ()
 
 MOCK_METHOD (double, calculateBoardTime,(eOabstime_t),(override))
 
- Public Member Functions inherited from yarp::dev::embObjBattery
 embObjBattery ()
 
 embObjBattery (std::shared_ptr< yarp::dev::embObjDevPrivData > device)
 
 ~embObjBattery ()
 
bool open (yarp::os::Searchable &config)
 
bool close ()
 
bool initialised () override
 
eth::iethresType_t type () override
 
bool update (eOprotID32_t id32, double timestamp, void *rxdata) override
 
bool getBatteryVoltage (double &voltage) override
 
bool getBatteryCurrent (double &current) override
 
bool getBatteryCharge (double &charge) override
 
bool getBatteryStatus (Battery_status &status) override
 
bool getBatteryTemperature (double &temperature) override
 
bool getBatteryInfo (std::string &battery_info) override
 
virtual double calculateBoardTime (eOabstime_t current)
 
- Public Member Functions inherited from eth::IethResource
virtual ~IethResource ()
 
const char * stringOfType ()
 
virtual bool getEntityName (uint32_t entityId, std::string &entityName)
 

Additional Inherited Members

- Protected Member Functions inherited from yarp::dev::embObjBattery
bool sendConfig2boards (ServiceParserCanBattery &parser, eth::AbstractEthResource *deviceRes)
 
bool sendStart2boards (ServiceParserCanBattery &parser, eth::AbstractEthResource *deviceRes)
 
bool initRegulars (ServiceParserCanBattery &parser, eth::AbstractEthResource *deviceRes)
 
void cleanup (void)
 
bool checkUpdateTimeout (eOprotID32_t id32, eOabstime_t current)
 
std::string updateStatusStringStream (const uint16_t &currStatus, const uint16_t &prevStatus, bool isFirstLoop)
 
- Protected Attributes inherited from yarp::dev::embObjBattery
std::shared_ptr< yarp::dev::embObjDevPrivDatadevice_
 
std::shared_mutex mutex_
 
CanBatteryData canBatteryData_
 
std::map< eOprotID32_t, eOabstime_t > timeoutUpdate_
 
std::vector< yarp::dev::MAS_status > masStatus_ {MAS_OK, MAS_OK, MAS_OK, MAS_OK}
 
bool isCanDataAvailable = false
 
bool isPastFirstPrint = false
 
double firstYarpTimestamp_ {0}
 
eOabstime_t firstCanTimestamp_ {0}
 
- Static Protected Attributes inherited from yarp::dev::embObjBattery
static constexpr eOabstime_t updateTimeout_ {11000}
 
static constexpr bool checkUpdateTimeoutFlag_ {false}
 
static constexpr bool useBoardTimeFlag_ {true}
 

Detailed Description

Definition at line 33 of file testDeviceCanBatterySensor.cpp.

Constructor & Destructor Documentation

◆ embObjCanBatterysensor_Mock() [1/2]

embObjCanBatterysensor_Mock::embObjCanBatterysensor_Mock ( std::shared_ptr< yarp::dev::embObjDevPrivData device)
inline

Definition at line 43 of file testDeviceCanBatterySensor.cpp.

◆ embObjCanBatterysensor_Mock() [2/2]

embObjCanBatterysensor_Mock::embObjCanBatterysensor_Mock ( )
inline

Definition at line 44 of file testDeviceCanBatterySensor.cpp.

Member Function Documentation

◆ MOCK_METHOD()

embObjCanBatterysensor_Mock::MOCK_METHOD ( double  ,
calculateBoardTime  ,
(eOabstime_t)  ,
(override)   
)

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