template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 210 of file fidling/gen/sdk/fidl/fuchsia.hardware.vreg/fuchsia.hardware.vreg/cpp/fidl/fuchsia.hardware.vreg/cpp/wire_types.h

Public Methods

::fuchsia_hardware_vreg::wire::VregMetadata Build ()

Build and return the table. The builder should not be used after this.

bool has_name ()
void clear_name ()

Clears the name field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fidl::StringView & name ()

Voltage regulator name. This will be set as fuchsia.regulator.NAME property on the child

device to which regulator consumers can bind to.

BuilderImpl & name (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)

Voltage regulator name. This will be set as fuchsia.regulator.NAME property on the child

device to which regulator consumers can bind to.

bool has_min_voltage_uv ()
void clear_min_voltage_uv ()

Clears the min_voltage_uv field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & min_voltage_uv ()

Minimum voltage of voltage regulator in microvolts.

BuilderImpl & min_voltage_uv (uint32_t elem)

Minimum voltage of voltage regulator in microvolts.

bool has_voltage_step_uv ()
void clear_voltage_step_uv ()

Clears the voltage_step_uv field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & voltage_step_uv ()

Size of a voltage step in microvolts.

BuilderImpl & voltage_step_uv (uint32_t elem)

Size of a voltage step in microvolts.

bool has_num_steps ()
void clear_num_steps ()

Clears the num_steps field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & num_steps ()

Number of voltage steps. For example, voltage regulator with voltage range 400 uV- 1000 uV

inclusive and step size 20 uV. Total number of steps is (1000 uV - 400 uV) / 20 uV + 1 = 31

steps.

BuilderImpl & num_steps (uint32_t elem)

Number of voltage steps. For example, voltage regulator with voltage range 400 uV- 1000 uV

inclusive and step size 20 uV. Total number of steps is (1000 uV - 400 uV) / 20 uV + 1 = 31

steps.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_hardware_vreg::wire::VregMetadata, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_vreg::wire::VregMetadata>> && frame)

Records