pub struct AnySpi<'d>(/* private fields */);
Expand description
Any SPI peripheral.
This struct is a type-erased version of a peripheral singleton. It is useful
for creating arrays of peripherals, or avoiding generics. Peripheral singletons
can be type erased by using their From
implementation.
ⓘ
let any_peripheral = AnySpi::from(peripheral);
Implementations§
Trait Implementations§
impl Instance for AnySpi<'_>
impl Instance for AnySpi<'_>
Available on crate feature
unstable
only.