Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn cmd(&self) -> &CMD

0x00 - SPI1 memory command register

Source

pub const fn addr(&self) -> &ADDR

0x04 - SPI1 address register

Source

pub const fn ctrl(&self) -> &CTRL

0x08 - SPI1 control register.

Source

pub const fn ctrl1(&self) -> &CTRL1

0x0c - SPI1 control1 register.

Source

pub const fn ctrl2(&self) -> &CTRL2

0x10 - SPI1 control2 register.

Source

pub const fn clock(&self) -> &CLOCK

0x14 - SPI1 clock division control register.

Source

pub const fn user(&self) -> &USER

0x18 - SPI1 user register.

Source

pub const fn user1(&self) -> &USER1

0x1c - SPI1 user1 register.

Source

pub const fn user2(&self) -> &USER2

0x20 - SPI1 user2 register.

Source

pub const fn mosi_dlen(&self) -> &MOSI_DLEN

0x24 - SPI1 send data bit length control register.

Source

pub const fn miso_dlen(&self) -> &MISO_DLEN

0x28 - SPI1 receive data bit length control register.

Source

pub const fn rd_status(&self) -> &RD_STATUS

0x2c - SPI1 status register.

Source

pub const fn misc(&self) -> &MISC

0x34 - SPI1 misc register

Source

pub const fn tx_crc(&self) -> &TX_CRC

0x38 - SPI1 TX CRC data register.

Source

pub const fn cache_fctrl(&self) -> &CACHE_FCTRL

0x3c - SPI1 bit mode control register.

Source

pub const fn w(&self, n: usize) -> &W

0x58..0x98 - SPI1 memory data buffer%s

Source

pub fn w_iter(&self) -> impl Iterator<Item = &W>

Iterator for array of: 0x58..0x98 - SPI1 memory data buffer%s

Source

pub const fn flash_waiti_ctrl(&self) -> &FLASH_WAITI_CTRL

0x98 - SPI1 wait idle control register

Source

pub const fn flash_sus_ctrl(&self) -> &FLASH_SUS_CTRL

0x9c - SPI1 flash suspend control register

Source

pub const fn flash_sus_cmd(&self) -> &FLASH_SUS_CMD

0xa0 - SPI1 flash suspend command register

Source

pub const fn sus_status(&self) -> &SUS_STATUS

0xa4 - SPI1 flash suspend status register

Source

pub const fn int_ena(&self) -> &INT_ENA

0xc0 - SPI1 interrupt enable register

Source

pub const fn int_clr(&self) -> &INT_CLR

0xc4 - SPI1 interrupt clear register

Source

pub const fn int_raw(&self) -> &INT_RAW

0xc8 - SPI1 interrupt raw register

Source

pub const fn int_st(&self) -> &INT_ST

0xcc - SPI1 interrupt status register

Source

pub const fn ddr(&self) -> &DDR

0xd4 - SPI1 DDR control register

Source

pub const fn timing_cali(&self) -> &TIMING_CALI

0x180 - SPI1 timing control register

Source

pub const fn clock_gate(&self) -> &CLOCK_GATE

0x200 - SPI1 clk_gate register

Source

pub const fn date(&self) -> &DATE

0x3fc - Version control register

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

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.