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 - Command control register

Source

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

0x04 - Address value register

Source

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

0x08 - SPI control register

Source

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

0x0c - SPI clock control register

Source

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

0x10 - SPI USER control register

Source

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

0x14 - SPI USER control register 1

Source

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

0x18 - SPI USER control register 2

Source

pub const fn ms_dlen(&self) -> &MS_DLEN

0x1c - SPI data bit length control register

Source

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

0x20 - SPI misc register

Source

pub const fn din_mode(&self) -> &DIN_MODE

0x24 - SPI input delay mode configuration

Source

pub const fn din_num(&self) -> &DIN_NUM

0x28 - SPI input delay number configuration

Source

pub const fn dout_mode(&self) -> &DOUT_MODE

0x2c - SPI output delay mode configuration

Source

pub const fn dma_conf(&self) -> &DMA_CONF

0x30 - SPI DMA control register

Source

pub const fn dma_int_ena(&self) -> &DMA_INT_ENA

0x34 - SPI interrupt enable register

Source

pub const fn dma_int_clr(&self) -> &DMA_INT_CLR

0x38 - SPI interrupt clear register

Source

pub const fn dma_int_raw(&self) -> &DMA_INT_RAW

0x3c - SPI interrupt raw register

Source

pub const fn dma_int_st(&self) -> &DMA_INT_ST

0x40 - SPI interrupt status register

Source

pub const fn dma_int_set(&self) -> &DMA_INT_SET

0x44 - SPI interrupt software set register

Source

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

0x98..0xd8 - SPI CPU-controlled buffer%s

Source

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

Iterator for array of: 0x98..0xd8 - SPI CPU-controlled buffer%s

Source

pub const fn slave(&self) -> &SLAVE

0xe0 - SPI slave control register

Source

pub const fn slave1(&self) -> &SLAVE1

0xe4 - SPI slave control register 1

Source

pub const fn clk_gate(&self) -> &CLK_GATE

0xe8 - SPI module clock and register clock control

Source

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

0xf0 - Version control

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.