Subversion Repositories Code-Repo

Rev

Rev 224 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
224 Kevin 1
#ifndef MAX17040_H
2
#define	MAX17040_H
3
 
4
#define MAX17040_VCELL_H    0x02
5
#define MAX17040_VCELL_L    0x03
6
#define MAX17040_SOC_H      0x04
7
#define MAX17040_SOC_L      0x05
8
#define MAX17040_MODE_H     0x06
9
#define MAX17040_MODE_L     0x07
10
#define MAX17040_VERSION_H  0x08
11
#define MAX17040_VERSION_L  0x09
12
#define MAX17040_RCOMP_H    0x0C
13
#define MAX17040_RCOMP_L    0x0D
14
#define MAX17040_COMMAND    0xFE
15
 
16
void MAX17040_Init(void);
17
void MAX17040_Read_Batt(char *h, char *l);
18
 
19
#endif	/* MAX17040_H */
20