INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
smartbatteryparsing.h
1/*
2 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
3 * http://gearbox.sf.net/
4 * Copyright (c) 2004-2010 Tobias Kaupp
5 *
6 * This distribution is licensed to you under the terms described in
7 * the LICENSE file included in this distribution.
8 *
9 */
10
11#ifndef GBX_SMARTBATTERY_PARSING_H
12#define GBX_SMARTBATTERY_PARSING_H
13
14#include <stdint.h>
15
16#include <vector>
17#include <map>
18
19#include <gbxutilacfr/tracer.h>
20
21namespace gbxsmartbatteryacfr
22{
23
26void readFlags( const std::string &str,
27 std::vector<bool> &flags );
28
31double readTemperature( const std::string &str );
32
35double readCurrent( const std::string &str );
36
39double readVoltage( const std::string &str );
40
43int readNumBatteries( const std::string &str );
44
47int readPercentWord( const std::string &str );
48
51int readPercentByte( const std::string &str );
52
55int readMinutes( const std::string &str );
56
59int readCapacity( const std::string &str );
60
63uint16_t read16Flags( const std::string &str );
64
67int readCount( const std::string &str );
68
71int readNumber( const std::string &str );
72
75int readRate( const std::string &str );
76
79bool isChecksumValid( const std::string &input,
80 const std::string &expected );
81
84void toKeyValuePairs( const std::vector<std::string> &fields,
85 std::map<std::string,std::string> &pairs,
86 gbxutilacfr::Tracer &tracer );
87
88}
89
90#endif
Definition: tracer.h:112
SmartBattery library.
Definition: gbxsmartbatteryacfr/exceptions.h:16
 

Generated for GearBox by  doxygen 1.4.5