class BatteryInfo

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

Current battery state information.

Public Methods

void BatteryInfo ()

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

void BatteryInfo (const BatteryInfo & other)

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

void BatteryInfo (BatteryInfo && other)

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

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_power_battery::wire::BatteryInfo> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_power_battery::wire::BatteryInfo> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_battery::wire::BatteryInfo>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

::fuchsia_power_battery::wire::BatteryStatus & status ()

General battery status with respect to presence

&

availability.

bool has_status ()
::fuchsia_power_battery::wire::ChargeStatus & charge_status ()

The current state of the battery with respect to charging.

bool has_charge_status ()
::fuchsia_power_battery::wire::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.

bool has_charge_source ()
float & level_percent ()

Battery level in percentage. Level percent is only available if

level status is known.

bool has_level_percent ()
::fuchsia_power_battery::wire::LevelStatus & level_status ()

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

bool has_level_status ()
::fuchsia_power_battery::wire::HealthStatus & health ()

Overall battery health.

bool has_health ()
BatteryInfo & operator= (const BatteryInfo & other)

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

BatteryInfo & operator= (BatteryInfo && other)

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

::fuchsia_power_battery::wire::TimeRemaining & time_remaining ()

Time remaining relative to the current charge status.

bool has_time_remaining ()
int64_t & timestamp ()

Marking the time for measurement of battery level.

bool has_timestamp ()
uint32_t & present_voltage_mv ()

Forward the voltage level in mv.

bool has_present_voltage_mv ()
uint32_t & remaining_capacity_uah ()

Forward the battery capqacity in uAh.

bool has_remaining_capacity_uah ()
::fuchsia_power_battery::wire::BatterySpec & battery_spec ()

Battery spec.

bool has_battery_spec ()
int32_t & full_capacity_uah ()

Full Charge Capacity in uAh.

bool has_full_capacity_uah ()
int32_t & temperature_mc ()

Temperature in MilliCelsius.

bool has_temperature_mc ()
int32_t & present_charging_current_ua ()

Current in MicroAmps. Positive for charging.

bool has_present_charging_current_ua ()
int32_t & average_charging_current_ua ()

Average Current in MicroAmps. Positive for charging.

bool has_average_charging_current_ua ()
void ~BatteryInfo ()

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

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder