[[!redirects Battery Management Unit Variables]] h6. [[Portable]] h6(. » Battery Management Unit variables Variables shown with a grey background are deprecated, and their use should be avoided. [4] table(bordered). |_<^{width:4em}. # |_<^. Description |_<^. Units | |<^. 0|<^. Version number and memory map of BMU microcode | |<^. 1|<^. Battery capacity (nominal) | mAh [1] | |<^. 2|<^. Battery capacity (measured) | mAh [1] | |<^. 3|<^. Battery capacity (used) | mAh [1] | |<^. 4|<^. Battery capacity (useable) | mAh [1] | |<^. 5|<^. (reserved) | |<^. 6|<^. Charge estimate (may be written to) | mAh [1] | |<^. 7|<^. Instantaneous voltage | mV [2] | |<^. 8|<^. Instantaneous current | mA [3] | |<^. 9|<^. Instantaneous temperature | 0.1K [2] | |<^. 10|<^. [[Battery Management Unit status flags|Status flags]] | |<^. 11|<^. Charge rate (in bits 4 - 7)| |<^{background:#ddd}. 12|<^{background:#ddd}. Charge current | |<^{background:#ddd}. 13|<^{background:#ddd}. Discharge current | |<^{background:#ddd}. 14|<^{background:#ddd}. Voltage | |<^{background:#ddd}. 15|<^{background:#ddd}. Temperature 1 | |<^{background:#ddd}. 16|<^{background:#ddd}. Temperature 2 | |<^{background:#ddd}. 17|<^{background:#ddd}. Charge level | |<^{background:#ddd}. 18|<^{background:#ddd}. Status flags (as variable 10) | |<^{background:#ddd}. 19|<^{background:#ddd}. Input signals | |<^{background:#ddd}. 20|<^{background:#ddd}. Battery capacity | |<^. 21|<^. Battery time remaining | Seconds | |<^. 22|<^. Max battery life | Seconds | |<^. 23|<^. Battery percentage remaining | 0-100 | |<^. 24|<^. Charge time remaining | Seconds | |<^. 25|<^. Charge cycle count | |<^. 26|<^. Smoothed voltage | mV | |<^. 27|<^. Smoothed current | mA | |<^. 28|<^. Nominal available capacity | mAh | |<^. 29|<^. Compensated available capacity | mAh | h4. Notes Not all BMU variables or flags are available in all variants of the module. See the [[Portable Feature Matrix]] for more details ("BMU variables":link3, "flags":link4). [[Portable_EnumerateBMU]] can (where supported) also be used to read the available flags. fn1. Units are 11.7mAh in the A4 version of the Portable module fn2. Units are unknown in the A4 version of the Portable module fn3. Units are 10.3mA in the A4 version of the Portable module fn4. The variables shown with a grey background are deprecated, for the following reasons: * They correspond to the variables that were introduced with the Stork version of the Portable module * Apart from variable 14 being supported by the A9 version of the module, it's only the Stork version of the module that supports them * The Stork version of the module has never been available in an official stable release of the OS * There is limited documentation about the function or measurement units of the variables * Many of the variables appear to duplicate the intent or function of A4 variables h4. See also * [[Portable SWI Calls]] * [[Portable_ReadBMUVariable]] * [[Portable_WriteBMUVariable]] * [[Portable Feature Matrix]] * [[Battery Management Unit status flags]] [link3]Portable%20Feature%20Matrix#bmu_variables [link4]Portable%20Feature%20Matrix#bmu_variable_10