|

INTRODUCTION
Overview
Download and Install
Documentation
Publications
REPOSITORY
Libraries
DEVELOPER
Dev Guide
Dashboard
PEOPLE
Contributors
Users

Project
Download
Mailing lists
|
|
|
11 #ifndef GBX_SMARTBATTERY_PARSING_H
12 #define GBX_SMARTBATTERY_PARSING_H
19 #include <gbxutilacfr/tracer.h>
21 namespace gbxsmartbatteryacfr
26 void readFlags( const std::string &str,
27 std::vector<bool> &flags );
31 double readTemperature( const std::string &str );
35 double readCurrent( const std::string &str );
39 double readVoltage( const std::string &str );
43 int readNumBatteries( const std::string &str );
47 int readPercentWord( const std::string &str );
51 int readPercentByte( const std::string &str );
55 int readMinutes( const std::string &str );
59 int readCapacity( const std::string &str );
63 uint16_t read16Flags( const std::string &str );
67 int readCount( const std::string &str );
71 int readNumber( const std::string &str );
75 int readRate( const std::string &str );
79 bool isChecksumValid( const std::string &input,
80 const std::string &expected );
84 void toKeyValuePairs( const std::vector<std::string> &fields,
85 std::map<std::string,std::string> &pairs,
|
|