Skip to main content

SPI0

Struct SPI0 

Source
pub struct SPI0 { /* private fields */ }
Expand description

SPI0 peripheral

Implementations§

Source§

impl SPI0

Source

pub const unsafe fn steal() -> Peri<'static, Self>

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

Trait Implementations§

Source§

impl Clone for SPI0

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SPI0

Source§

impl CsPin<SPI0> for P103

Source§

impl Debug for SPI0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Instance for SPI0

Source§

fn tx_waker() -> &'static AtomicWaker

Waker for transmit buffer empty events.

Source§

fn te_waker() -> &'static AtomicWaker

Waker for transmit end events.

Source§

const RX_EVENT: InterruptEvent = crate::event_link::InterruptEvent::Spi0Rxi

Source§

const TX_EVENT: InterruptEvent = crate::event_link::InterruptEvent::Spi0Txi

Source§

const TE_EVENT: InterruptEvent = crate::event_link::InterruptEvent::Spi0Tei

Source§

const ERROR_EVENT: InterruptEvent = crate::event_link::InterruptEvent::Spi0Eri

Source§

fn rx_waker() -> &'static AtomicWaker

Source§

impl MisoPin<SPI0> for P100

Source§

impl MisoPin<SPI0> for P410

§

impl ModuleStop for SPI0

§

fn start_module()

Enables the peripheral clock.
§

fn stop_module()

Disables the peripheral clock.
§

fn active() -> bool

Returns true if the peripheral’s clock is enabled.
Source§

impl MosiPin<SPI0> for P101

Source§

impl MosiPin<SPI0> for P411

Source§

impl PeripheralType for SPI0

Source§

impl SckPin<SPI0> for P102

Auto Trait Implementations§

§

impl Forget for SPI0

§

impl Freeze for SPI0

§

impl Move for SPI0

§

impl RefUnwindSafe for SPI0

§

impl Send for SPI0

§

impl Sync for SPI0

§

impl Unpin for SPI0

§

impl UnsafeUnpin for SPI0

§

impl UnwindSafe for SPI0

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.