class BatteryInfo

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

Current battery state information.

Public Methods

void BatteryInfo (Storage_ storage)
void BatteryInfo ()

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

void BatteryInfo (BatteryInfo && )

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

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

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

BatteryInfo & operator= (const BatteryInfo & other)
bool operator== (const BatteryInfo & other)
bool operator!= (const BatteryInfo & other)
bool IsEmpty ()
const std::optional< ::fuchsia_power_battery::BatteryStatus> & status ()

General battery status with respect to presence

&

availability.

::std::optional< ::fuchsia_power_battery::BatteryStatus> & status ()

General battery status with respect to presence

&

availability.

BatteryInfo & status (std::optional< ::fuchsia_power_battery::BatteryStatus> value)

General battery status with respect to presence

&

availability.

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

The current state of the battery with respect to charging.

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

The current state of the battery with respect to charging.

BatteryInfo & charge_status (std::optional< ::fuchsia_power_battery::ChargeStatus> value)

The current state of the battery with respect to charging.

const std::optional< ::fuchsia_power_battery::ChargeSource> & charge_source ()

The charge source while battery is actively charging.

When not actively charging, this will reflect that the source is

NONE (not charging) or UNKNOWN.

::std::optional< ::fuchsia_power_battery::ChargeSource> & charge_source ()

The charge source while battery is actively charging.

When not actively charging, this will reflect that the source is

NONE (not charging) or UNKNOWN.

BatteryInfo & charge_source (std::optional< ::fuchsia_power_battery::ChargeSource> value)

The charge source while battery is actively charging.

When not actively charging, this will reflect that the source is

NONE (not charging) or UNKNOWN.

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

Battery level in percentage. Level percent is only available if

level status is known.

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

Battery level in percentage. Level percent is only available if

level status is known.

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

Battery level in percentage. Level percent is only available if

level status is known.

const std::optional< ::fuchsia_power_battery::LevelStatus> & level_status ()

Battery level as a general status, including low and critical.

::std::optional< ::fuchsia_power_battery::LevelStatus> & level_status ()

Battery level as a general status, including low and critical.

BatteryInfo & level_status (std::optional< ::fuchsia_power_battery::LevelStatus> value)

Battery level as a general status, including low and critical.

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

Overall battery health.

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

Overall battery health.

BatteryInfo & health (std::optional< ::fuchsia_power_battery::HealthStatus> value)

Overall battery health.

const std::optional< ::fuchsia_power_battery::TimeRemaining> & time_remaining ()

Time remaining relative to the current charge status.

::std::optional< ::fuchsia_power_battery::TimeRemaining> & time_remaining ()

Time remaining relative to the current charge status.

BatteryInfo & time_remaining (std::optional< ::fuchsia_power_battery::TimeRemaining> value)

Time remaining relative to the current charge status.

const std::optional<int64_t> & timestamp ()

Marking the time for measurement of battery level.

::std::optional<int64_t> & timestamp ()

Marking the time for measurement of battery level.

BatteryInfo & timestamp (std::optional<int64_t> value)

Marking the time for measurement of battery level.

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

Forward the voltage level in mv.

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

Forward the voltage level in mv.

BatteryInfo & present_voltage_mv (std::optional<uint32_t> value)

Forward the voltage level in mv.

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

Forward the battery capqacity in uAh.

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

Forward the battery capqacity in uAh.

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

Forward the battery capqacity in uAh.

const std::optional< ::fuchsia_power_battery::BatterySpec> & battery_spec ()

Battery spec.

::std::optional< ::fuchsia_power_battery::BatterySpec> & battery_spec ()

Battery spec.

BatteryInfo & battery_spec (std::optional< ::fuchsia_power_battery::BatterySpec> value)

Battery spec.

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

Full Charge Capacity in uAh.

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

Full Charge Capacity in uAh.

BatteryInfo & full_capacity_uah (std::optional<int32_t> value)

Full Charge Capacity in uAh.

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

Temperature in MilliCelsius.

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

Temperature in MilliCelsius.

BatteryInfo & temperature_mc (std::optional<int32_t> value)

Temperature in MilliCelsius.

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

Current in MicroAmps. Positive for charging.

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

Current in MicroAmps. Positive for charging.

BatteryInfo & present_charging_current_ua (std::optional<int32_t> value)

Current in MicroAmps. Positive for charging.

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

Average Current in MicroAmps. Positive for charging.

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

Average Current in MicroAmps. Positive for charging.

BatteryInfo & average_charging_current_ua (std::optional<int32_t> value)

Average Current in MicroAmps. Positive for charging.

void BatteryInfo (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits