STC3115 Arduino I2C Driver
STC3115 Gas Gauge I2C Driver for Arduino
Main Page
Classes
Files
File List
All
Classes
Functions
src
STC3115_constants.h
1
#ifndef STC3115_CONSTANTS_H
2
#define STC3115_CONSTANTS_H
3
4
#define STC3115_VMODE 0x01
5
#define STC3115_CLR_VM_ADJ 0x02
6
#define STC3115_CLR_CC_ADJ 0x04
7
#define STC3115_ALM_ENA 0x08
8
#define STC3115_GG_RUN 0x10
9
#define STC3115_FORCE_CC 0x20
10
#define STC3115_FORCE_VM 0x40
11
#define STC3115_REGMODE_DEFAULT_STANDBY 0x09
12
13
#define STC3115_GG_RST 0x02
14
#define STC3115_GG_VM 0x04
15
#define STC3115_BATFAIL 0x08
16
#define STC3115_PORDET 0x10
17
#define STC3115_ALM_SOC 0x20
18
#define STC3115_ALM_VOLT 0x40
19
20
#define STC3115_ID 0x14
21
#define STC3115_RAM_SIZE 16
22
#define STC3115_OCVTAB_SIZE 16
23
#define VCOUNT 4
24
#define VM_MODE 1
25
#define CC_MODE 0
26
#define MIXED_MODE 0
27
#define MAX_HRSOC 51200
28
#define MAX_SOC 1000
29
#define STC3115_OK 0
30
#define VoltageFactor 9011
31
#define CurrentFactor 24084
32
#define VOLTAGE_SECURITY_RANGE 200
33
34
#define RAM_TESTWORD 0x53A9
35
#define STC3115_UNINIT 0
36
#define STC3115_INIT 'I'
37
#define STC3115_RUNNING 'R'
38
#define STC3115_POWERDN 'D'
39
40
#endif
Generated on Fri Nov 17 2017 17:07:11 for STC3115 Arduino I2C Driver by
1.8.6