Module spi

Module spi 

Source
Expand description

To make use of this module you can simply pass this in as a value from the fuzz_target macro e.g.

use libfuzzer_sys::fuzz_target;
use embedded_hal_fuzz::spi::ArbitrarySpiBus;
use embedded_hal::spi::SpiBus;
use arbitrary::Arbitrary;

fuzz_target!(|spi: ArbitrarySpiBus<u16>| {
  let mut spi = spi;
  let mut read = vec![0;10];
  let _ = spi.read(&mut read);
});

Structsยง

ArbitrarySpiBus
Creates a fuzzed SpiBus, this type is intended to be constructed the arbitrary crate e.g.
Error