Skip to main content

spi

Function spi 

Source
pub fn spi(
    sck: &[(Tick, Level)],
    mosi: &[(Tick, Level)],
    miso: Option<&[(Tick, Level)]>,
    cs: &[(Tick, Level)],
    mode: SpiMode,
) -> Vec<Frame>
Expand description

Decode SPI frames from SCK, MOSI, optional MISO and CS recordings.

A frame opens when CS falls and closes when it rises. If the record starts with CS already low, the frame opens at the first SCK change and is dated from its first sample.