template <typename BuilderImpl>

class WireTableBaseBuilder

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

Public Methods

::fuchsia_hardware_spi_businfo::wire::SpiChannel Build ()

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

bool has_cs ()
void clear_cs ()

Clears the cs field.

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

O(number_of_fields) complexity.

uint32_t & cs ()

Chip select number for the device.

BuilderImpl & cs (uint32_t elem)

Chip select number for the device.

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_cs_polarity_high ()
void clear_cs_polarity_high ()

Clears the cs_polarity_high field.

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

O(number_of_fields) complexity.

bool & cs_polarity_high ()

Chip select polarity: true == high, false == low.

BuilderImpl & cs_polarity_high (bool elem)

Chip select polarity: true == high, false == low.

bool has_word_length_bits ()
void clear_word_length_bits ()

Clears the word_length_bits field.

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

O(number_of_fields) complexity.

uint8_t & word_length_bits ()

Size in bits of a single word on the SPI bus.

BuilderImpl & word_length_bits (uint8_t elem)

Size in bits of a single word on the SPI bus.

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_clock_polarity_high ()
void clear_clock_polarity_high ()

Clears the clock_polarity_high field.

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

O(number_of_fields) complexity.

bool & clock_polarity_high ()

Clock polarity. true == high, false == low.

BuilderImpl & clock_polarity_high (bool elem)

Clock polarity. true == high, false == low.

bool has_clock_phase ()
void clear_clock_phase ()

Clears the clock_phase field.

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

O(number_of_fields) complexity.

::fuchsia_hardware_spi_businfo::wire::SpiClockPhase & clock_phase ()

Clock phase.

BuilderImpl & clock_phase (::fuchsia_hardware_spi_businfo::wire::SpiClockPhase elem)

Clock phase.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_hardware_spi_businfo::wire::SpiChannel, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_spi_businfo::wire::SpiChannel>> && frame)

Records