class Spec
Defined at line 846 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
Static hardware characteristics and driver capabilities.
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::Spec> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_hardware_power_battery::wire::Spec> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_power_battery::wire::Spec>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void Spec ()
Defined at line 848 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 Spec (const Spec & other)
Defined at line 849 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
uint32_t & design_capacity_uah ()
Optional. Design capacity in microamp-hours.
Omitted if unsupported by hardware.
bool has_design_capacity_uah ()
uint32_t & design_voltage_uv ()
Optional. Nominal design voltage in microvolts.
Omitted if unsupported by hardware.
bool has_design_voltage_uv ()
::fidl::StringView & chemistry ()
Optional. Informational battery chemistry description (e.g. "Li-ion", "LiFePO4", "NiMH").
Omitted if unknown or unprogrammed in hardware.
bool has_chemistry ()
::fidl::StringView & model ()
Optional. Informational battery model string or manufacturer part number.
Omitted if unknown or unprogrammed in hardware.
bool has_model ()
Spec & operator= (const Spec & other)
Defined at line 850 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 Spec (Spec && other)
Defined at line 851 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
Spec & operator= (Spec && other)
Defined at line 852 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h
::fuchsia_hardware_power_battery::wire::WatchOptions & supported_options ()
Required. The interest and wake options supported by this driver/hardware.
Drivers must populate this table so clients know which fields support active change
notifications. If omitted by the driver, clients should assume no active interrupt watching
is supported.
- `supported_options.interest`: Telemetry fields that can actively trigger hanging-get watch
notifications on change. Fields omitted are passive measurements that do not generate
hardware interrupts; their freshest values are returned during active state changes or via
[`Battery.GetStatus`].
- `supported_options.wake_on`: Telemetry fields capable of actively waking the system from
suspend via hardware interrupt lines etc.
bool has_supported_options ()
void ~Spec ()
Defined at line 854 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