pub struct TVD_TOP { /* private fields */ }Expand description
Television Decoder TOP
Implementations§
Source§impl TVD_TOP
impl TVD_TOP
Sourcepub const PTR: *const RegisterBlock = {0x5c00000 as *const tvd_top::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x5c00000 as *const tvd_top::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 tvd_top_map(&self) -> &TVD_TOP_MAP
pub fn tvd_top_map(&self) -> &TVD_TOP_MAP
0x00 - TVD TOP MAP Register
Sourcepub fn tvd_3d_ctl1(&self) -> &TVD_3D_CTL1
pub fn tvd_3d_ctl1(&self) -> &TVD_3D_CTL1
0x08 - TVD 3D DMA CONTROL Register1
Sourcepub fn tvd_3d_ctl2(&self) -> &TVD_3D_CTL2
pub fn tvd_3d_ctl2(&self) -> &TVD_3D_CTL2
0x0c - TVD 3D DMA CONTROL Register2
Sourcepub fn tvd_3d_ctl3(&self) -> &TVD_3D_CTL3
pub fn tvd_3d_ctl3(&self) -> &TVD_3D_CTL3
0x10 - TVD 3D DMA CONTROL Register3
Sourcepub fn tvd_3d_ctl4(&self) -> &TVD_3D_CTL4
pub fn tvd_3d_ctl4(&self) -> &TVD_3D_CTL4
0x14 - TVD 3D DMA CONTROL Register4
Sourcepub fn tvd_3d_ctl5(&self) -> &TVD_3D_CTL5
pub fn tvd_3d_ctl5(&self) -> &TVD_3D_CTL5
0x18 - TVD 3D DMA CONTROL Register5
Sourcepub fn tvd_top_ctl(&self, n: usize) -> &TVD_TOP_CTL
pub fn tvd_top_ctl(&self, n: usize) -> &TVD_TOP_CTL
0x24..0x34 - TVD TOP CONTROL Register
Sourcepub fn tvd_adc_ctl(&self, n: usize) -> &TVD_ADC_CTL
pub fn tvd_adc_ctl(&self, n: usize) -> &TVD_ADC_CTL
0x28..0x38 - TVD ADC CONTROL Register
Sourcepub fn tvd_adc_cfg(&self, n: usize) -> &TVD_ADC_CFG
pub fn tvd_adc_cfg(&self, n: usize) -> &TVD_ADC_CFG
0x2c..0x3c - TVD ADC CONFIGURATION Register