Struct esp32c3::spi2::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 DMA interrupt enable register

source

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

0x38 - SPI DMA interrupt clear register

source

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

0x3c - SPI DMA interrupt raw register

source

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

0x40 - SPI DMA interrupt status register

source

pub const fn w0(&self) -> &W0

0x98 - SPI CPU-controlled buffer0

source

pub const fn w1(&self) -> &W1

0x9c - SPI CPU-controlled buffer1

source

pub const fn w2(&self) -> &W2

0xa0 - SPI CPU-controlled buffer2

source

pub const fn w3(&self) -> &W3

0xa4 - SPI CPU-controlled buffer3

source

pub const fn w4(&self) -> &W4

0xa8 - SPI CPU-controlled buffer4

source

pub const fn w5(&self) -> &W5

0xac - SPI CPU-controlled buffer5

source

pub const fn w6(&self) -> &W6

0xb0 - SPI CPU-controlled buffer6

source

pub const fn w7(&self) -> &W7

0xb4 - SPI CPU-controlled buffer7

source

pub const fn w8(&self) -> &W8

0xb8 - SPI CPU-controlled buffer8

source

pub const fn w9(&self) -> &W9

0xbc - SPI CPU-controlled buffer9

source

pub const fn w10(&self) -> &W10

0xc0 - SPI CPU-controlled buffer10

source

pub const fn w11(&self) -> &W11

0xc4 - SPI CPU-controlled buffer11

source

pub const fn w12(&self) -> &W12

0xc8 - SPI CPU-controlled buffer12

source

pub const fn w13(&self) -> &W13

0xcc - SPI CPU-controlled buffer13

source

pub const fn w14(&self) -> &W14

0xd0 - SPI CPU-controlled buffer14

source

pub const fn w15(&self) -> &W15

0xd4 - SPI CPU-controlled buffer15

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

§

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.