pub struct SPI {
pub mosi: Pb23<Input<Floating>>,
pub miso: Pb22<Input<Floating>>,
pub sck: Pa17<Input<Floating>>,
}
Expand description
SPI pins
Fields
mosi: Pb23<Input<Floating>>
miso: Pb22<Input<Floating>>
sck: Pa17<Input<Floating>>
Implementations
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom1: SERCOM1,
mclk: &mut MCLK,
port: &mut Port
) -> SPIMaster1<Sercom1Pad2<Pb22<PfC>>, Sercom1Pad3<Pb23<PfC>>, Sercom1Pad1<Pa17<PfC>>>
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom1: SERCOM1,
mclk: &mut MCLK,
port: &mut Port
) -> SPIMaster1<Sercom1Pad2<Pb22<PfC>>, Sercom1Pad3<Pb23<PfC>>, Sercom1Pad1<Pa17<PfC>>>
Convenience for setting up the labelled pins to operate as an SPI master, running at the specified frequency.
Auto Trait Implementations
impl RefUnwindSafe for SPI
impl UnwindSafe for SPI
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.