[][src]Trait embedded_spi::Reset

pub trait Reset {
    type Error;
    fn set_reset(&mut self, state: PinState) -> Result<(), Self::Error>;
}

Reset trait for peripherals that have a reset or shutdown pin

Associated Types

type Error

Loading content...

Required methods

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

Set the reset pin state if available

Loading content...

Implementors

impl Reset for Spi[src]

type Error = Error<(), ()>

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

Check peripheral ready status

impl<Spi, SpiError, Output, Input, PinError, Delay> Reset for Wrapper<Spi, SpiError, Output, Input, PinError, Delay> where
    Spi: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError>,
    Output: OutputPin<Error = PinError>,
    Input: InputPin<Error = PinError>,
    Delay: DelayMs<u32>, 
[src]

type Error = Error<SpiError, PinError>

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

Set the reset pin state

Loading content...