Struct esp32c2::spi0::RegisterBlock

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

Register block

Implementations§

source§

impl RegisterBlock

source

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

0x08 - SPI0 control register.

source

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

0x0c - SPI0 control1 register.

source

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

0x10 - SPI0 control2 register.

source

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

0x14 - SPI clock division control register.

source

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

0x18 - SPI0 user register.

source

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

0x1c - SPI0 user1 register.

source

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

0x20 - SPI0 user2 register.

source

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

0x2c - SPI0 read control register.

source

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

0x34 - SPI0 misc register

source

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

0x3c - SPI0 bit mode control register.

source

pub const fn fsm(&self) -> &FSM

0x54 - SPI0 FSM status register

source

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

0xa8 - SPI0 timing calibration register

source

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

0xac - SPI0 input delay mode control register

source

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

0xb0 - SPI0 input delay number control register

source

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

0xb4 - SPI0 output delay mode control register

source

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

0xdc - SPI0 clk_gate register

source

pub const fn core_clk_sel(&self) -> &CORE_CLK_SEL

0xe0 - SPI0 module clock select 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>,

§

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.