Struct riot_wrappers::spi::SPIDevice
source · pub struct SPIDevice(pub spi_t);
Available on
riot_module_periph_spi
only.Tuple Fields§
§0: spi_t
👎Deprecated: Use constructor instead
Implementations§
source§impl SPIDevice
impl SPIDevice
sourcepub fn from_number(bus: u32) -> Self
pub fn from_number(bus: u32) -> Self
Create an SPI device from the number it is assigned on the board
pub fn acquire<'a>( &'a mut self, cs: spi_cs_t, mode: spi_mode_t, clk: spi_clk_t ) -> AcquiredSPI<'a>
Auto Trait Implementations§
impl RefUnwindSafe for SPIDevice
impl Send for SPIDevice
impl Sync for SPIDevice
impl Unpin for SPIDevice
impl UnwindSafe for SPIDevice
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