Struct sx1509::Borrowed [] [src]

pub struct Borrowed<'a, I2C: 'a> where
    I2C: WriteRead + Write
{ /* fields omitted */ }

The Borrowed struct encapsulates the device and a borrowed bus. This is the struct which holds the actual impl for the device driver.

Methods

impl<'a, I2C, E> Borrowed<'a, I2C> where
    I2C: WriteRead<Error = E> + Write<Error = E> + 'a, 
[src]

[src]

Read a 16-bit value from the register and its successor

[src]

Perform a software reset of the module. This restores the device to its power-on defaults.

[src]

Set the direction for each pin in BankA. Each 1 bit will be set to output, each 0 bit will be set to input.

[src]

Set the direction for each pin in BankB. Each 1 bit will be set to output, each 0 bit will be set to input.

[src]

Set the data for each pin in BankA. Each 1 bit will be set to high, each 0 bit will be set low.

[src]

Set the data for each pin in BankB. Each 1 bit will be set to high, each 0 bit will be set low.

[src]

Get the data for each pin in BankA. Each 1 bit is set to high, each 0 bit is set low.

[src]

Get the data for each pin in BankB. Each 1 bit is set to high, each 0 bit is set low.

[src]

Get the data for each pin in BankB and BankA as a 16-bit value. Each 1 bit is set to high, each 0 bit is set low.

[src]

Set the pull-up for each pin in BankA. Each 1 bit will have pull up enabled, 0 disabled

[src]

Set the pull-up for each pin in BankB. Each 1 bit will have pull up enabled, 0 disabled

Trait Implementations

Auto Trait Implementations

impl<'a, I2C> Send for Borrowed<'a, I2C> where
    I2C: Send

impl<'a, I2C> Sync for Borrowed<'a, I2C> where
    I2C: Sync