coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_params_charger_control Struct Reference

struct ec_params_charger_control - Charger control parameters @max_current: Charger current (mA). More...

#include <ec_commands.h>

Collaboration diagram for ec_params_charger_control:
Collaboration graph

Data Fields

int16_t max_current
 
uint16_t otg_voltage
 
uint8_t allow_charging
 

Detailed Description

struct ec_params_charger_control - Charger control parameters @max_current: Charger current (mA).

Positive to allow base to draw up to max_current and (possibly) charge battery, negative to request current from base (OTG). @otg_voltage: Voltage (mV) to use in OTG mode, ignored if max_current is >= 0. @allow_charging: Allow base battery charging (only makes sense if max_current > 0).

Definition at line 7471 of file ec_commands.h.

Field Documentation

◆ allow_charging

uint8_t ec_params_charger_control::allow_charging

Definition at line 7474 of file ec_commands.h.

◆ max_current

int16_t ec_params_charger_control::max_current

Definition at line 7472 of file ec_commands.h.

◆ otg_voltage

uint16_t ec_params_charger_control::otg_voltage

Definition at line 7473 of file ec_commands.h.


The documentation for this struct was generated from the following file: