Other Parts Discussed in Thread: BQ25713
struct bq257xx_reg_st bq25713_init_regs[27] = {
{0x00, 2, 0x670E, 0}, //charge option 0
{0x02, 2, 0x0000, 0}, //charge current
{0x04, 2, 0x0000, 0}, //charge voltage max
{0x06, 2, 0x0000, 0}, //OTG voltage
{0x09, 1, 0x00, 0}, //OTG current
{0x0A, 2, 0x0000, 0}, //input voltage
{0x0D, 1, 0x00, 0}, //min system voltage
{0x0F, 1, 0x41, 0}, //IIN host
{0x20, 2, 0x0000, 1}, //charge status
{0x22, 2, 0xA800, 1}, //prochot status
{0x25, 1, 0x41, 1}, //IIN_DPM
{0x26, 1, 0x00, 1}, //ADC:PSYS
{0x27, 1, 0x00, 1}, //ADC:VBUS
{0x28, 1, 0x00, 1}, //ADC:IBAT(discharge)
{0x29, 1, 0x00, 1}, //ADC:IBAT(charge)
{0x2A, 1, 0x00, 1}, //ADC:IIN
{0x2B, 1, 0x00, 1}, //ADC:CMPIN
{0x2C, 1, 0x00, 1}, //ADC:VBAT
{0x2D, 1, 0x00, 1}, //ADC:VSYS
{0x2E, 1, 0x40, 1}, //manufacture ID
{0x2F, 1, 0x88, 1}, //device ID
{0x30, 2, 0x0211, 0}, //charge option 1
{0x32, 2, 0x02B7, 0}, //charge option 2
{0x34, 2, 0x0030, 0}, //charge option 3
{0x36, 2, 0x4A65, 0}, //prochot option 0
{0x38, 2, 0x81A0, 0}, //prochot option 1
{0x3A, 2, 0xC0FF, 0}, //ADC option
};
这是寄存器初始配置