class I2cChannel
Defined at line 17 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
Public Methods
void I2cChannel ()
Defined at line 24 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
void I2cChannel (fidl::ClientEnd<fuchsia_hardware_i2c::Device> client)
Defined at line 26 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
void I2cChannel (zx_device_t * parent)
Defined at line 29 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
void I2cChannel (zx_device_t * parent, const char * fragment_name)
Defined at line 31 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
void I2cChannel (I2cChannel && other)
Defined at line 33 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
I2cChannel & operator= (I2cChannel && other)
Defined at line 34 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
void I2cChannel (const I2cChannel & other)
Defined at line 36 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
I2cChannel & operator= (const I2cChannel & other)
Defined at line 37 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
void ~I2cChannel ()
Defined at line 39 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
zx_status_t ReadSync (uint8_t addr, uint8_t * buf, size_t len)
Performs typical i2c Read: writes device register address (1 byte) followed
by len reads into buf.
Defined at line 43 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
zx_status_t WriteSync (const uint8_t * buf, size_t len)
Writes len bytes from buffer with no trailing read
Defined at line 48 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
StatusRetries ReadSyncRetries (uint8_t addr, uint8_t * buf, size_t len, uint8_t retries, zx::duration delay)
ReadSync with retries, returns status and retry attempts.
Defined at line 53 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
StatusRetries WriteSyncRetries (const uint8_t * buf, size_t len, uint8_t retries, zx::duration delay)
WriteSync with retries, returns status and retry attempts.
Defined at line 59 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
StatusRetries WriteReadSyncRetries (const uint8_t * tx_buf, size_t tx_len, uint8_t * rx_buf, size_t rx_len, uint8_t retries, zx::duration delay)
WriteReadSync with retries, returns status and retry attempts.
Defined at line 65 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
zx_status_t WriteReadSync (const uint8_t * tx_buf, size_t tx_len, uint8_t * rx_buf, size_t rx_len)
Defined at line 77 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
fidl::WireResult<fuchsia_hardware_i2c::Device::Transfer> Transfer (fidl::VectorView<fuchsia_hardware_i2c::wire::Transaction> transactions)
Defined at line 135 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
fidl::WireResult<fuchsia_hardware_i2c::Device::GetName> GetName ()
Defined at line 140 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h
bool is_valid ()
Defined at line 144 of file ../../src/devices/i2c/lib/i2c-channel-legacy/i2c-channel.h