pub struct I2CDevice {
    pub params: I2CDeviceParams,
}
Expand description

An instantiated I2C device.

Doesn’t do much aside from acting as a token that keeps the device instantiated as long as it exists (its drop impl deletes the device).

Fields

params: I2CDeviceParams

The parameters of the device we’ve instantiated.

Implementations

Instantiate an I2CDevice from an I2CDeviceParams.

Trait Implementations

Deletes the I2C device represented by self by writing to delete_device.

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.