diff options
Diffstat (limited to 'board/wmt/wmt_battery/gauge/bq27541/bq_battery_i2c.h')
-rw-r--r-- | board/wmt/wmt_battery/gauge/bq27541/bq_battery_i2c.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/wmt/wmt_battery/gauge/bq27541/bq_battery_i2c.h b/board/wmt/wmt_battery/gauge/bq27541/bq_battery_i2c.h new file mode 100644 index 0000000..e9651e8 --- /dev/null +++ b/board/wmt/wmt_battery/gauge/bq27541/bq_battery_i2c.h @@ -0,0 +1,11 @@ +#define BQ_REG_FCC 0x12 +#define BQ_REG_TEMP 0x06 +#define BQ_REG_SOC 0x2c +#define BQ_REG_VOLT 0x08 +#define BQ_REG_NAC 0x0C /* Nominal available capaciy */ +#define BQ_REG_AI 0x14 + +#define BQ_I2C_BUS 3 +#define BQ_I2C_DEFAULT_ADDR 0x55 + +//unsigned short bq_battery_read_percentage(void); |