#[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
impl Clone for NRF_SPIM_Type
Source§fn clone(&self) -> NRF_SPIM_Type
fn clone(&self) -> NRF_SPIM_Type
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NRF_SPIM_Type
impl Debug for NRF_SPIM_Type
Source§impl Default for NRF_SPIM_Type
impl Default for NRF_SPIM_Type
impl Copy for NRF_SPIM_Type
Auto Trait Implementations§
impl Freeze for NRF_SPIM_Type
impl RefUnwindSafe for NRF_SPIM_Type
impl Send for NRF_SPIM_Type
impl Sync for NRF_SPIM_Type
impl Unpin for NRF_SPIM_Type
impl UnwindSafe for NRF_SPIM_Type
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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