iCub-main
Loading...
Searching...
No Matches
icub-main
src
libraries
icubmod
embObjLib
batteryInfo.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2022 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
* Author: Luca Tricerri
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
#ifndef _BATTERYINFO_H_
10
#define _BATTERYINFO_H_
11
12
#include <string>
13
14
#include "EoAnalogSensors.h"
15
16
class
BatteryInfo
17
{
18
public
:
19
uint8_t
acquisitionRate
{0};
20
eObrd_type_t
board
{eobrd_unknown};
21
int
port
{0};
22
int
address
{0};
23
int
majorProtocol
{0};
24
int
minorProtocol
{0};
25
int
majorFirmware
{0};
26
int
minorFirmware
{0};
27
int
buildFirmware
{0};
28
29
bool
toEomn
(eOas_battery_sensordescriptor_t&
out
)
const
;
30
};
31
32
bool
operator==
(
const
BatteryInfo
& right,
const
BatteryInfo
& left);
33
bool
operator!=
(
const
BatteryInfo
& right,
const
BatteryInfo
& left);
34
35
#endif
// include-guard
operator==
bool operator==(const BatteryInfo &right, const BatteryInfo &left)
Definition
batteryInfo.cpp:44
operator!=
bool operator!=(const BatteryInfo &right, const BatteryInfo &left)
Definition
batteryInfo.cpp:67
BatteryInfo
Definition
batteryInfo.h:17
BatteryInfo::buildFirmware
int buildFirmware
Definition
batteryInfo.h:27
BatteryInfo::minorProtocol
int minorProtocol
Definition
batteryInfo.h:24
BatteryInfo::address
int address
Definition
batteryInfo.h:22
BatteryInfo::toEomn
bool toEomn(eOas_battery_sensordescriptor_t &out) const
Definition
batteryInfo.cpp:14
BatteryInfo::board
eObrd_type_t board
Definition
batteryInfo.h:20
BatteryInfo::minorFirmware
int minorFirmware
Definition
batteryInfo.h:26
BatteryInfo::acquisitionRate
uint8_t acquisitionRate
Definition
batteryInfo.h:19
BatteryInfo::port
int port
Definition
batteryInfo.h:21
BatteryInfo::majorProtocol
int majorProtocol
Definition
batteryInfo.h:23
BatteryInfo::majorFirmware
int majorFirmware
Definition
batteryInfo.h:25
out
out
Definition
sine.m:8
Generated on Wed Dec 18 2024 16:34:46 for iCub-main by
1.9.8