pub struct Spi3Builder {
pub base: SpiBase<SPI3>,
pub sck: Spi3Sck,
pub mosi: Spi3Mosi,
pub miso: Spi3Miso,
}Expand description
spi3 builder
Fields§
§base: SpiBase<SPI3>spi device
sck: Spi3Scksck pin
mosi: Spi3Mosimosi pin
miso: Spi3Misomiso pin
Implementations§
Source§impl Spi3Builder
custom method
impl Spi3Builder
custom method
Sourcepub fn build(self, tx_dma: DMA2_CH2, rx_dma: DMA2_CH1) -> Spi<'static, Async>
pub fn build(self, tx_dma: DMA2_CH2, rx_dma: DMA2_CH1) -> Spi<'static, Async>
Create a new SPI driver.
more see Spi::<Async>::new
Sourcepub fn build_blocking(self) -> Spi<'static, Blocking>
pub fn build_blocking(self) -> Spi<'static, Blocking>
Create a new blocking SPI driver.
more see Spi::<Blocking>::new_blocking
Auto Trait Implementations§
impl Freeze for Spi3Builder
impl RefUnwindSafe for Spi3Builder
impl Send for Spi3Builder
impl Sync for Spi3Builder
impl Unpin for Spi3Builder
impl UnwindSafe for Spi3Builder
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