Struct SLC

Source
pub struct SLC { /* private fields */ }
Expand description

SLC Peripheral

Implementations§

Source§

impl SLC

Source

pub const PTR: *const RegisterBlock = {0x3ff58000 as *const slc::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn conf0(&self) -> &CONF0

0x00 -

Source

pub fn _0int_raw(&self) -> &_0INT_RAW

0x04 -

Source

pub fn _0int_st(&self) -> &_0INT_ST

0x08 -

Source

pub fn _0int_ena(&self) -> &_0INT_ENA

0x0c -

Source

pub fn _0int_clr(&self) -> &_0INT_CLR

0x10 -

Source

pub fn _1int_raw(&self) -> &_1INT_RAW

0x14 -

Source

pub fn _1int_st(&self) -> &_1INT_ST

0x18 -

Source

pub fn _1int_ena(&self) -> &_1INT_ENA

0x1c -

Source

pub fn _1int_clr(&self) -> &_1INT_CLR

0x20 -

Source

pub fn rx_status(&self) -> &RX_STATUS

0x24 -

Source

pub fn _0rxfifo_push(&self) -> &_0RXFIFO_PUSH

0x28 -

Source

pub fn _1rxfifo_push(&self) -> &_1RXFIFO_PUSH

0x2c -

Source

pub fn tx_status(&self) -> &TX_STATUS

0x30 -

Source

pub fn _0txfifo_pop(&self) -> &_0TXFIFO_POP

0x34 -

Source

pub fn _1txfifo_pop(&self) -> &_1TXFIFO_POP

0x38 -

0x3c -

0x40 -

0x44 -

0x48 -

Source

pub fn intvec_tohost(&self) -> &INTVEC_TOHOST

0x4c -

Source

pub fn _0token0(&self) -> &_0TOKEN0

0x50 -

Source

pub fn _0token1(&self) -> &_0TOKEN1

0x54 -

Source

pub fn _1token0(&self) -> &_1TOKEN0

0x58 -

Source

pub fn _1token1(&self) -> &_1TOKEN1

0x5c -

Source

pub fn conf1(&self) -> &CONF1

0x60 -

Source

pub fn _0_state0(&self) -> &_0_STATE0

0x64 -

Source

pub fn _0_state1(&self) -> &_0_STATE1

0x68 -

Source

pub fn _1_state0(&self) -> &_1_STATE0

0x6c -

Source

pub fn _1_state1(&self) -> &_1_STATE1

0x70 -

Source

pub fn bridge_conf(&self) -> &BRIDGE_CONF

0x74 -

Source

pub fn _0_to_eof_des_addr(&self) -> &_0_TO_EOF_DES_ADDR

0x78 -

Source

pub fn _0_tx_eof_des_addr(&self) -> &_0_TX_EOF_DES_ADDR

0x7c -

Source

pub fn _0_to_eof_bfr_des_addr(&self) -> &_0_TO_EOF_BFR_DES_ADDR

0x80 -

Source

pub fn _1_to_eof_des_addr(&self) -> &_1_TO_EOF_DES_ADDR

0x84 -

Source

pub fn _1_tx_eof_des_addr(&self) -> &_1_TX_EOF_DES_ADDR

0x88 -

Source

pub fn _1_to_eof_bfr_des_addr(&self) -> &_1_TO_EOF_BFR_DES_ADDR

0x8c -

Source

pub fn ahb_test(&self) -> &AHB_TEST

0x90 -

Source

pub fn sdio_st(&self) -> &SDIO_ST

0x94 -

Source

pub fn rx_dscr_conf(&self) -> &RX_DSCR_CONF

0x98 -

0x9c -

0xa0 -

0xa4 -

0xa8 -

0xac -

0xb0 -

0xb4 -

0xb8 -

0xbc -

0xc0 -

0xc4 -

0xc8 -

Source

pub fn _0_tx_erreof_des_addr(&self) -> &_0_TX_ERREOF_DES_ADDR

0xcc -

Source

pub fn _1_tx_erreof_des_addr(&self) -> &_1_TX_ERREOF_DES_ADDR

0xd0 -

Source

pub fn token_lat(&self) -> &TOKEN_LAT

0xd4 -

Source

pub fn tx_dscr_conf(&self) -> &TX_DSCR_CONF

0xd8 -

Source

pub fn cmd_infor0(&self) -> &CMD_INFOR0

0xdc -

Source

pub fn cmd_infor1(&self) -> &CMD_INFOR1

0xe0 -

Source

pub fn _0_len_conf(&self) -> &_0_LEN_CONF

0xe4 -

Source

pub fn _0_length(&self) -> &_0_LENGTH

0xe8 -

Source

pub fn _0_txpkt_h_dscr(&self) -> &_0_TXPKT_H_DSCR

0xec -

Source

pub fn _0_txpkt_e_dscr(&self) -> &_0_TXPKT_E_DSCR

0xf0 -

Source

pub fn _0_rxpkt_h_dscr(&self) -> &_0_RXPKT_H_DSCR

0xf4 -

Source

pub fn _0_rxpkt_e_dscr(&self) -> &_0_RXPKT_E_DSCR

0xf8 -

Source

pub fn _0_txpktu_h_dscr(&self) -> &_0_TXPKTU_H_DSCR

0xfc -

Source

pub fn _0_txpktu_e_dscr(&self) -> &_0_TXPKTU_E_DSCR

0x100 -

Source

pub fn _0_rxpktu_h_dscr(&self) -> &_0_RXPKTU_H_DSCR

0x104 -

Source

pub fn _0_rxpktu_e_dscr(&self) -> &_0_RXPKTU_E_DSCR

0x108 -

Source

pub fn seq_position(&self) -> &SEQ_POSITION

0x114 -

Source

pub fn _0_dscr_rec_conf(&self) -> &_0_DSCR_REC_CONF

0x118 -

Source

pub fn sdio_crc_st0(&self) -> &SDIO_CRC_ST0

0x11c -

Source

pub fn sdio_crc_st1(&self) -> &SDIO_CRC_ST1

0x120 -

Source

pub fn _0_eof_start_des(&self) -> &_0_EOF_START_DES

0x124 -

Source

pub fn _0_push_dscr_addr(&self) -> &_0_PUSH_DSCR_ADDR

0x128 -

Source

pub fn _0_done_dscr_addr(&self) -> &_0_DONE_DSCR_ADDR

0x12c -

Source

pub fn _0_sub_start_des(&self) -> &_0_SUB_START_DES

0x130 -

Source

pub fn _0_dscr_cnt(&self) -> &_0_DSCR_CNT

0x134 -

Source

pub fn _0_len_lim_conf(&self) -> &_0_LEN_LIM_CONF

0x138 -

Source

pub fn _0int_st1(&self) -> &_0INT_ST1

0x13c -

Source

pub fn _0int_ena1(&self) -> &_0INT_ENA1

0x140 -

Source

pub fn _1int_st1(&self) -> &_1INT_ST1

0x144 -

Source

pub fn _1int_ena1(&self) -> &_1INT_ENA1

0x148 -

Source

pub fn date(&self) -> &DATE

0x1f8 -

Source

pub fn id(&self) -> &ID

0x1fc -

Trait Implementations§

Source§

impl Debug for SLC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for SLC

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for SLC

Auto Trait Implementations§

§

impl Freeze for SLC

§

impl RefUnwindSafe for SLC

§

impl !Sync for SLC

§

impl Unpin for SLC

§

impl UnwindSafe for SLC

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.