Struct nrf52840_pac::qspi::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 24 fields pub tasks_activate: TASKS_ACTIVATE, pub tasks_readstart: TASKS_READSTART, pub tasks_writestart: TASKS_WRITESTART, pub tasks_erasestart: TASKS_ERASESTART, pub tasks_deactivate: TASKS_DEACTIVATE, pub events_ready: EVENTS_READY, pub inten: INTEN, pub intenset: INTENSET, pub intenclr: INTENCLR, pub enable: ENABLE, pub read: READ, pub write: WRITE, pub erase: ERASE, pub psel: PSEL, pub xipoffset: XIPOFFSET, pub ifconfig0: IFCONFIG0, pub ifconfig1: IFCONFIG1, pub status: STATUS, pub dpmdur: DPMDUR, pub addrconf: ADDRCONF, pub cinstrconf: CINSTRCONF, pub cinstrdat0: CINSTRDAT0, pub cinstrdat1: CINSTRDAT1, pub iftiming: IFTIMING, /* private fields */
}
Expand description

Register block

Fields§

§tasks_activate: TASKS_ACTIVATE

0x00 - Activate QSPI interface

§tasks_readstart: TASKS_READSTART

0x04 - Start transfer from external flash memory to internal RAM

§tasks_writestart: TASKS_WRITESTART

0x08 - Start transfer from internal RAM to external flash memory

§tasks_erasestart: TASKS_ERASESTART

0x0c - Start external flash memory erase operation

§tasks_deactivate: TASKS_DEACTIVATE

0x10 - Deactivate QSPI interface

§events_ready: EVENTS_READY

0x100 - QSPI peripheral is ready. This event will be generated as a response to any QSPI task.

§inten: INTEN

0x300 - Enable or disable interrupt

§intenset: INTENSET

0x304 - Enable interrupt

§intenclr: INTENCLR

0x308 - Disable interrupt

§enable: ENABLE

0x500 - Enable QSPI peripheral and acquire the pins selected in PSELn registers

§read: READ

0x504..0x510 - Unspecified

§write: WRITE

0x510..0x51c - Unspecified

§erase: ERASE

0x51c..0x524 - Unspecified

§psel: PSEL

0x524..0x540 - Unspecified

§xipoffset: XIPOFFSET

0x540 - Address offset into the external memory for Execute in Place operation.

§ifconfig0: IFCONFIG0

0x544 - Interface configuration.

§ifconfig1: IFCONFIG1

0x600 - Interface configuration.

§status: STATUS

0x604 - Status register.

§dpmdur: DPMDUR

0x614 - Set the duration required to enter/exit deep power-down mode (DPM).

§addrconf: ADDRCONF

0x624 - Extended address configuration.

§cinstrconf: CINSTRCONF

0x634 - Custom instruction configuration register.

§cinstrdat0: CINSTRDAT0

0x638 - Custom instruction data register 0.

§cinstrdat1: CINSTRDAT1

0x63c - Custom instruction data register 1.

§iftiming: IFTIMING

0x640 - SPI interface timing.

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> 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>,

§

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>,

§

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.