class Status

Defined at line 61 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_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

void Status (Storage_ storage)
void Status ()

Defined at line 67 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h

void Status (Status && )

Defined at line 68 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h

void Status (const Status & other)
Status & operator= (Status && )

Defined at line 69 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h

Status & operator= (const Status & other)
bool operator== (const Status & other)
bool operator!= (const Status & other)
bool IsEmpty ()
const std::optional<bool> & present ()

Whether the battery pack is physically present and connected.

If false, the battery is detached/missing. Omitted if presence is indeterminate.

::std::optional<bool> & present ()

Whether the battery pack is physically present and connected.

If false, the battery is detached/missing. Omitted if presence is indeterminate.

Status & present (std::optional<bool> value)

Whether the battery pack is physically present and connected.

If false, the battery is detached/missing. Omitted if presence is indeterminate.

const std::optional<uint32_t> & voltage_uv ()

Present terminal voltage in microvolts.

Omitted if unsupported by hardware or unavailable.

::std::optional<uint32_t> & voltage_uv ()

Present terminal voltage in microvolts.

Omitted if unsupported by hardware or unavailable.

Status & voltage_uv (std::optional<uint32_t> value)

Present terminal voltage in microvolts.

Omitted if unsupported by hardware or unavailable.

const std::optional<int32_t> & current_ua ()

Present current in microamps: positive (+) for charging, negative (-) for discharging.

Omitted if unsupported by hardware or unavailable.

::std::optional<int32_t> & current_ua ()

Present current in microamps: positive (+) for charging, negative (-) for discharging.

Omitted if unsupported by hardware or unavailable.

Status & current_ua (std::optional<int32_t> value)

Present current in microamps: positive (+) for charging, negative (-) for discharging.

Omitted if unsupported by hardware or unavailable.

const std::optional<float> & level_percent ()

State of charge percentage in the range [0.0, 100.0].

Omitted if indeterminate or unsupported by hardware.

::std::optional<float> & level_percent ()

State of charge percentage in the range [0.0, 100.0].

Omitted if indeterminate or unsupported by hardware.

Status & level_percent (std::optional<float> value)

State of charge percentage in the range [0.0, 100.0].

Omitted if indeterminate or unsupported by hardware.

const std::optional<float> & temp_celsius ()

Internal battery temperature in Celsius.

Omitted if temperature sensing is unsupported or unavailable.

::std::optional<float> & temp_celsius ()

Internal battery temperature in Celsius.

Omitted if temperature sensing is unsupported or unavailable.

Status & temp_celsius (std::optional<float> value)

Internal battery temperature in Celsius.

Omitted if temperature sensing is unsupported or unavailable.

const std::optional< ::fuchsia_hardware_power_battery::ChargeStatus> & charge_status ()

High-level charging status.

Omitted if indeterminate or unsupported by hardware.

::std::optional< ::fuchsia_hardware_power_battery::ChargeStatus> & charge_status ()

High-level charging status.

Omitted if indeterminate or unsupported by hardware.

Status & charge_status (std::optional< ::fuchsia_hardware_power_battery::ChargeStatus> value)

High-level charging status.

Omitted if indeterminate or unsupported by hardware.

const std::optional<uint32_t> & remaining_capacity_uah ()

Estimated remaining usable capacity in microamp-hours.

Omitted if indeterminate or unsupported by hardware.

::std::optional<uint32_t> & remaining_capacity_uah ()

Estimated remaining usable capacity in microamp-hours.

Omitted if indeterminate or unsupported by hardware.

Status & remaining_capacity_uah (std::optional<uint32_t> value)

Estimated remaining usable capacity in microamp-hours.

Omitted if indeterminate or unsupported by hardware.

const std::optional<uint32_t> & full_charge_capacity_uah ()

Estimated full charge capacity in microamp-hours, reflecting pack aging.

Omitted if indeterminate or unsupported by hardware.

::std::optional<uint32_t> & full_charge_capacity_uah ()

Estimated full charge capacity in microamp-hours, reflecting pack aging.

Omitted if indeterminate or unsupported by hardware.

Status & full_charge_capacity_uah (std::optional<uint32_t> value)

Estimated full charge capacity in microamp-hours, reflecting pack aging.

Omitted if indeterminate or unsupported by hardware.

const std::optional< ::fuchsia_hardware_power_battery::HealthStatus> & health ()

Health condition or safety trip status.

Omitted if health diagnostics are unsupported by hardware.

::std::optional< ::fuchsia_hardware_power_battery::HealthStatus> & health ()

Health condition or safety trip status.

Omitted if health diagnostics are unsupported by hardware.

Status & health (std::optional< ::fuchsia_hardware_power_battery::HealthStatus> value)

Health condition or safety trip status.

Omitted if health diagnostics are unsupported by hardware.

const std::optional<uint32_t> & cycle_count ()

Total charge-discharge cycle count.

Omitted if cycle tracking is unsupported by hardware.

::std::optional<uint32_t> & cycle_count ()

Total charge-discharge cycle count.

Omitted if cycle tracking is unsupported by hardware.

Status & cycle_count (std::optional<uint32_t> value)

Total charge-discharge cycle count.

Omitted if cycle tracking is unsupported by hardware.

const std::optional<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.

::std::optional<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.

Status & time_remaining (std::optional<int64_t> value)

Estimated duration remaining until fully empty (discharging) or fully charged (charging).

Omitted if indeterminate, unsupported, or if the battery is idle.

void Status (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits