Reset

Trait Reset 

Source
pub trait Reset {
    type Error;

    // Required method
    fn set_reset(&mut self, state: PinState) -> Result<(), Self::Error>;
}
Expand description

Reset trait for peripherals that have a reset or shutdown pin

Required Associated Types§

Required Methods§

Source

fn set_reset(&mut self, state: PinState) -> Result<(), Self::Error>

Set the reset pin state if available

Implementors§

Source§

impl Reset for Spi

Source§

impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Reset for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
where ResetPin: OutputPin,

Reset pin implementation for inner objects implementing Reset

Source§

type Error = <ResetPin as ErrorType>::Error