ENUM MAX77759_CHGR_BAT_DTLS_STATES(9)
π enum max77759_chgr_bat_dtls_states(9) β Battery Details π¦
okay so bestie, welcome to the Kernel API Manual, section 9 β¨. This one's all about the battery-details state enum, and yes it's exactly as iconic as it sounds. Buckle up, we're reading a C enum together and it's gonna be a whole vibe π
β¨ NAME β¨
enum max77759_chgr_bat_dtls_states β Battery Details π
πΈ SYNOPSIS πΈ
enum max77759_chgr_bat_dtls_states {
MAX77759_CHGR_BAT_DTLS_NO_BATT_CHG_SUSP ,
MAX77759_CHGR_BAT_DTLS_DEAD_BATTERY ,
MAX77759_CHGR_BAT_DTLS_BAT_CHG_TIMER_FAULT ,
MAX77759_CHGR_BAT_DTLS_BAT_OKAY ,
MAX77759_CHGR_BAT_DTLS_BAT_UNDERVOLTAGE ,
MAX77759_CHGR_BAT_DTLS_BAT_OVERVOLTAGE ,
MAX77759_CHGR_BAT_DTLS_BAT_OVERCURRENT ,
MAX77759_CHGR_BAT_DTLS_BAT_ONLY_MODE
};
like, look at her. eight whole members. she ate π
π§ Constants π§
okay so each one of these is a possible mood your battery can be in, and ngl some of these moods are concerning π
MAX77759_CHGR_BAT_DTLS_NO_BATT_CHG_SUSPβ no battery at all, and the charger is suspended. literally nothing to charge, so she's just chilling π«ΆMAX77759_CHGR_BAT_DTLS_DEAD_BATTERYβVbatt < Vtrickle. yeah. dead. gone. πMAX77759_CHGR_BAT_DTLS_BAT_CHG_TIMER_FAULTβ charging got suspended because of a timer fault. not the vibe πMAX77759_CHGR_BAT_DTLS_BAT_OKAYβ battery's okay andVbatt > Min Sys Voltage (Vsysmin). we love a healthy main character πMAX77759_CHGR_BAT_DTLS_BAT_UNDERVOLTAGEβ battery is okay (!!) butVtrickle < Vbatt < Vsysmin. lowkey struggling but technically fine πΈMAX77759_CHGR_BAT_DTLS_BAT_OVERVOLTAGEβ battery voltage>the overvoltage threshold. too much energy, she's overwhelmed πMAX77759_CHGR_BAT_DTLS_BAT_OVERCURRENTβ battery current exceeds the overcurrent threshold. bestie the current is current-ing π₯MAX77759_CHGR_BAT_DTLS_BAT_ONLY_MODEβ battery only mode, and the battery level just isn't available. iykyk β¨
fr fr tho: don't go guessing at any behavior that isn't spelled out above β these are just the documented states, periodt π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/mfd/max77759.henum max77759_chgr_chgin_dtls_status(9), enummax77759_chgr_chg_dtls_states(9),struct max77759(9),struct max77759_maxq_command(9),struct max77759_maxq_response(9),max77759_maxq_command(9)
go read those next, they're all part of the same friend group π«Ά
and that's the page!! π this lil masterpiece lives in ./include/linux/mfd, dated October 2026, and it's the enum max7775..._dtls_states(9) manual β slay, bye 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