221 BQ2429X_ICHG_4544 = 63,
245#if IS_USED(MODULE_BQ2429X_INT)
278#if IS_USED(MODULE_BQ2429X_INT) || DOXYGEN
Low-level GPIO peripheral driver interface definitions.
bq2429x_input_voltage_limit_t
Input Voltage Limit (VLIM).
bq2429x_charge_voltage_limit_t
Charge Voltage Limit (VREG).
int bq2429x_set_vreg(bq2429x_t *dev, bq2429x_charge_voltage_limit_t vreg)
Set Charge Voltage Limit.
int bq2429x_init(bq2429x_t *dev, const bq2429x_params_t *params)
Initialize device.
int bq2429x_get_vlim(const bq2429x_t *dev, bq2429x_input_voltage_limit_t *vlim)
Get Input Voltage Limit.
int bq2429x_enable_charge(const bq2429x_t *dev)
Enable battery charging.
int bq2429x_get_ilim(const bq2429x_t *dev, bq2429x_input_current_limit_t *ilim)
Get Input Current Limit.
int bq2429x_get_ichg(const bq2429x_t *dev, bq2429x_charge_current_t *ichg)
Get Charge Current.
bq2429x_chrg_fault_t
Charge fault values.
bq2429x_chrg_stat_t
Battery charging status.
int bq2429x_get_status(const bq2429x_t *dev, bq2429x_status_t *status)
Get device status.
int bq2429x_disable_charge(const bq2429x_t *dev)
Disable battery charging.
int bq2429x_get_vreg(const bq2429x_t *dev, bq2429x_charge_voltage_limit_t *vreg)
Get Charge Voltage Limit.
bq2429x_vbus_stat_t
Used VBUS type.
int bq2429x_init_int(bq2429x_t *dev, bq2429x_int_cb_t cb, void *arg)
Initialize interrupt support for the device.
bq2429x_input_current_limit_t
Input Current Limit (ILIM).
int bq2429x_disable_otg(const bq2429x_t *dev)
Disable OTG.
int bq2429x_set_ilim(bq2429x_t *dev, bq2429x_input_current_limit_t ilim)
Set Input Current Limit.
int bq2429x_set_vlim(bq2429x_t *dev, bq2429x_input_voltage_limit_t vlim)
Set Input Voltage Limit.
void(* bq2429x_int_cb_t)(void *)
Callback function for BQ2429x interrupts.
int bq2429x_get_fault(const bq2429x_t *dev, bq2429x_fault_t *fault)
Get device faults.
int bq2429x_set_ichg(bq2429x_t *dev, bq2429x_charge_current_t ichg)
Set Charge Current.
int bq2429x_enable_otg(const bq2429x_t *dev)
Enable OTG.
bq2429x_charge_current_t
Charge Current (ICHG)
@ BQ2429X_VLIM_5000
5000 mV
@ BQ2429X_VLIM_4040
4040 mV
@ BQ2429X_VLIM_3960
3960 mV
@ BQ2429X_VLIM_4120
4120 mV
@ BQ2429X_VLIM_4840
4840 mV
@ BQ2429X_VLIM_4760
4760 mV
@ BQ2429X_VLIM_4920
4920 mV
@ BQ2429X_VLIM_4440
4440 mV
@ BQ2429X_VLIM_4360
4360 mV
@ BQ2429X_VLIM_4520
4520 mV
@ BQ2429X_VLIM_4680
4680 mV
@ BQ2429X_VLIM_4200
4200 mV
@ BQ2429X_VLIM_4280
4280 mV
@ BQ2429X_VLIM_3880
3880 mV
@ BQ2429X_VLIM_4600
4600 mV
@ BQ2429X_VLIM_5080
5080 mV
@ BQ2429X_VREG_4112
4112 mV
@ BQ2429X_VREG_4304
4304 mV
@ BQ2429X_VREG_4208
4208 mV
@ BQ2429X_VREG_3904
3904 mV
@ BQ2429X_VREG_3808
3808 mV
@ BQ2429X_VREG_4400
4400 mV
@ BQ2429X_VREG_4000
4000 mV
@ BQ2429X_VREG_4352
4352 mV
@ BQ2429X_VREG_3600
3600 mV
@ BQ2429X_VREG_3504
3504 mV
@ BQ2429x_CHRG_FAULT_THERMAL_SHUTDOWN
Thermal shutdown.
@ BQ2429x_CHRG_FAULT_NORMAL
No fault, normal.
@ BQ2429x_CHRG_FAULT_INPUT
Input fault (OVP or bad source)
@ BQ2429x_CHRG_FAULT_CHARGE_TIMER_EXPIRATION
Charge timer expiration.
@ BQ2429X_CHARGE_NONE
The device is not charging a battery.
@ BQ2429X_CHARGE_DONE
Charging done.
@ BQ2429X_CHARGE_FAST
Fast charging.
@ BQ2429X_CHARGE_PRE
Pre-charge state.
@ BQ2429X_VBUS_NONE
No input source detected.
@ BQ2429X_VBUS_USB_CHARGER
USB charger input.
@ BQ2429X_VBUS_OTG
VBUS is used for OTG.
@ BQ2429X_VBUS_AP_CHARGER
Adapter port charge input.
@ BQ2429X_ERR_I2C
I2C error.
@ BQ2429X_ERR_GPIO
GPIO initialization error.
@ BQ2429X_OK
Everything is ok.
@ BQ2429X_ILIM_1500
1500 mA
@ BQ2429X_ILIM_3000
3000 mA
@ BQ2429X_ILIM_1000
1000 mA
@ BQ2429X_ILIM_2000
2000 mA
@ BQ2429X_ICHG_2048
2048 mA
@ BQ2429X_ICHG_1024
1024 mA
@ BQ2429X_ICHG_4032
4544 mA
@ BQ2429X_ICHG_3008
4032 mA
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Common macros and compiler attributes/pragmas configuration.
bool ntc_fault_1
NTC fault (1).
bool watchdog
Watchdog fault.
bool ntc_fault_0
NTC fault (0).
bq2429x_chrg_fault_t chrg
Charge fault.
BQ2429x device parameters.
bq2429x_charge_current_t ichg
Charge current limit.
bq2429x_charge_voltage_limit_t vreg
Charge voltage limit.
gpio_t ce_pin
Charge Enable pin (optional)
gpio_t otg_pin
OTG Enable pin (optional)
bq2429x_input_current_limit_t ilim
Current limit.
bq2429x_input_voltage_limit_t vlim
Voltage limit.
bool pg
Power good status.
bool vsys
VSYSMIN regulation.
bool therm
Thermal regulation.
bq2429x_vbus_stat_t vbus
VBUS status.
bq2429x_chrg_stat_t chrg
Charge status.
BQ2429x device descriptor.
bq2429x_params_t params
Device parameters.