max78000_pac/
dvs.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ctl: Ctl,
5    stat: Stat,
6    direct: Direct,
7    mon: Mon,
8    adj_up: AdjUp,
9    adj_dwn: AdjDwn,
10    thres_cmp: ThresCmp,
11    tap_sel: [TapSel; 5],
12}
13impl RegisterBlock {
14    #[doc = "0x00 - Control Register"]
15    #[inline(always)]
16    pub const fn ctl(&self) -> &Ctl {
17        &self.ctl
18    }
19    #[doc = "0x04 - Status Fields"]
20    #[inline(always)]
21    pub const fn stat(&self) -> &Stat {
22        &self.stat
23    }
24    #[doc = "0x08 - Direct control of target voltage"]
25    #[inline(always)]
26    pub const fn direct(&self) -> &Direct {
27        &self.direct
28    }
29    #[doc = "0x0c - Monitor Delay"]
30    #[inline(always)]
31    pub const fn mon(&self) -> &Mon {
32        &self.mon
33    }
34    #[doc = "0x10 - Up Delay Register"]
35    #[inline(always)]
36    pub const fn adj_up(&self) -> &AdjUp {
37        &self.adj_up
38    }
39    #[doc = "0x14 - Down Delay Register"]
40    #[inline(always)]
41    pub const fn adj_dwn(&self) -> &AdjDwn {
42        &self.adj_dwn
43    }
44    #[doc = "0x18 - Up Delay Register"]
45    #[inline(always)]
46    pub const fn thres_cmp(&self) -> &ThresCmp {
47        &self.thres_cmp
48    }
49    #[doc = "0x1c..0x30 - DVS Tap Select Register"]
50    #[inline(always)]
51    pub const fn tap_sel(&self, n: usize) -> &TapSel {
52        &self.tap_sel[n]
53    }
54    #[doc = "Iterator for array of:"]
55    #[doc = "0x1c..0x30 - DVS Tap Select Register"]
56    #[inline(always)]
57    pub fn tap_sel_iter(&self) -> impl Iterator<Item = &TapSel> {
58        self.tap_sel.iter()
59    }
60}
61#[doc = "CTL (rw) register accessor: Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl`]
62module"]
63#[doc(alias = "CTL")]
64pub type Ctl = crate::Reg<ctl::CtlSpec>;
65#[doc = "Control Register"]
66pub mod ctl;
67#[doc = "STAT (rw) register accessor: Status Fields\n\nYou can [`read`](crate::Reg::read) this register and get [`stat::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`stat::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
68module"]
69#[doc(alias = "STAT")]
70pub type Stat = crate::Reg<stat::StatSpec>;
71#[doc = "Status Fields"]
72pub mod stat;
73#[doc = "DIRECT (rw) register accessor: Direct control of target voltage\n\nYou can [`read`](crate::Reg::read) this register and get [`direct::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`direct::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@direct`]
74module"]
75#[doc(alias = "DIRECT")]
76pub type Direct = crate::Reg<direct::DirectSpec>;
77#[doc = "Direct control of target voltage"]
78pub mod direct;
79#[doc = "MON (rw) register accessor: Monitor Delay\n\nYou can [`read`](crate::Reg::read) this register and get [`mon::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mon::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mon`]
80module"]
81#[doc(alias = "MON")]
82pub type Mon = crate::Reg<mon::MonSpec>;
83#[doc = "Monitor Delay"]
84pub mod mon;
85#[doc = "ADJ_UP (rw) register accessor: Up Delay Register\n\nYou can [`read`](crate::Reg::read) this register and get [`adj_up::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`adj_up::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@adj_up`]
86module"]
87#[doc(alias = "ADJ_UP")]
88pub type AdjUp = crate::Reg<adj_up::AdjUpSpec>;
89#[doc = "Up Delay Register"]
90pub mod adj_up;
91#[doc = "ADJ_DWN (rw) register accessor: Down Delay Register\n\nYou can [`read`](crate::Reg::read) this register and get [`adj_dwn::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`adj_dwn::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@adj_dwn`]
92module"]
93#[doc(alias = "ADJ_DWN")]
94pub type AdjDwn = crate::Reg<adj_dwn::AdjDwnSpec>;
95#[doc = "Down Delay Register"]
96pub mod adj_dwn;
97#[doc = "THRES_CMP (rw) register accessor: Up Delay Register\n\nYou can [`read`](crate::Reg::read) this register and get [`thres_cmp::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`thres_cmp::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@thres_cmp`]
98module"]
99#[doc(alias = "THRES_CMP")]
100pub type ThresCmp = crate::Reg<thres_cmp::ThresCmpSpec>;
101#[doc = "Up Delay Register"]
102pub mod thres_cmp;
103#[doc = "TAP_SEL (rw) register accessor: DVS Tap Select Register\n\nYou can [`read`](crate::Reg::read) this register and get [`tap_sel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tap_sel::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tap_sel`]
104module"]
105#[doc(alias = "TAP_SEL")]
106pub type TapSel = crate::Reg<tap_sel::TapSelSpec>;
107#[doc = "DVS Tap Select Register"]
108pub mod tap_sel;