Expand description
To make use of this module you can simply pass this in as a value from the fuzz_target macro e.g.
§Example
use libfuzzer_sys::fuzz_target;
use embedded_hal_fuzz::i2c::ArbitraryI2c;
use embedded_hal::i2c::{I2c, SevenBitAddress, TenBitAddress};
fuzz_target!(|i2c: ArbitraryI2c<SevenBitAddress>| {
let mut i2c = i2c;
let mut read = vec![0;10];
let _ = i2c.read(1, &mut read);
});Structs§
- Arbitrary
I2c - Creates a fuzzed i2c driver, this type is intended to be constructed the arbitrary crate e.g.
- Error