pub struct Adc0 { /* private fields */ }
Expand description
ADC0
Implementations§
Source§impl Adc0
impl Adc0
Sourcepub const PTR: *const RegisterBlock = {0x40002000 as *const adc0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40002000 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 singlectrl(&self) -> &Singlectrl
pub fn singlectrl(&self) -> &Singlectrl
0x10 - Single Channel Control Register
Sourcepub fn singlectrlx(&self) -> &Singlectrlx
pub fn singlectrlx(&self) -> &Singlectrlx
0x14 - Single Channel Control Register Continued
Sourcepub fn scaninputsel(&self) -> &Scaninputsel
pub fn scaninputsel(&self) -> &Scaninputsel
0x24 - Input Selection Register for Scan Mode
Sourcepub fn scannegsel(&self) -> &Scannegsel
pub fn scannegsel(&self) -> &Scannegsel
0x28 - Negative Input Select Register for Scan
Sourcepub fn biasprog(&self) -> &Biasprog
pub fn biasprog(&self) -> &Biasprog
0x30 - Bias Programming Register for Various Analog Blocks Used in ADC Operation
Sourcepub fn singledata(&self) -> &Singledata
pub fn singledata(&self) -> &Singledata
0x48 - Single Conversion Result Data
Sourcepub fn singledatap(&self) -> &Singledatap
pub fn singledatap(&self) -> &Singledatap
0x50 - Single Conversion Result Data Peek Register
Sourcepub fn scandataxp(&self) -> &Scandataxp
pub fn scandataxp(&self) -> &Scandataxp
0x6c - Scan Sequence Result Data + Data Source Peek Register
Sourcepub fn aportconflict(&self) -> &Aportconflict
pub fn aportconflict(&self) -> &Aportconflict
0x80 - APORT Conflict Status Register
Sourcepub fn singlefifocount(&self) -> &Singlefifocount
pub fn singlefifocount(&self) -> &Singlefifocount
0x84 - Single FIFO Count Register
Sourcepub fn scanfifocount(&self) -> &Scanfifocount
pub fn scanfifocount(&self) -> &Scanfifocount
0x88 - Scan FIFO Count Register
Sourcepub fn singlefifoclear(&self) -> &Singlefifoclear
pub fn singlefifoclear(&self) -> &Singlefifoclear
0x8c - Single FIFO Clear Register
Sourcepub fn scanfifoclear(&self) -> &Scanfifoclear
pub fn scanfifoclear(&self) -> &Scanfifoclear
0x90 - Scan FIFO Clear Register
Sourcepub fn aportmasterdis(&self) -> &Aportmasterdis
pub fn aportmasterdis(&self) -> &Aportmasterdis
0x94 - APORT Bus Master Disable Register