#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);