class Spec
Defined at line 372 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h
Static hardware characteristics and driver capabilities.
Public Methods
void Spec (Storage_ storage)
void Spec ()
Defined at line 378 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 Spec (Spec && )
Defined at line 379 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 Spec (const Spec & other)
const std::optional<uint32_t> & design_voltage_uv ()
Optional. Nominal design voltage in microvolts.
Omitted if unsupported by hardware.
::std::optional<uint32_t> & design_voltage_uv ()
Optional. Nominal design voltage in microvolts.
Omitted if unsupported by hardware.
Spec & design_voltage_uv (std::optional<uint32_t> value)
Optional. Nominal design voltage in microvolts.
Omitted if unsupported by hardware.
const std::optional< ::std::string> & chemistry ()
Optional. Informational battery chemistry description (e.g. "Li-ion", "LiFePO4", "NiMH").
Omitted if unknown or unprogrammed in hardware.
::std::optional< ::std::string> & chemistry ()
Optional. Informational battery chemistry description (e.g. "Li-ion", "LiFePO4", "NiMH").
Omitted if unknown or unprogrammed in hardware.
Spec & chemistry (std::optional< ::std::string> value)
Optional. Informational battery chemistry description (e.g. "Li-ion", "LiFePO4", "NiMH").
Omitted if unknown or unprogrammed in hardware.
const std::optional< ::std::string> & model ()
Optional. Informational battery model string or manufacturer part number.
Omitted if unknown or unprogrammed in hardware.
::std::optional< ::std::string> & model ()
Optional. Informational battery model string or manufacturer part number.
Omitted if unknown or unprogrammed in hardware.
Spec & model (std::optional< ::std::string> value)
Optional. Informational battery model string or manufacturer part number.
Omitted if unknown or unprogrammed in hardware.
Spec & operator= (Spec && )
Defined at line 380 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h
Spec & operator= (const Spec & other)
bool operator== (const Spec & other)
bool operator!= (const Spec & other)
bool IsEmpty ()
const std::optional<uint32_t> & design_capacity_uah ()
Optional. Design capacity in microamp-hours.
Omitted if unsupported by hardware.
::std::optional<uint32_t> & design_capacity_uah ()
Optional. Design capacity in microamp-hours.
Omitted if unsupported by hardware.
Spec & design_capacity_uah (std::optional<uint32_t> value)
Optional. Design capacity in microamp-hours.
Omitted if unsupported by hardware.
const std::optional< ::fuchsia_hardware_power_battery::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.
::std::optional< ::fuchsia_hardware_power_battery::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.
Spec & supported_options (std::optional< ::fuchsia_hardware_power_battery::WatchOptions> value)
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.
void Spec (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits