Struct xmc4500::VADC_G3

source ·
pub struct VADC_G3 { /* private fields */ }
Expand description

Analog to Digital Converter

Implementations§

source§

impl VADC_G3

source

pub const PTR: *const RegisterBlock = {0x40005000 as *const vadc_g0::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 arbcfg(&self) -> &ARBCFG

0x80 - Arbitration Configuration Register

source

pub fn arbpr(&self) -> &ARBPR

0x84 - Arbitration Priority Register

source

pub fn chass(&self) -> &CHASS

0x88 - Channel Assignment Register

source

pub fn iclass(&self, n: usize) -> &ICLASS

0xa0..0xa8 - Input Class Register

source

pub fn iclass_iter(&self) -> impl Iterator<Item = &ICLASS>

Iterator for array of: 0xa0..0xa8 - Input Class Register

source

pub fn alias(&self) -> &ALIAS

0xb0 - Alias Register

source

pub fn bound(&self) -> &BOUND

0xb8 - Boundary Select Register

source

pub fn synctr(&self) -> &SYNCTR

0xc0 - Synchronization Control Register

source

pub fn bfl(&self) -> &BFL

0xc8 - Boundary Flag Register

source

pub fn qctrl0(&self) -> &QCTRL0

0x100 - Queue 0 Source Control Register

source

pub fn qmr0(&self) -> &QMR0

0x104 - Queue 0 Mode Register

source

pub fn qsr0(&self) -> &QSR0

0x108 - Queue 0 Status Register

source

pub fn q0r0(&self) -> &Q0R0

0x10c - Queue 0 Register 0

source

pub fn qbur0(&self) -> &QBUR0

0x110 - Queue 0 Backup Register

source

pub fn qinr0(&self) -> &QINR0

0x110 - Queue 0 Input Register

source

pub fn asctrl(&self) -> &ASCTRL

0x120 - Autoscan Source Control Register

source

pub fn asmr(&self) -> &ASMR

0x124 - Autoscan Source Mode Register

source

pub fn assel(&self) -> &ASSEL

0x128 - Autoscan Source Channel Select Register

source

pub fn aspnd(&self) -> &ASPND

0x12c - Autoscan Source Pending Register

source

pub fn ceflag(&self) -> &CEFLAG

0x180 - Channel Event Flag Register

source

pub fn reflag(&self) -> &REFLAG

0x184 - Result Event Flag Register

source

pub fn seflag(&self) -> &SEFLAG

0x188 - Source Event Flag Register

source

pub fn cefclr(&self) -> &CEFCLR

0x190 - Channel Event Flag Clear Register

source

pub fn refclr(&self) -> &REFCLR

0x194 - Result Event Flag Clear Register

source

pub fn sefclr(&self) -> &SEFCLR

0x198 - Source Event Flag Clear Register

source

pub fn cevnp0(&self) -> &CEVNP0

0x1a0 - Channel Event Node Pointer Register 0

source

pub fn revnp0(&self) -> &REVNP0

0x1b0 - Result Event Node Pointer Register 0

source

pub fn revnp1(&self) -> &REVNP1

0x1b4 - Result Event Node Pointer Register 1

source

pub fn sevnp(&self) -> &SEVNP

0x1c0 - Source Event Node Pointer Register

source

pub fn sract(&self) -> &SRACT

0x1c8 - Service Request Software Activation Trigger

source

pub fn emuxctr(&self) -> &EMUXCTR

0x1f0 - External Multiplexer Control Register

source

pub fn vfr(&self) -> &VFR

0x1f8 - Valid Flag Register

source

pub fn chctr(&self, n: usize) -> &CHCTR

0x200..0x220 - Channel Ctrl. Reg.

source

pub fn chctr_iter(&self) -> impl Iterator<Item = &CHCTR>

Iterator for array of: 0x200..0x220 - Channel Ctrl. Reg.

source

pub fn rcr(&self, n: usize) -> &RCR

0x280..0x2c0 - Result Control Register

source

pub fn rcr_iter(&self) -> impl Iterator<Item = &RCR>

Iterator for array of: 0x280..0x2c0 - Result Control Register

source

pub fn res(&self, n: usize) -> &RES

0x300..0x340 - Result Register

source

pub fn res_iter(&self) -> impl Iterator<Item = &RES>

Iterator for array of: 0x300..0x340 - Result Register

source

pub fn resd(&self, n: usize) -> &RESD

0x380..0x3c0 - Result Register, Debug

source

pub fn resd_iter(&self) -> impl Iterator<Item = &RESD>

Iterator for array of: 0x380..0x3c0 - Result Register, Debug

Trait Implementations§

source§

impl Debug for VADC_G3

source§

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

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

impl Deref for VADC_G3

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for VADC_G3

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.