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

MCP23017 i2c Interface

Implementations

Used to set the pullUp resistor setting for a pin. Returns the whole register value.

Set pin to either input or output mode. Returns the value of the combined IODIRA and IODIRB registers.

Set an output pin to a specific value.

Read the value of a pin.

Read the value of a pin regardless of it’s mode

Configure system interrupt settings. Mirror - are the int pins mirrored? Intpol - polarity of the int pin.

Configure interrupt setting for a specific pin. set on or off.

The function determines the pin that caused the interrupt and gets its value. The interrupt is cleared. Returns pin and the value.

Check to see if there is an interrupt pending 3 times in a row (indicating it’s stuck) and if needed clear the interrupt without reading values.

Reset all pins and interrupts

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.