STRUCT BQ256XX_INIT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 speed
  • iindpm β€” the input current limit, aka how much current you're allowed to pull in πŸ™ˆ
  • vbatreg β€” the charge voltage, the voltage target for the battery, slay
  • iterm β€” 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 bestie
  • ichg_max β€” the maximum fast charge current, the ceiling for ichg basically πŸ”₯
  • vbatreg_max β€” the maximum charge voltage, top of the range for vbatreg πŸ‘‘
  • ts_ignore β€” the TS_IGNORE flag, a bool, 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