pub struct GPIP { /* private fields */ }
Expand description
Generic DAC and ADC interface control
Implementations§
Source§impl GPIP
impl GPIP
Sourcepub const PTR: *const RegisterBlock = {0x20002000 as *const gpip::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x20002000 as *const gpip::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 gpadc_config(&self) -> &GPADC_CONFIG
pub fn gpadc_config(&self) -> &GPADC_CONFIG
0x00 - Generic Analog-to-Digital Converter register
Sourcepub fn gpadc_dma_read(&self) -> &GPADC_DMA_READ
pub fn gpadc_dma_read(&self) -> &GPADC_DMA_READ
0x04 - DMA data output of Generic Analog-to-Digital Converter
Sourcepub fn gpdac_config(&self) -> &GPDAC_CONFIG
pub fn gpdac_config(&self) -> &GPDAC_CONFIG
0x40 - Generic Digital-to-Analog Converter register
Sourcepub fn gpdac_dma_config(&self) -> &GPDAC_DMA_CONFIG
pub fn gpdac_dma_config(&self) -> &GPDAC_DMA_CONFIG
0x44 - Digital-to-Analog Converter DMA configuration
Sourcepub fn gpdac_dma_write(&self) -> &GPDAC_DMA_WRITE
pub fn gpdac_dma_write(&self) -> &GPDAC_DMA_WRITE
0x48 - DMA data input of Generic Digital-to-Analog Converter
Sourcepub fn gpdac_fifo_state(&self) -> &GPDAC_FIFO_STATE
pub fn gpdac_fifo_state(&self) -> &GPDAC_FIFO_STATE
0x4c - Transmit FIFO state of Generic Digital-to-Analog Converter