Enum capsules::mcp23008::State
[−]
[src]
enum State { Idle, SelectIoDir(u8, Direction), ReadIoDir(u8, Direction), SelectGpPu(u8, bool), ReadGpPu(u8, bool), SetGpPu(u8), SelectGpio(u8, PinState), ReadGpio(u8, PinState), SelectGpioToggle(u8), ReadGpioToggle(u8), SelectGpioRead(u8), ReadGpioRead(u8), EnableInterruptSettings, ReadInterruptSetup, ReadInterruptValues, Done, }
States of the I2C protocol with the MCP23008.
Variants
Idle
SelectIoDir(u8, Direction)
ReadIoDir(u8, Direction)
SelectGpPu(u8, bool)
ReadGpPu(u8, bool)
SetGpPu(u8)
SelectGpio(u8, PinState)
ReadGpio(u8, PinState)
SelectGpioToggle(u8)
ReadGpioToggle(u8)
SelectGpioRead(u8)
ReadGpioRead(u8)
EnableInterruptSettings
ReadInterruptSetup
ReadInterruptValues
Done
Disable I2C and release buffer
Trait Implementations
impl Clone for State
[src]
fn clone(&self) -> State
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for State
[src]
impl Debug for State
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more