Struct sx1509::Sx1509 [] [src]

pub struct Sx1509<I2C> where
    I2C: WriteRead + Write
{ /* fields omitted */ }

The Sx1509 struct encapsulates the basic data about the device. You need to borrow or take the I2C bus to issue IO.

Methods

impl<I2C> Sx1509<I2C> where
    I2C: WriteRead + Write
[src]

[src]

Create an instance. No implicit initialization is performed. You will likely want to perform a software_reset as the next step.

[src]

Take ownership of the bus and return an Owned instance. This is best suited for asynchronous usage where you initiate IO and later test to see whether it is complete. This doesn't make a lot of sense with the current implementation of the Sx1509 driver as no such workflows are supported today. You probably want the borrow method instead.

[src]

Borrow ownership of the bus and return a Borrowed instance that can be used to perform IO.

Trait Implementations

Auto Trait Implementations

impl<I2C> Send for Sx1509<I2C> where
    I2C: Send

impl<I2C> Sync for Sx1509<I2C> where
    I2C: Sync