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

NuttX I2C Struct

Implementations

New NuttX I2C Bus

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

Trait Implementations

Drop NuttX SPI Bus

Close the SPI Bus

NuttX I2C Read

TODO: Error Type

TODO: Read buf from I2C Port

NuttX I2C Write

TODO: 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 I2C WriteRead

TODO: 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.