#[repr(usize)]
pub enum Mcp23017 {
Show 16 variants A0, A1, A2, A3, A4, A5, A6, A7, B0, B1, B2, B3, B4, B5, B6, B7,
}
Expand description

MCP23017 register map.

Note: This operates the chip in IOCON.BANK=0 mode, i.e. even register addresses are bank 0. This driver does not set IOCON.BANK, but the factory default is 0 and this driver does not change that value.

See the datasheet for more information on the device.

Variants

A0

A1

A2

A3

A4

A5

A6

A7

B0

B1

B2

B3

B4

B5

B6

B7

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

A way to map a named register (Register) and pin (from Pin, depending on the variant) to a register address and bit index. This may depend on the number of IO banks, the way the banks are ordered in memory, and even the current configuration (IOCON.BANK). Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.