Struct SLC

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

SDIO SLC

Implementations§

Source§

impl SLC

Source

pub const PTR: *const RegisterBlock = {0x60017000 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 slcconf0(&self) -> &SLCCONF0

0x00 - DMA configuration

Source

pub fn slc0int_raw(&self) -> &SLC0INT_RAW

0x04 - SLC0 to slave raw interrupt status

Source

pub fn slc0int_st(&self) -> &SLC0INT_ST

0x08 - SLC0 to slave masked interrupt status

Source

pub fn slc0int_ena(&self) -> &SLC0INT_ENA

0x0c - SLC0 to slave interrupt enable

Source

pub fn slc0int_clr(&self) -> &SLC0INT_CLR

0x10 - SLC0 to slave interrupt clear

Source

pub fn slc1int_raw(&self) -> &SLC1INT_RAW

0x14 - SLC1 to slave raw interrupt status

Source

pub fn slc1int_clr(&self) -> &SLC1INT_CLR

0x20 - SLC1 to slave interrupt clear

0x3c - SLC0 RX linked list configuration

0x40 - SLC0 RX linked list address

0x44 - SLC0 TX linked list configuration

0x48 - SLC0 TX linked list address

0x4c - SLC1 RX linked list configuration

0x50 - SLC1 RX linked list address

0x54 - SLC1 TX linked list configuration

0x58 - SLC1 TX linked list address

Source

pub fn slcintvec_tohost(&self) -> &SLCINTVEC_TOHOST

0x5c - Slave to host interrupt vector set

Source

pub fn slc0token1(&self) -> &SLC0TOKEN1

0x64 - SLC0 receiving buffer configuration

Source

pub fn slc1token1(&self) -> &SLC1TOKEN1

0x6c - SLC1 receiving buffer configuration

Source

pub fn slcconf1(&self) -> &SLCCONF1

0x70 - DMA configuration

Source

pub fn slc_rx_dscr_conf(&self) -> &SLC_RX_DSCR_CONF

0xa8 - DMA slave to host configuration register

Source

pub fn slc0_len_conf(&self) -> &SLC0_LEN_CONF

0xf4 - Length control of transmitting packets

Source

pub fn slc0_length(&self) -> &SLC0_LENGTH

0xf8 - Length of transmitting packets

Source

pub fn slc1int_st1(&self) -> &SLC1INT_ST1

0x14c - SLC1 to slave masked interrupt status

Source

pub fn slc1int_ena1(&self) -> &SLC1INT_ENA1

0x150 - SLC1 to slave interrupt enable

Source

pub fn slc0_tx_sharemem_start(&self) -> &SLC0_TX_SHAREMEM_START

0x154 - SLC0 AHB TX start address range

Source

pub fn slc0_tx_sharemem_end(&self) -> &SLC0_TX_SHAREMEM_END

0x158 - SLC0 AHB TX end address range

Source

pub fn slc0_rx_sharemem_start(&self) -> &SLC0_RX_SHAREMEM_START

0x15c - SLC0 AHB RX start address range

Source

pub fn slc0_rx_sharemem_end(&self) -> &SLC0_RX_SHAREMEM_END

0x160 - SLC0 AHB RX end address range

Source

pub fn slc1_tx_sharemem_start(&self) -> &SLC1_TX_SHAREMEM_START

0x164 - SLC1 AHB TX start address range

Source

pub fn slc1_tx_sharemem_end(&self) -> &SLC1_TX_SHAREMEM_END

0x168 - SLC1 AHB TX end address range

Source

pub fn slc1_rx_sharemem_start(&self) -> &SLC1_RX_SHAREMEM_START

0x16c - SLC1 AHB RX start address range

Source

pub fn slc1_rx_sharemem_end(&self) -> &SLC1_RX_SHAREMEM_END

0x170 - SLC1 AHB RX end address range

Source

pub fn slc_burst_len(&self) -> &SLC_BURST_LEN

0x17c - DMA AHB burst type configuration

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.