n32g4/n32g432/dac.rs
1#[repr(C)]
2///Register block
3pub struct RegisterBlock {
4 ctrl: Ctrl,
5 sottr: Sottr,
6 dr12ch: Dr12ch,
7 dl12ch: Dl12ch,
8 dr8ch: Dr8ch,
9 _reserved5: [u8; 0x18],
10 dato: Dato,
11}
12impl RegisterBlock {
13 ///0x00 - DAC_CTRL
14 #[inline(always)]
15 pub const fn ctrl(&self) -> &Ctrl {
16 &self.ctrl
17 }
18 ///0x04 - DAC_SOTTR
19 #[inline(always)]
20 pub const fn sottr(&self) -> &Sottr {
21 &self.sottr
22 }
23 ///0x08 - DAC_DR12CH
24 #[inline(always)]
25 pub const fn dr12ch(&self) -> &Dr12ch {
26 &self.dr12ch
27 }
28 ///0x0c - DAC_DL12CH
29 #[inline(always)]
30 pub const fn dl12ch(&self) -> &Dl12ch {
31 &self.dl12ch
32 }
33 ///0x10 - DAC_DR8CH
34 #[inline(always)]
35 pub const fn dr8ch(&self) -> &Dr8ch {
36 &self.dr8ch
37 }
38 ///0x2c - DAC_DATO
39 #[inline(always)]
40 pub const fn dato(&self) -> &Dato {
41 &self.dato
42 }
43}
44///CTRL (rw) register accessor: DAC_CTRL
45///
46///You can [`read`](crate::generic::Reg::read) this register and get [`ctrl::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 [`ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
47///
48///For information about available fields see [`mod@ctrl`]
49///module
50#[doc(alias = "CTRL")]
51pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
52///DAC_CTRL
53pub mod ctrl;
54///SOTTR (w) register accessor: DAC_SOTTR
55///
56///You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sottr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
57///
58///For information about available fields see [`mod@sottr`]
59///module
60#[doc(alias = "SOTTR")]
61pub type Sottr = crate::Reg<sottr::SottrSpec>;
62///DAC_SOTTR
63pub mod sottr;
64///DR12CH (rw) register accessor: DAC_DR12CH
65///
66///You can [`read`](crate::generic::Reg::read) this register and get [`dr12ch::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 [`dr12ch::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
67///
68///For information about available fields see [`mod@dr12ch`]
69///module
70#[doc(alias = "DR12CH")]
71pub type Dr12ch = crate::Reg<dr12ch::Dr12chSpec>;
72///DAC_DR12CH
73pub mod dr12ch;
74///DL12CH (rw) register accessor: DAC_DL12CH
75///
76///You can [`read`](crate::generic::Reg::read) this register and get [`dl12ch::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 [`dl12ch::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
77///
78///For information about available fields see [`mod@dl12ch`]
79///module
80#[doc(alias = "DL12CH")]
81pub type Dl12ch = crate::Reg<dl12ch::Dl12chSpec>;
82///DAC_DL12CH
83pub mod dl12ch;
84///DR8CH (rw) register accessor: DAC_DR8CH
85///
86///You can [`read`](crate::generic::Reg::read) this register and get [`dr8ch::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 [`dr8ch::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
87///
88///For information about available fields see [`mod@dr8ch`]
89///module
90#[doc(alias = "DR8CH")]
91pub type Dr8ch = crate::Reg<dr8ch::Dr8chSpec>;
92///DAC_DR8CH
93pub mod dr8ch;
94///DATO (rw) register accessor: DAC_DATO
95///
96///You can [`read`](crate::generic::Reg::read) this register and get [`dato::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 [`dato::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
97///
98///For information about available fields see [`mod@dato`]
99///module
100#[doc(alias = "DATO")]
101pub type Dato = crate::Reg<dato::DatoSpec>;
102///DAC_DATO
103pub mod dato;