Struct mcxn947_pac::ADC0

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

ADC

Implementations§

source§

impl ADC0

source

pub const PTR: *const RegisterBlock = {0x4010d000 as *const adc0::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 verid(&self) -> &VERID

0x00 - Version ID Register

source

pub fn param(&self) -> &PARAM

0x04 - Parameter Register

source

pub fn ctrl(&self) -> &CTRL

0x10 - Control Register

source

pub fn stat(&self) -> &STAT

0x14 - Status Register

source

pub fn ie(&self) -> &IE

0x18 - Interrupt Enable Register

source

pub fn de(&self) -> &DE

0x1c - DMA Enable Register

source

pub fn cfg(&self) -> &CFG

0x20 - Configuration Register

source

pub fn pause(&self) -> &PAUSE

0x24 - Pause Register

source

pub fn swtrig(&self) -> &SWTRIG

0x34 - Software Trigger Register

source

pub fn tstat(&self) -> &TSTAT

0x38 - Trigger Status Register

source

pub fn ofstrim(&self) -> &OFSTRIM

0x40 - Offset Trim Register

source

pub fn tctrl(&self, n: usize) -> &TCTRL

0xa0..0xb0 - Trigger Control Register

source

pub fn tctrl_iter(&self) -> impl Iterator<Item = &TCTRL>

Iterator for array of: 0xa0..0xb0 - Trigger Control Register

source

pub fn fctrl(&self, n: usize) -> &FCTRL

0xe0..0xe8 - FIFO Control Register

source

pub fn fctrl_iter(&self) -> impl Iterator<Item = &FCTRL>

Iterator for array of: 0xe0..0xe8 - FIFO Control Register

source

pub fn gcc(&self, n: usize) -> &GCC

0xf0..0xf8 - Gain Calibration Control

source

pub fn gcc_iter(&self) -> impl Iterator<Item = &GCC>

Iterator for array of: 0xf0..0xf8 - Gain Calibration Control

source

pub fn gcr(&self, n: usize) -> &GCR

0xf8..0x100 - Gain Calculation Result

source

pub fn gcr_iter(&self) -> impl Iterator<Item = &GCR>

Iterator for array of: 0xf8..0x100 - Gain Calculation Result

source

pub fn cmdl(&self, n: usize) -> &CMDL

0x100..0x13c - Command Low Buffer Register

source

pub fn cmdl_iter(&self) -> impl Iterator<Item = &CMDL>

Iterator for array of: 0x100..0x13c - Command Low Buffer Register

source

pub fn cmdl1(&self) -> &CMDL

0x100 - Command Low Buffer Register

source

pub fn cmdl2(&self) -> &CMDL

0x108 - Command Low Buffer Register

source

pub fn cmdl3(&self) -> &CMDL

0x110 - Command Low Buffer Register

source

pub fn cmdl4(&self) -> &CMDL

0x118 - Command Low Buffer Register

source

pub fn cmdl5(&self) -> &CMDL

0x120 - Command Low Buffer Register

source

pub fn cmdl6(&self) -> &CMDL

0x128 - Command Low Buffer Register

source

pub fn cmdl7(&self) -> &CMDL

0x130 - Command Low Buffer Register

source

pub fn cmdl8(&self) -> &CMDL

0x138 - Command Low Buffer Register

source

pub fn cmdl9(&self) -> &CMDL

0x140 - Command Low Buffer Register

source

pub fn cmdl10(&self) -> &CMDL

0x148 - Command Low Buffer Register

source

pub fn cmdl11(&self) -> &CMDL

0x150 - Command Low Buffer Register

source

pub fn cmdl12(&self) -> &CMDL

0x158 - Command Low Buffer Register

source

pub fn cmdl13(&self) -> &CMDL

0x160 - Command Low Buffer Register

source

pub fn cmdl14(&self) -> &CMDL

0x168 - Command Low Buffer Register

source

pub fn cmdl15(&self) -> &CMDL

0x170 - Command Low Buffer Register

source

pub fn cmdh(&self, n: usize) -> &CMDH

0x104..0x140 - Command High Buffer Register

source

pub fn cmdh_iter(&self) -> impl Iterator<Item = &CMDH>

Iterator for array of: 0x104..0x140 - Command High Buffer Register

source

pub fn cmdh1(&self) -> &CMDH

0x104 - Command High Buffer Register

source

pub fn cmdh2(&self) -> &CMDH

0x10c - Command High Buffer Register

source

pub fn cmdh3(&self) -> &CMDH

0x114 - Command High Buffer Register

source

pub fn cmdh4(&self) -> &CMDH

0x11c - Command High Buffer Register

source

pub fn cmdh5(&self) -> &CMDH

0x124 - Command High Buffer Register

source

pub fn cmdh6(&self) -> &CMDH

0x12c - Command High Buffer Register

source

pub fn cmdh7(&self) -> &CMDH

0x134 - Command High Buffer Register

source

pub fn cmdh8(&self) -> &CMDH

0x13c - Command High Buffer Register

source

pub fn cmdh9(&self) -> &CMDH

0x144 - Command High Buffer Register

source

pub fn cmdh10(&self) -> &CMDH

0x14c - Command High Buffer Register

source

pub fn cmdh11(&self) -> &CMDH

0x154 - Command High Buffer Register

source

pub fn cmdh12(&self) -> &CMDH

0x15c - Command High Buffer Register

source

pub fn cmdh13(&self) -> &CMDH

0x164 - Command High Buffer Register

source

pub fn cmdh14(&self) -> &CMDH

0x16c - Command High Buffer Register

source

pub fn cmdh15(&self) -> &CMDH

0x174 - Command High Buffer Register

source

pub fn cv(&self, n: usize) -> &CV

0x200..0x23c - Compare Value Register

source

pub fn cv_iter(&self) -> impl Iterator<Item = &CV>

Iterator for array of: 0x200..0x23c - Compare Value Register

source

pub fn cv1(&self) -> &CV

0x200 - Compare Value Register

source

pub fn cv2(&self) -> &CV

0x204 - Compare Value Register

source

pub fn cv3(&self) -> &CV

0x208 - Compare Value Register

source

pub fn cv4(&self) -> &CV

0x20c - Compare Value Register

source

pub fn cv5(&self) -> &CV

0x210 - Compare Value Register

source

pub fn cv6(&self) -> &CV

0x214 - Compare Value Register

source

pub fn cv7(&self) -> &CV

0x218 - Compare Value Register

source

pub fn cv8(&self) -> &CV

0x21c - Compare Value Register

source

pub fn cv9(&self) -> &CV

0x220 - Compare Value Register

source

pub fn cv10(&self) -> &CV

0x224 - Compare Value Register

source

pub fn cv11(&self) -> &CV

0x228 - Compare Value Register

source

pub fn cv12(&self) -> &CV

0x22c - Compare Value Register

source

pub fn cv13(&self) -> &CV

0x230 - Compare Value Register

source

pub fn cv14(&self) -> &CV

0x234 - Compare Value Register

source

pub fn cv15(&self) -> &CV

0x238 - Compare Value Register

source

pub fn resfifo(&self, n: usize) -> &RESFIFO

0x300..0x308 - Data Result FIFO Register

source

pub fn resfifo_iter(&self) -> impl Iterator<Item = &RESFIFO>

Iterator for array of: 0x300..0x308 - Data Result FIFO Register

source

pub fn cal_gar(&self, n: usize) -> &CAL_GAR

0x400..0x484 - Calibration General A-Side Registers

source

pub fn cal_gar_iter(&self) -> impl Iterator<Item = &CAL_GAR>

Iterator for array of: 0x400..0x484 - Calibration General A-Side Registers

source

pub fn cal_gbr(&self, n: usize) -> &CAL_GBR

0x500..0x584 - Calibration General B-Side Registers

source

pub fn cal_gbr_iter(&self) -> impl Iterator<Item = &CAL_GBR>

Iterator for array of: 0x500..0x584 - Calibration General B-Side Registers

Trait Implementations§

source§

impl Debug for ADC0

source§

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

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

impl Deref for ADC0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for ADC0

Auto Trait Implementations§

§

impl RefUnwindSafe for ADC0

§

impl !Sync for ADC0

§

impl Unpin for ADC0

§

impl UnwindSafe for ADC0

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.