template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 194 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2c.businfo/fuchsia.hardware.i2c.businfo/cpp/fidl/fuchsia.hardware.i2c.businfo/cpp/wire_types.h

Public Methods

::fuchsia_hardware_i2c_businfo::wire::I2CChannel Build ()

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

bool has_address ()
void clear_address ()

Clears the address field.

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

O(number_of_fields) complexity.

uint16_t & address ()

Address of the device.

BuilderImpl & address (uint16_t elem)

Address of the device.

bool has_i2c_class ()
void clear_i2c_class ()

Clears the i2c_class field.

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

O(number_of_fields) complexity.

uint32_t & i2c_class ()

Class of the device.

TODO(https://fxbug.dev/42158297): remove this once x86 uses ACPI properly.

BuilderImpl & i2c_class (uint32_t elem)

Class of the device.

TODO(https://fxbug.dev/42158297): remove this once x86 uses ACPI properly.

bool has_vid ()
void clear_vid ()

Clears the vid field.

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

O(number_of_fields) complexity.

uint32_t & vid ()

Vendor ID. Used when binding via platform bus device IDs.

BuilderImpl & vid (uint32_t elem)

Vendor ID. Used when binding via platform bus device IDs.

bool has_pid ()
void clear_pid ()

Clears the pid field.

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

O(number_of_fields) complexity.

uint32_t & pid ()

Product ID. Used when binding via platform bus device IDs.

BuilderImpl & pid (uint32_t elem)

Product ID. Used when binding via platform bus device IDs.

bool has_did ()
void clear_did ()

Clears the did field.

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

O(number_of_fields) complexity.

uint32_t & did ()

Device ID. Used when binding via platform bus device IDs.

BuilderImpl & did (uint32_t elem)

Device ID. Used when binding via platform bus device IDs.

bool has_is_bus_controller ()
void clear_is_bus_controller ()

Clears the is_bus_controller field.

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

O(number_of_fields) complexity.

bool & is_bus_controller ()

Are we in charge of the bus?

BuilderImpl & is_bus_controller (bool elem)

Are we in charge of the bus?

bool has_is_ten_bit ()
void clear_is_ten_bit ()

Clears the is_ten_bit field.

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

O(number_of_fields) complexity.

bool & is_ten_bit ()

Is this device using 10-bit addressing mode (if false, use 7-bit).

BuilderImpl & is_ten_bit (bool elem)

Is this device using 10-bit addressing mode (if false, use 7-bit).

bool has_bus_speed ()
void clear_bus_speed ()

Clears the bus_speed field.

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

O(number_of_fields) complexity.

uint32_t & bus_speed ()

Speed of the bus.

BuilderImpl & bus_speed (uint32_t elem)

Speed of the bus.

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 ()

Friendly name for this bus. Will default to the empty string if not

specified.

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

Friendly name for this bus. Will default to the empty string if not

specified.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel>> && frame)

Records