38
|
1 /**
|
|
2 ******************************************************************************
|
|
3 * @file batteryGasGauge.h
|
|
4 * @author heinrichs weikamp gmbh
|
|
5 * @version V0.0.1
|
|
6 * @date 09-Dec-2014
|
|
7 * @brief LTC2942
|
|
8 *
|
|
9 @verbatim
|
|
10 ==============================================================================
|
|
11 ##### How to use #####
|
|
12 ==============================================================================
|
|
13 @endverbatim
|
|
14 ******************************************************************************
|
|
15 * @attention
|
|
16 *
|
|
17 * <h2><center>© COPYRIGHT(c) 2014 heinrichs weikamp</center></h2>
|
|
18 *
|
|
19 ******************************************************************************
|
|
20 */
|
|
21
|
|
22 /* Define to prevent recursive inclusion -------------------------------------*/
|
|
23 #ifndef BATTERY_GAS_GAUGE_H
|
|
24 #define BATTERY_GAS_GAUGE_H
|
|
25
|
|
26 #ifdef __cplusplus
|
|
27 extern "C" {
|
|
28 #endif
|
|
29
|
|
30 /* Includes ------------------------------------------------------------------*/
|
|
31
|
330
|
32 #include <stdint.h>
|
|
33
|
38
|
34 void init_battery_gas_gauge(void);
|
|
35
|
|
36 float get_voltage(void);
|
|
37 float get_charge(void);
|
|
38
|
|
39 void battery_gas_gauge_get_data(void);
|
|
40 void battery_gas_gauge_set_charge_full(void);
|
|
41 void battery_gas_gauge_set(float percentage);
|
330
|
42 uint8_t battery_gas_gauge_CheckConfigOK(void);
|
38
|
43
|
|
44 #ifdef __cplusplus
|
|
45 }
|
|
46 #endif
|
|
47
|
|
48 #endif /* BATTERY_GAS_GAUGE_H */
|
|
49
|
|
50 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/
|