Struct mcxn947_pac::ADC1
source · pub struct ADC1 { /* private fields */ }
Expand description
ADC
Implementations§
source§impl ADC1
impl ADC1
sourcepub const PTR: *const RegisterBlock = {0x4010e000 as *const adc0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4010e000 as *const adc0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn tctrl_iter(&self) -> impl Iterator<Item = &TCTRL>
pub fn tctrl_iter(&self) -> impl Iterator<Item = &TCTRL>
Iterator for array of: 0xa0..0xb0 - Trigger Control Register
sourcepub fn fctrl_iter(&self) -> impl Iterator<Item = &FCTRL>
pub fn fctrl_iter(&self) -> impl Iterator<Item = &FCTRL>
Iterator for array of: 0xe0..0xe8 - FIFO Control Register
sourcepub fn gcc_iter(&self) -> impl Iterator<Item = &GCC>
pub fn gcc_iter(&self) -> impl Iterator<Item = &GCC>
Iterator for array of: 0xf0..0xf8 - Gain Calibration Control
sourcepub fn gcr_iter(&self) -> impl Iterator<Item = &GCR>
pub fn gcr_iter(&self) -> impl Iterator<Item = &GCR>
Iterator for array of: 0xf8..0x100 - Gain Calculation Result
sourcepub fn cmdl_iter(&self) -> impl Iterator<Item = &CMDL>
pub fn cmdl_iter(&self) -> impl Iterator<Item = &CMDL>
Iterator for array of: 0x100..0x13c - Command Low Buffer Register
sourcepub fn cmdh_iter(&self) -> impl Iterator<Item = &CMDH>
pub fn cmdh_iter(&self) -> impl Iterator<Item = &CMDH>
Iterator for array of: 0x104..0x140 - Command High Buffer Register
sourcepub fn cv_iter(&self) -> impl Iterator<Item = &CV>
pub fn cv_iter(&self) -> impl Iterator<Item = &CV>
Iterator for array of: 0x200..0x23c - Compare Value Register
sourcepub fn resfifo_iter(&self) -> impl Iterator<Item = &RESFIFO>
pub fn resfifo_iter(&self) -> impl Iterator<Item = &RESFIFO>
Iterator for array of: 0x300..0x308 - Data Result FIFO Register
sourcepub fn cal_gar(&self, n: usize) -> &CAL_GAR
pub fn cal_gar(&self, n: usize) -> &CAL_GAR
0x400..0x484 - Calibration General A-Side Registers
sourcepub fn cal_gar_iter(&self) -> impl Iterator<Item = &CAL_GAR>
pub fn cal_gar_iter(&self) -> impl Iterator<Item = &CAL_GAR>
Iterator for array of: 0x400..0x484 - Calibration General A-Side Registers
sourcepub fn cal_gbr(&self, n: usize) -> &CAL_GBR
pub fn cal_gbr(&self, n: usize) -> &CAL_GBR
0x500..0x584 - Calibration General B-Side Registers
sourcepub fn cal_gbr_iter(&self) -> impl Iterator<Item = &CAL_GBR>
pub fn cal_gbr_iter(&self) -> impl Iterator<Item = &CAL_GBR>
Iterator for array of: 0x500..0x584 - Calibration General B-Side Registers