pub struct Spi2RxBuilder {
pub base: SpiBase<SPI2>,
pub sck: PB13,
pub miso: PB14,
}Expand description
spi2 rx builder
Fields§
§base: SpiBase<SPI2>spi device
sck: PB13sck pin
miso: PB14miso pin
Implementations§
Source§impl Spi2RxBuilder
custom method
impl Spi2RxBuilder
custom method
Sourcepub fn build(self, tx_dma: DMA1_CH5, rx_dma: DMA1_CH4) -> Spi<'static, Async>
pub fn build(self, tx_dma: DMA1_CH5, rx_dma: DMA1_CH4) -> 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 Spi2RxBuilder
impl RefUnwindSafe for Spi2RxBuilder
impl Send for Spi2RxBuilder
impl Sync for Spi2RxBuilder
impl Unpin for Spi2RxBuilder
impl UnwindSafe for Spi2RxBuilder
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