d1_pac/
tvd_top.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    tvd_top_map: TVD_TOP_MAP,
5    _reserved1: [u8; 0x04],
6    tvd_3d_ctl1: TVD_3D_CTL1,
7    tvd_3d_ctl2: TVD_3D_CTL2,
8    tvd_3d_ctl3: TVD_3D_CTL3,
9    tvd_3d_ctl4: TVD_3D_CTL4,
10    tvd_3d_ctl5: TVD_3D_CTL5,
11    _reserved6: [u8; 0x08],
12    tvd_top_ctl: (),
13    _reserved7: [u8; 0x04],
14    tvd_adc_ctl: (),
15    _reserved8: [u8; 0x04],
16    tvd_adc_cfg: (),
17}
18impl RegisterBlock {
19    #[doc = "0x00 - TVD TOP MAP Register"]
20    #[inline(always)]
21    pub const fn tvd_top_map(&self) -> &TVD_TOP_MAP {
22        &self.tvd_top_map
23    }
24    #[doc = "0x08 - TVD 3D DMA CONTROL Register1"]
25    #[inline(always)]
26    pub const fn tvd_3d_ctl1(&self) -> &TVD_3D_CTL1 {
27        &self.tvd_3d_ctl1
28    }
29    #[doc = "0x0c - TVD 3D DMA CONTROL Register2"]
30    #[inline(always)]
31    pub const fn tvd_3d_ctl2(&self) -> &TVD_3D_CTL2 {
32        &self.tvd_3d_ctl2
33    }
34    #[doc = "0x10 - TVD 3D DMA CONTROL Register3"]
35    #[inline(always)]
36    pub const fn tvd_3d_ctl3(&self) -> &TVD_3D_CTL3 {
37        &self.tvd_3d_ctl3
38    }
39    #[doc = "0x14 - TVD 3D DMA CONTROL Register4"]
40    #[inline(always)]
41    pub const fn tvd_3d_ctl4(&self) -> &TVD_3D_CTL4 {
42        &self.tvd_3d_ctl4
43    }
44    #[doc = "0x18 - TVD 3D DMA CONTROL Register5"]
45    #[inline(always)]
46    pub const fn tvd_3d_ctl5(&self) -> &TVD_3D_CTL5 {
47        &self.tvd_3d_ctl5
48    }
49    #[doc = "0x24..0x34 - TVD TOP CONTROL Register"]
50    #[inline(always)]
51    pub const fn tvd_top_ctl(&self, n: usize) -> &TVD_TOP_CTL {
52        #[allow(clippy::no_effect)]
53        [(); 4][n];
54        unsafe {
55            &*(self as *const Self)
56                .cast::<u8>()
57                .add(36)
58                .add(32 * n)
59                .cast()
60        }
61    }
62    #[doc = "0x28..0x38 - TVD ADC CONTROL Register"]
63    #[inline(always)]
64    pub const fn tvd_adc_ctl(&self, n: usize) -> &TVD_ADC_CTL {
65        #[allow(clippy::no_effect)]
66        [(); 4][n];
67        unsafe {
68            &*(self as *const Self)
69                .cast::<u8>()
70                .add(40)
71                .add(32 * n)
72                .cast()
73        }
74    }
75    #[doc = "0x2c..0x3c - TVD ADC CONFIGURATION Register"]
76    #[inline(always)]
77    pub const fn tvd_adc_cfg(&self, n: usize) -> &TVD_ADC_CFG {
78        #[allow(clippy::no_effect)]
79        [(); 4][n];
80        unsafe {
81            &*(self as *const Self)
82                .cast::<u8>()
83                .add(44)
84                .add(32 * n)
85                .cast()
86        }
87    }
88}
89#[doc = "tvd_top_map (rw) register accessor: TVD TOP MAP Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_top_map::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_top_map::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_top_map`] module"]
90pub type TVD_TOP_MAP = crate::Reg<tvd_top_map::TVD_TOP_MAP_SPEC>;
91#[doc = "TVD TOP MAP Register"]
92pub mod tvd_top_map;
93#[doc = "tvd_3d_ctl1 (rw) register accessor: TVD 3D DMA CONTROL Register1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_3d_ctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_3d_ctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_3d_ctl1`] module"]
94pub type TVD_3D_CTL1 = crate::Reg<tvd_3d_ctl1::TVD_3D_CTL1_SPEC>;
95#[doc = "TVD 3D DMA CONTROL Register1"]
96pub mod tvd_3d_ctl1;
97#[doc = "tvd_3d_ctl2 (rw) register accessor: TVD 3D DMA CONTROL Register2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_3d_ctl2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_3d_ctl2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_3d_ctl2`] module"]
98pub type TVD_3D_CTL2 = crate::Reg<tvd_3d_ctl2::TVD_3D_CTL2_SPEC>;
99#[doc = "TVD 3D DMA CONTROL Register2"]
100pub mod tvd_3d_ctl2;
101#[doc = "tvd_3d_ctl3 (rw) register accessor: TVD 3D DMA CONTROL Register3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_3d_ctl3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_3d_ctl3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_3d_ctl3`] module"]
102pub type TVD_3D_CTL3 = crate::Reg<tvd_3d_ctl3::TVD_3D_CTL3_SPEC>;
103#[doc = "TVD 3D DMA CONTROL Register3"]
104pub mod tvd_3d_ctl3;
105#[doc = "tvd_3d_ctl4 (rw) register accessor: TVD 3D DMA CONTROL Register4\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_3d_ctl4::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_3d_ctl4::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_3d_ctl4`] module"]
106pub type TVD_3D_CTL4 = crate::Reg<tvd_3d_ctl4::TVD_3D_CTL4_SPEC>;
107#[doc = "TVD 3D DMA CONTROL Register4"]
108pub mod tvd_3d_ctl4;
109#[doc = "tvd_3d_ctl5 (rw) register accessor: TVD 3D DMA CONTROL Register5\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_3d_ctl5::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_3d_ctl5::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_3d_ctl5`] module"]
110pub type TVD_3D_CTL5 = crate::Reg<tvd_3d_ctl5::TVD_3D_CTL5_SPEC>;
111#[doc = "TVD 3D DMA CONTROL Register5"]
112pub mod tvd_3d_ctl5;
113#[doc = "tvd_top_ctl (rw) register accessor: TVD TOP CONTROL Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_top_ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_top_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_top_ctl`] module"]
114pub type TVD_TOP_CTL = crate::Reg<tvd_top_ctl::TVD_TOP_CTL_SPEC>;
115#[doc = "TVD TOP CONTROL Register"]
116pub mod tvd_top_ctl;
117#[doc = "tvd_adc_ctl (rw) register accessor: TVD ADC CONTROL Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_adc_ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_adc_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_adc_ctl`] module"]
118pub type TVD_ADC_CTL = crate::Reg<tvd_adc_ctl::TVD_ADC_CTL_SPEC>;
119#[doc = "TVD ADC CONTROL Register"]
120pub mod tvd_adc_ctl;
121#[doc = "tvd_adc_cfg (rw) register accessor: TVD ADC CONFIGURATION Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tvd_adc_cfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tvd_adc_cfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tvd_adc_cfg`] module"]
122pub type TVD_ADC_CFG = crate::Reg<tvd_adc_cfg::TVD_ADC_CFG_SPEC>;
123#[doc = "TVD ADC CONFIGURATION Register"]
124pub mod tvd_adc_cfg;