pub struct GPADC { /* private fields */ }Expand description
General Purpose ADC
Implementations§
Source§impl GPADC
impl GPADC
Sourcepub const PTR: *const RegisterBlock = {0x2009000 as *const gpadc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2009000 as *const gpadc::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 gp_fifo_intc(&self) -> &GP_FIFO_INTC
pub fn gp_fifo_intc(&self) -> &GP_FIFO_INTC
0x0c - GPADC FIFO Interrupt Control Register
Sourcepub fn gp_fifo_ints(&self) -> &GP_FIFO_INTS
pub fn gp_fifo_ints(&self) -> &GP_FIFO_INTS
0x10 - GPADC FIFO Interrupt Status Register
Sourcepub fn gp_fifo_data(&self) -> &GP_FIFO_DATA
pub fn gp_fifo_data(&self) -> &GP_FIFO_DATA
0x14 - GPADC FIFO Data Register
Sourcepub fn gp_datal_intc(&self) -> &GP_DATAL_INTC
pub fn gp_datal_intc(&self) -> &GP_DATAL_INTC
0x20 - GPADC Data Low Interrupt Configure Register
Sourcepub fn gp_datah_intc(&self) -> &GP_DATAH_INTC
pub fn gp_datah_intc(&self) -> &GP_DATAH_INTC
0x24 - GPADC Data High Interrupt Configure Register
Sourcepub fn gp_data_intc(&self) -> &GP_DATA_INTC
pub fn gp_data_intc(&self) -> &GP_DATA_INTC
0x28 - GPADC Data Interrupt Configure Register
Sourcepub fn gp_datal_ints(&self) -> &GP_DATAL_INTS
pub fn gp_datal_ints(&self) -> &GP_DATAL_INTS
0x30 - GPADC Data Low Interrupt Status Register
Sourcepub fn gp_datah_ints(&self) -> &GP_DATAH_INTS
pub fn gp_datah_ints(&self) -> &GP_DATAH_INTS
0x34 - GPADC Data High Interrupt Status Register
Sourcepub fn gp_data_ints(&self) -> &GP_DATA_INTS
pub fn gp_data_ints(&self) -> &GP_DATA_INTS
0x38 - GPADC Data Interrupt Status Register
Sourcepub fn gp_ch0_cmp_data(&self) -> &GP_CH0_CMP_DATA
pub fn gp_ch0_cmp_data(&self) -> &GP_CH0_CMP_DATA
0x40 - GPADC CH0 Compare Data Register
Sourcepub fn gp_ch1_cmp_data(&self) -> &GP_CH1_CMP_DATA
pub fn gp_ch1_cmp_data(&self) -> &GP_CH1_CMP_DATA
0x44 - GPADC CH1 Compare Data Register
Sourcepub fn gp_ch0_data(&self) -> &GP_CH0_DATA
pub fn gp_ch0_data(&self) -> &GP_CH0_DATA
0x80 - GPADC CH0 Data Register
Sourcepub fn gp_ch1_data(&self) -> &GP_CH1_DATA
pub fn gp_ch1_data(&self) -> &GP_CH1_DATA
0x84 - GPADC CH1 Data Register