Struct riot_sys::NRF_SPIM_Type

source ·
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)


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

< (@ 0x00000010) Start SPI transaction


< (@ 0x00000014) Stop SPI transaction


< (@ 0x0000001C) Suspend SPI transaction


< (@ 0x00000020) Resume SPI transaction


< (@ 0x00000104) SPI transaction has stopped

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

< (@ 0x00000110) End of RXD buffer reached


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


< (@ 0x00000120) End of TXD buffer reached


< (@ 0x0000014C) Transaction started

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

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

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

< (@ 0x00000304) Enable interrupt


< (@ 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


< (@ 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


< (@ 0x00000544) TXD EasyDMA channel

§CONFIG: u32

< (@ 0x00000554) Configuration register


< (@ 0x00000560) Unspecified

§CSNPOL: u32

< (@ 0x00000568) Polarity of CSN output


< (@ 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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.