pub struct Spi3RxBuilder {
pub base: SpiBase<SPI3>,
pub sck: Spi3Sck,
pub miso: Spi3Miso,
}Expand description
spi3 rx builder
Fields§
§base: SpiBase<SPI3>spi device
sck: Spi3Scksck pin
miso: Spi3Misomiso pin
Implementations§
Source§impl Spi3RxBuilder
custom method
impl Spi3RxBuilder
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, in RX-only mode (only MISO pin, no MOSI).
more see Spi::<Async>::new_rxonly
Sourcepub fn build_blocking(self) -> Spi<'static, Blocking>
pub fn build_blocking(self) -> Spi<'static, Blocking>
Create a new blocking SPI driver, in RX-only mode (only MISO pin, no MOSI).
more see Spi::<Blocking>::new_blocking_rxonly
Auto Trait Implementations§
impl Freeze for Spi3RxBuilder
impl RefUnwindSafe for Spi3RxBuilder
impl Send for Spi3RxBuilder
impl Sync for Spi3RxBuilder
impl Unpin for Spi3RxBuilder
impl UnwindSafe for Spi3RxBuilder
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