[][src]Trait wifi_nina::transport::Transport

pub trait Transport {
    type Error;
    fn reset(&mut self) -> Result<(), Self::Error>;
fn delay(&mut self, duration: Duration) -> Result<(), Self::Error>;
fn handle_cmd<SP, RP>(
        &mut self,
        command: Command,
        send_params: &SP,
        recv_params: &mut RP,
        long_send: bool,
        long_recv: bool
    ) -> Result<(), Self::Error>
    where
        SP: SendParams + Debug,
        RP: RecvParams + Debug
; }

Associated Types

type Error

Loading content...

Required methods

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

fn delay(&mut self, duration: Duration) -> Result<(), Self::Error>

fn handle_cmd<SP, RP>(
    &mut self,
    command: Command,
    send_params: &SP,
    recv_params: &mut RP,
    long_send: bool,
    long_recv: bool
) -> Result<(), Self::Error> where
    SP: SendParams + Debug,
    RP: RecvParams + Debug

Loading content...

Implementors

impl<SPI, BUSY, RESET, CS, DELAY> Transport for SpiTransport<SPI, BUSY, RESET, CS, DELAY> where
    SPI: FullDuplex<u8>,
    BUSY: InputPin,
    RESET: OutputPin,
    CS: OutputPin,
    DELAY: FnMut(Duration), 
[src]

type Error = SpiError<SPI::Error, BUSY::Error, RESET::Error, CS::Error>

Loading content...