Subversion Repositories Code-Repo

Rev

Blame | Last modification | View Log | RSS feed

#ifndef MAX17040_H
#define MAX17040_H

#define MAX17040_VCELL_H    0x02
#define MAX17040_VCELL_L    0x03
#define MAX17040_SOC_H      0x04
#define MAX17040_SOC_L      0x05
#define MAX17040_MODE_H     0x06
#define MAX17040_MODE_L     0x07
#define MAX17040_VERSION_H  0x08
#define MAX17040_VERSION_L  0x09
#define MAX17040_RCOMP_H    0x0C
#define MAX17040_RCOMP_L    0x0D
#define MAX17040_COMMAND    0xFE

void MAX17040_Init(void);
void MAX17040_Read_Batt(char *h, char *l);

#endif  /* MAX17040_H */