#[repr(C, packed(1))]pub struct SmartBatteryTable {
pub header: SDTHeader,
pub warning_evergy_level: u32,
pub low_energy_level: u32,
pub critical_energy_level: u32,
}Expand description
§Smart Battery Table (SBST)
If the platform supports batteries as defined by the Smart Battery Specification 1.0 or 1.1, then an Smart Battery Table (SBST) is present. This table indicates the energy level trip points that the platform requires for placing the system into the specified sleeping state and the suggested energy levels for warning the user to transition the platform into a sleeping state.
Notice that while Smart Batteries can report either in current (mA/mAh) or in energy (mW/mWh), OSPM must set them to operate in energy (mW/mWh) mode so that the energy levels specified in the SBST can be used.
OSPM uses these tables with the capabilities of the batteries to determine the different trip points.
Fields§
§header: SDTHeader- Signature - “SBST”
warning_evergy_level: u32OEM suggested energy level in milliWatt-hours (mWh) at which OSPM warns the user.
low_energy_level: u32OEM suggested platform energy level in mWh at which OSPM will transition the system to a sleeping state.
critical_energy_level: u32OEM suggested platform energy level in mWh at which OSPM performs an emergency shutdown.
Trait Implementations§
Source§impl Clone for SmartBatteryTable
impl Clone for SmartBatteryTable
Source§fn clone(&self) -> SmartBatteryTable
fn clone(&self) -> SmartBatteryTable
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more