pub struct I2c { /* private fields */ }
Expand description

NuttX I2C Bus

Implementations

NuttX Implementation of I2C Bus

Create an I2C Bus from a Device Path (e.g. “/dev/i2c0”)

Trait Implementations

NuttX Implementation of I2C Bus

Close the I2C Bus

NuttX Implementation of I2C Read

Error Type

TODO: Read buf from I2C Port

NuttX Implementation of I2C Write

Error Type

Write buf to I2C Port. We assume this is a Write I2C Register operation, with Register ID at buf[0]. TODO: Handle other kinds of I2C operations

NuttX Implementation of I2C WriteRead

Error Type

Write wbuf to I2C Port and read rbuf from I2C Port. We assume this is a Read I2C Register operation, with Register ID at wbuf[0]. TODO: Handle other kinds of I2C operations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.