STRUCT BQ256XX_INIT_DATA(9)
π struct bq256xx_init_data(9) π
okay so this is a page from the Kernel API Manual, and bestie, we're talking about struct bq256xx_init_data β the charger init data struct, iykyk. It's in the kernel docs, section 9. Let's get into it β¨
πΈ SYNOPSIS πΈ
here's the whole struct, literally copy-paste exact, don't @ me:
struct bq256xx_init_data {
u32 ichg;
u32 iindpm;
u32 vbatreg;
u32 iterm;
u32 iprechg;
u32 vindpm;
u32 ichg_max;
u32 vbatreg_max;
bool ts_ignore;
};
like, look at her. ten fields. main character energy fr fr π
π¦ Members π¦
okay so field by field, let's go:
ichgβ the fast charge current β‘ this is how much juice goes in when you're charging at full speediindpmβ the input current limit, aka how much current you're allowed to pull in πvbatregβ the charge voltage, the voltage target for the battery, slayitermβ the termination current β when the current drops down to this, charging wraps up, periodt πiprechgβ the precharge current, the gentle little warm-up current before the real charging starts π§vindpmβ the input voltage limit, the floor for input voltage, don't let it dip below this bestieichg_maxβ the maximum fast charge current, the ceiling forichgbasically π₯vbatreg_maxβ the maximum charge voltage, top of the range forvbatregπts_ignoreβ theTS_IGNOREflag, abool, so it's just true/false vibes β
π SEE ALSO π
if you wanna keep reading (and you should, it's giving lore), go check out the kernel file ./drivers/power/supply/bq256xx_charger.c, plus these iconic siblings:
struct bq256xx_state(9)struct bq256xx_device(9)struct bq256xx_chip_info(9)
ngl the whole struct family lives over in ./drivers/power/supply and it's lowkey a whole universe π«Ά
mwah, that's the page!! this one's from the Kernel API Manual, dated October 2026, living in ./drivers/power/supply β go forth and charge responsibly bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms