Trait driver_pal::Ready

source ·
pub trait Ready {
    type Error;

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

Ready trait for peripherals that support a ready signal (or IRQ)

Required Associated Types§

Required Methods§

source

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

Returns the busy pin state if bound

Implementors§

source§

impl Ready for Spi

source§

impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Ready for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
where ReadyPin: InputPin,

Ready pin implementation for inner object implementing Ready

§

type Error = <ReadyPin as ErrorType>::Error