STRUCT EC_RESPONSE_BATTERY_STATIC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ec_response_battery_static_info πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for struct ec_response_battery_static_info, aka the glow-up where your EC hands over the static deets about the battery. Not the live juicy numbers, the permanent ones. The birth certificate, if you will. πŸŽ€


✨ NAME ✨

struct ec_response_battery_static_info β€” Battery static info response. that's it, that's the vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

no cap, here's the whole struct, copy it exactly bestie:

struct ec_response_battery_static_info {
    uint16_t design_capacity;
    uint16_t design_voltage;
    char manufacturer[EC_COMM_TEXT_MAX];
    char model[EC_COMM_TEXT_MAX];
    char serial[EC_COMM_TEXT_MAX];
    char type[EC_COMM_TEXT_MAX];
    uint32_t cycle_count;
};

^ that's her. main character struct energy. πŸ‘‘


🌸 Members 🌸

lowkey the most important part, let's go field by field:

  • design_capacity β€” Battery Design Capacity, measured in mAh. this is the factory-intended capacity, the "how much she was supposed to hold" number. πŸ”‹
  • design_voltage β€” Battery Design Voltage, measured in mV. the intended voltage, fr fr. ⚑
  • manufacturer β€” Battery Manufacturer String. who made her. πŸ’–
  • model β€” Battery Model Number String. her model number, iykyk. 🏷️
  • serial β€” Battery Serial Number String. her very own serial, unique-ish, iconic. πŸ”’
  • type β€” Battery Type String. what kind of battery she is. 🌈
  • cycle_count β€” Battery Cycle Count. how many cycles she's been through, and honestly? relatable. 😭
quick note bestie: manufacturer, model, serial, and type are all char arrays sized EC_COMM_TEXT_MAX. that's the exact macro name, don't @ me, don't rename it. 🫢

πŸ‘€ SEE ALSO πŸ‘€

so many friends, so many structs. the whole group chat, basically β€” kernel file ./include/linux/platform_data/cros_ec_commands.h:

  • struct ec_lpc_host_args(9)
  • struct ec_host_request(9)
  • struct ec_host_response(9)
  • struct ec_response_proto_version(9)
  • struct ec_params_hello(9)
  • struct ec_response_hello(9)
  • struct ec_response_get_version(9)
  • struct ec_params_read_test(9)
  • struct ec_response_read_test(9)
  • struct ec_response_get_chip_info(9)
  • struct ec_response_board_version(9)
  • struct ec_params_read_memmap(9)
  • struct ec_params_get_cmd_versions(9)
  • struct ec_params_get_cmd_versions_v1(9)
  • struct ec_response_get_cmd_versions(9)
  • struct ec_response_get_comms_status(9)
  • struct ec_response_get_protocol_info(9)
  • struct ec_response_flash_info(9)
  • struct ec_response_flash_info_1(9)
  • struct ec_params_flash_read(9)
  • struct ec_params_flash_write(9)
  • struct ec_params_flash_erase(9)
  • struct ec_params_flash_erase_v1(9)
  • struct ec_params_flash_protect(9)
  • struct ec_response_flash_protect(9)
  • struct ec_params_flash_region_info(9)
  • struct ec_params_flash_select(9)
  • struct ec_params_cec_write(9)
  • struct ec_params_cec_write_v1(9)
  • struct ec_params_cec_read(9)
  • struct ec_response_cec_read(9)
  • struct ec_params_cec_set(9)
  • struct ec_params_cec_get(9)
  • struct ec_response_cec_get(9)
  • struct ec_response_cec_port_count(9)
  • struct ec_params_battery_static_info(9)
  • struct ec_params_battery_dynamic_info(9)
  • struct ec_response_battery_dynamic_info(9)
  • struct ec_params_charger_control(9)

literally the entire extended universe. go read them all, or at least the battery-adjacent ones. 🧚


k that's the whole page bestie β€” sign-off time 🫢 this one lives in ./include/linux/platform_data, dated October 2026. slay, bye! πŸ’œβœ¨

πŸ“¦ where this page comes from