class I2CChannel

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

Used to inform the i2c driver about an attached i2c device.

Public Methods

void I2CChannel ()

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

void I2CChannel (const I2CChannel & other)

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

void I2CChannel (I2CChannel && other)

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

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

uint16_t & address ()

Address of the device.

bool has_address ()
uint32_t & i2c_class ()

Class of the device.

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

bool has_i2c_class ()
uint32_t & vid ()

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

bool has_vid ()
uint32_t & pid ()

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

bool has_pid ()
uint32_t & did ()

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

bool has_did ()
bool & is_bus_controller ()

Are we in charge of the bus?

bool has_is_bus_controller ()
bool & is_ten_bit ()

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

bool has_is_ten_bit ()
uint32_t & bus_speed ()

Speed of the bus.

bool has_bus_speed ()
::fidl::StringView & name ()

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

specified.

bool has_name ()
I2CChannel & set_address (uint16_t elem)
I2CChannel & clear_address ()
I2CChannel & set_i2c_class (uint32_t elem)
I2CChannel & clear_i2c_class ()
I2CChannel & set_vid (uint32_t elem)
I2CChannel & clear_vid ()
I2CChannel & set_pid (uint32_t elem)
I2CChannel & clear_pid ()
I2CChannel & set_did (uint32_t elem)
I2CChannel & clear_did ()
I2CChannel & set_is_bus_controller (bool elem)
I2CChannel & clear_is_bus_controller ()
I2CChannel & set_is_ten_bit (bool elem)
I2CChannel & clear_is_ten_bit ()
I2CChannel & set_bus_speed (uint32_t elem)
I2CChannel & clear_bus_speed ()
I2CChannel & set_name (::fidl::ObjectView< ::fidl::StringView> elem)
I2CChannel & set_name (std::nullptr_t )
I2CChannel & clear_name ()
void I2CChannel (::fidl::AnyArena & allocator)
void I2CChannel (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel>> && frame)

This constructor allows a user controlled allocation (not using a Arena).

It should only be used when performance is key.

As soon as the frame is given to the table, it must not be used directly or for another table.

void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_i2c_businfo::wire::I2CChannel>> && frame_ptr)
I2CChannel & operator= (const I2CChannel & other)

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

I2CChannel & operator= (I2CChannel && other)

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

void ~I2CChannel ()

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

template <typename... Args>
I2CChannel & set_name (::fidl::AnyArena & allocator, Args &&... args)

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

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder