Home | History | Annotate | Download | only in dmi

Lines Matching refs:code

22  *   For the avoidance of doubt the "preferred form" of this code is one which
26 * are deemed to be part of the source code.
31 const char *dmi_battery_chemistry(uint8_t code)
45 if (code >= 0x01 && code <= 0x08)
46 return chemistry[code - 0x01];
50 void dmi_battery_capacity(uint16_t code, uint8_t multiplier, char *capacity)
52 if (code == 0)
55 sprintf(capacity, "%u mWh", code * multiplier);
58 void dmi_battery_voltage(uint16_t code, char *voltage)
60 if (code == 0)
63 sprintf(voltage, "%u mV", code);
66 void dmi_battery_maximum_error(uint8_t code, char *error)
68 if (code == 0xFF)
71 sprintf(error, "%u%%", code);