class Status
Defined at line 129 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
Primary telemetry snapshot from the battery fuel gauge.
All fields are optional. Each returned `Status` represents a complete snapshot, not a sparse
delta; fields omitted by the driver indicate that the metric is unsupported by the hardware fuel
gauge or currently unavailable/indeterminate.
NOTE: Some fields (e.g. instantaneous `voltage_uv` and `current_ua`) may be passive measurements
that do not generate hardware interrupts on change. Refer to [`Spec.supported_options`] for the
options that can actively trigger change notifications.
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_hardware_power_battery::wire::Status> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_hardware_power_battery::wire::Status> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_power_battery::wire::Status>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void Status ()
Defined at line 131 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
void Status (const Status & other)
Defined at line 132 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
float & level_percent ()
State of charge percentage in the range [0.0, 100.0].
Omitted if indeterminate or unsupported by hardware.
bool has_level_percent ()
Status & operator= (const Status & other)
Defined at line 133 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
void Status (Status && other)
Defined at line 134 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
Status & operator= (Status && other)
Defined at line 135 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
bool & present ()
Whether the battery pack is physically present and connected.
If false, the battery is detached/missing. Omitted if presence is indeterminate.
bool has_present ()
uint32_t & voltage_uv ()
Present terminal voltage in microvolts.
Omitted if unsupported by hardware or unavailable.
bool has_voltage_uv ()
int32_t & current_ua ()
Present current in microamps: positive (+) for charging, negative (-) for discharging.
Omitted if unsupported by hardware or unavailable.
bool has_current_ua ()
float & temp_celsius ()
Internal battery temperature in Celsius.
Omitted if temperature sensing is unsupported or unavailable.
bool has_temp_celsius ()
::fuchsia_hardware_power_battery::wire::ChargeStatus & charge_status ()
High-level charging status.
Omitted if indeterminate or unsupported by hardware.
bool has_charge_status ()
uint32_t & remaining_capacity_uah ()
Estimated remaining usable capacity in microamp-hours.
Omitted if indeterminate or unsupported by hardware.
bool has_remaining_capacity_uah ()
uint32_t & full_charge_capacity_uah ()
Estimated full charge capacity in microamp-hours, reflecting pack aging.
Omitted if indeterminate or unsupported by hardware.
bool has_full_charge_capacity_uah ()
::fuchsia_hardware_power_battery::wire::HealthStatus & health ()
Health condition or safety trip status.
Omitted if health diagnostics are unsupported by hardware.
bool has_health ()
uint32_t & cycle_count ()
Total charge-discharge cycle count.
Omitted if cycle tracking is unsupported by hardware.
bool has_cycle_count ()
int64_t & time_remaining ()
Estimated duration remaining until fully empty (discharging) or fully charged (charging).
Omitted if indeterminate, unsupported, or if the battery is idle.
bool has_time_remaining ()
void ~Status ()
Defined at line 137 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder