riot_sys::bindgen

Struct NRF_SPIM_Type

Source
#[repr(C)]
pub struct NRF_SPIM_Type {
Show 40 fields pub RESERVED: [u32; 4], pub TASKS_START: u32, pub TASKS_STOP: u32, pub RESERVED1: u32, pub TASKS_SUSPEND: u32, pub TASKS_RESUME: u32, pub RESERVED2: [u32; 56], pub EVENTS_STOPPED: u32, pub RESERVED3: [u32; 2], pub EVENTS_ENDRX: u32, pub RESERVED4: u32, pub EVENTS_END: u32, pub RESERVED5: u32, pub EVENTS_ENDTX: u32, pub RESERVED6: [u32; 10], pub EVENTS_STARTED: u32, pub RESERVED7: [u32; 44], pub SHORTS: u32, pub RESERVED8: [u32; 64], pub INTENSET: u32, pub INTENCLR: u32, pub RESERVED9: [u32; 61], pub STALLSTAT: u32, pub RESERVED10: [u32; 63], pub ENABLE: u32, pub RESERVED11: u32, pub PSEL: SPIM_PSEL_Type, pub RESERVED12: [u32; 3], pub FREQUENCY: u32, pub RESERVED13: [u32; 3], pub RXD: SPIM_RXD_Type, pub TXD: SPIM_TXD_Type, pub CONFIG: u32, pub RESERVED14: [u32; 2], pub IFTIMING: SPIM_IFTIMING_Type, pub CSNPOL: u32, pub PSELDCX: u32, pub DCXCNT: u32, pub RESERVED15: [u32; 19], pub ORC: u32,
}
Expand description

@brief Serial Peripheral Interface Master with EasyDMA 0 (SPIM0)

Fields§

§RESERVED: [u32; 4]§TASKS_START: u32

< (@ 0x00000010) Start SPI transaction

§TASKS_STOP: u32

< (@ 0x00000014) Stop SPI transaction

§RESERVED1: u32§TASKS_SUSPEND: u32

< (@ 0x0000001C) Suspend SPI transaction

§TASKS_RESUME: u32

< (@ 0x00000020) Resume SPI transaction

§RESERVED2: [u32; 56]§EVENTS_STOPPED: u32

< (@ 0x00000104) SPI transaction has stopped

§RESERVED3: [u32; 2]§EVENTS_ENDRX: u32

< (@ 0x00000110) End of RXD buffer reached

§RESERVED4: u32§EVENTS_END: u32

< (@ 0x00000118) End of RXD buffer and TXD buffer reached

§RESERVED5: u32§EVENTS_ENDTX: u32

< (@ 0x00000120) End of TXD buffer reached

§RESERVED6: [u32; 10]§EVENTS_STARTED: u32

< (@ 0x0000014C) Transaction started

§RESERVED7: [u32; 44]§SHORTS: u32

< (@ 0x00000200) Shortcuts between local events and tasks

§RESERVED8: [u32; 64]§INTENSET: u32

< (@ 0x00000304) Enable interrupt

§INTENCLR: u32

< (@ 0x00000308) Disable interrupt

§RESERVED9: [u32; 61]§STALLSTAT: u32

< (@ 0x00000400) Stall status for EasyDMA RAM accesses. The fields in this register is set to STALL by hardware whenever a stall occurres and can be cleared (set to NOSTALL) by the CPU.

§RESERVED10: [u32; 63]§ENABLE: u32

< (@ 0x00000500) Enable SPIM

§RESERVED11: u32§PSEL: SPIM_PSEL_Type

< (@ 0x00000508) Unspecified

§RESERVED12: [u32; 3]§FREQUENCY: u32

< (@ 0x00000524) SPI frequency. Accuracy depends on the HFCLK source selected.

§RESERVED13: [u32; 3]§RXD: SPIM_RXD_Type

< (@ 0x00000534) RXD EasyDMA channel

§TXD: SPIM_TXD_Type

< (@ 0x00000544) TXD EasyDMA channel

§CONFIG: u32

< (@ 0x00000554) Configuration register

§RESERVED14: [u32; 2]§IFTIMING: SPIM_IFTIMING_Type

< (@ 0x00000560) Unspecified

§CSNPOL: u32

< (@ 0x00000568) Polarity of CSN output

§PSELDCX: u32

< (@ 0x0000056C) Pin select for DCX signal

§DCXCNT: u32

< (@ 0x00000570) DCX configuration

§RESERVED15: [u32; 19]§ORC: u32

< (@ 0x000005C0) Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT

Trait Implementations§

Source§

impl Clone for NRF_SPIM_Type

Source§

fn clone(&self) -> NRF_SPIM_Type

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NRF_SPIM_Type

Source§

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

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

impl Default for NRF_SPIM_Type

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for NRF_SPIM_Type

Auto Trait Implementations§

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1476 bytes