pub struct SPI2 { /* private fields */ }
Available on crate feature
spi
only.Expand description
Peripheral-specific SPI driver.
Implementations§
Source§impl SPI2
impl SPI2
Sourcepub fn new(
sck_pin: impl Peripheral<P: PeripheralOutput> + 'static,
miso_pin: impl Peripheral<P: PeripheralInput> + 'static,
mosi_pin: impl Peripheral<P: PeripheralOutput> + 'static,
config: Config,
) -> Spi
pub fn new( sck_pin: impl Peripheral<P: PeripheralOutput> + 'static, miso_pin: impl Peripheral<P: PeripheralInput> + 'static, mosi_pin: impl Peripheral<P: PeripheralOutput> + 'static, config: Config, ) -> Spi
Returns a driver implementing [embedded_hal_async::spi::SpiBus
] for this SPI
peripheral.
Auto Trait Implementations§
impl Freeze for SPI2
impl RefUnwindSafe for SPI2
impl Send for SPI2
impl Sync for SPI2
impl Unpin for SPI2
impl !UnwindSafe for SPI2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more