STC3115 Arduino I2C Driver
STC3115 Gas Gauge I2C Driver for Arduino
 All Classes Functions
STC3115_types.h
1 #ifndef STC3115_TYPES_H
2 #define STC3115_TYPES_H
3 
4 #include <stdint.h>
5 #include "STC3115_constants.h"
6 
11 typedef struct {
12  int VMode;
13  int AlmSOC;
14  int AlmVbat;
15  int CCConf;
16  int VMConf;
17  int CNom;
18  int RSense;
19  int RelaxCurrent;
20  uint8_t OCVOffset[16];
22 
27 typedef struct {
28  int StatusWord;
29  int HRSOC;
30  int SOC;
31  int Voltage;
32  int Current;
33  int Temperature;
34  int ConvCounter;
35  int OCV;
36  int Presence;
37  int ChargeValue;
38  int RemTime;
40 
45 typedef union {
46  uint8_t db[STC3115_RAM_SIZE];
47  struct {
48  short TestWord;
49  short HRSOC;
50  short CCConf;
51  short VMConf;
52  char SOC;
53  char State;
54  char unused1;
55  char unused2;
56  char unused3;
57  char unused4;
58  char unused5;
59  char CRC;
60  } reg;
62 
63 #endif
STC3115 configuration structure.
Definition: STC3115_types.h:11
STC3115 battery measurement data structure.
Definition: STC3115_types.h:27
STC3115 RAM data internal structure.
Definition: STC3115_types.h:45