class I2cImplOpType

Defined at line 50 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2cimpl/fuchsia.hardware.i2cimpl/cpp/fidl/fuchsia.hardware.i2cimpl/cpp/natural_types.h

If `read_size` is set: This is a read operation and `read_size` bytes will be read.

If `write_data` is set: This is a write operation and `write_data` will be written.

Public Methods

void I2cImplOpType (I2cImplOpType && other)
I2cImplOpType & operator= (I2cImplOpType && other)
void I2cImplOpType (const I2cImplOpType & other)
I2cImplOpType & operator= (const I2cImplOpType & other)
bool operator== (const I2cImplOpType & other)
bool operator!= (const I2cImplOpType & other)
::fuchsia_hardware_i2cimpl::I2cImplOpType::Tag Which ()
I2cImplOpType WithReadSize (uint32_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> read_size ()
::fidl::internal::UnionMemberView<1, Storage_> read_size ()
I2cImplOpType & read_size (uint32_t value)

Sets the union to hold the read_size member.

I2cImplOpType WithWriteData (::std::vector<uint8_t> val)
const ::fidl::internal::UnionMemberView<2, Storage_> write_data ()
::fidl::internal::UnionMemberView<2, Storage_> write_data ()
I2cImplOpType & write_data (::std::vector<uint8_t> value)

Sets the union to hold the write_data member.

void I2cImplOpType (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kReadSize 1
kWriteData 2

TODO: share union tag types between wire

&

natural.

Defined at line 58 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2cimpl/fuchsia.hardware.i2cimpl/cpp/fidl/fuchsia.hardware.i2cimpl/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits