atsamd11d

Struct Dsu

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

Device Service Unit

Implementations§

Source§

impl Dsu

Source

pub const PTR: *const RegisterBlock = {0x41002000 as *const dsu::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 ctrl(&self) -> &Ctrl

0x00 - Control

Source

pub fn statusa(&self) -> &Statusa

0x01 - Status A

Source

pub fn statusb(&self) -> &Statusb

0x02 - Status B

Source

pub fn addr(&self) -> &Addr

0x04 - Address

Source

pub fn length(&self) -> &Length

0x08 - Length

Source

pub fn data(&self) -> &Data

0x0c - Data

Source

pub fn dcc(&self, n: usize) -> &Dcc

0x10..0x18 - Debug Communication Channel n

Source

pub fn dcc_iter(&self) -> impl Iterator<Item = &Dcc>

Iterator for array of: 0x10..0x18 - Debug Communication Channel n

Source

pub fn did(&self) -> &Did

0x18 - Device Identification

Source

pub fn dcfg(&self, n: usize) -> &Dcfg

0xf0..0xf8 - Device Configuration

Source

pub fn dcfg_iter(&self) -> impl Iterator<Item = &Dcfg>

Iterator for array of: 0xf0..0xf8 - Device Configuration

Source

pub fn entry0(&self) -> &Entry0

0x1000 - CoreSight ROM Table Entry 0

Source

pub fn entry1(&self) -> &Entry1

0x1004 - CoreSight ROM Table Entry 1

Source

pub fn end(&self) -> &End

0x1008 - CoreSight ROM Table End

Source

pub fn memtype(&self) -> &Memtype

0x1fcc - CoreSight ROM Table Memory Type

Source

pub fn pid4(&self) -> &Pid4

0x1fd0 - Peripheral Identification 4

Source

pub fn pid5(&self) -> &Pid5

0x1fd4 - Peripheral Identification 5

Source

pub fn pid6(&self) -> &Pid6

0x1fd8 - Peripheral Identification 6

Source

pub fn pid7(&self) -> &Pid7

0x1fdc - Peripheral Identification 7

Source

pub fn pid0(&self) -> &Pid0

0x1fe0 - Peripheral Identification 0

Source

pub fn pid1(&self) -> &Pid1

0x1fe4 - Peripheral Identification 1

Source

pub fn pid2(&self) -> &Pid2

0x1fe8 - Peripheral Identification 2

Source

pub fn pid3(&self) -> &Pid3

0x1fec - Peripheral Identification 3

Source

pub fn cid0(&self) -> &Cid0

0x1ff0 - Component Identification 0

Source

pub fn cid1(&self) -> &Cid1

0x1ff4 - Component Identification 1

Source

pub fn cid2(&self) -> &Cid2

0x1ff8 - Component Identification 2

Source

pub fn cid3(&self) -> &Cid3

0x1ffc - Component Identification 3

Trait Implementations§

Source§

impl Debug for Dsu

Source§

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

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

impl Deref for Dsu

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for Dsu

Auto Trait Implementations§

§

impl Freeze for Dsu

§

impl RefUnwindSafe for Dsu

§

impl !Sync for Dsu

§

impl Unpin for Dsu

§

impl UnwindSafe for Dsu

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.