pub struct VADC { /* private fields */ }
Expand description
Analog to Digital Converter
Implementations§
source§impl VADC
impl VADC
sourcepub const PTR: *const RegisterBlock = {0x40004000 as *const vadc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40004000 as *const vadc::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 globiclass(&self, n: usize) -> &GLOBICLASS
pub fn globiclass(&self, n: usize) -> &GLOBICLASS
0xa0..0xa8 - Input Class Register, Global
sourcepub fn globiclass_iter(&self) -> impl Iterator<Item = &GLOBICLASS>
pub fn globiclass_iter(&self) -> impl Iterator<Item = &GLOBICLASS>
Iterator for array of: 0xa0..0xa8 - Input Class Register, Global
sourcepub fn brssel(&self, n: usize) -> &BRSSEL
pub fn brssel(&self, n: usize) -> &BRSSEL
0x180..0x190 - Background Request Source Channel Select Register
sourcepub fn brssel_iter(&self) -> impl Iterator<Item = &BRSSEL>
pub fn brssel_iter(&self) -> impl Iterator<Item = &BRSSEL>
Iterator for array of: 0x180..0x190 - Background Request Source Channel Select Register
sourcepub fn brspnd(&self, n: usize) -> &BRSPND
pub fn brspnd(&self, n: usize) -> &BRSPND
0x1c0..0x1d0 - Background Request Source Pending Register
sourcepub fn brspnd_iter(&self) -> impl Iterator<Item = &BRSPND>
pub fn brspnd_iter(&self) -> impl Iterator<Item = &BRSPND>
Iterator for array of: 0x1c0..0x1d0 - Background Request Source Pending Register