xmc4400/
ccu80.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    gctrl: GCTRL,
5    gstat: GSTAT,
6    gidls: GIDLS,
7    gidlc: GIDLC,
8    gcss: GCSS,
9    gcsc: GCSC,
10    gcst: GCST,
11    gpchk: GPCHK,
12    _reserved8: [u8; 0x30],
13    ecrd: ECRD,
14    _reserved9: [u8; 0x2c],
15    midr: MIDR,
16}
17impl RegisterBlock {
18    #[doc = "0x00 - Global Control Register"]
19    #[inline(always)]
20    pub const fn gctrl(&self) -> &GCTRL {
21        &self.gctrl
22    }
23    #[doc = "0x04 - Global Status Register"]
24    #[inline(always)]
25    pub const fn gstat(&self) -> &GSTAT {
26        &self.gstat
27    }
28    #[doc = "0x08 - Global Idle Set"]
29    #[inline(always)]
30    pub const fn gidls(&self) -> &GIDLS {
31        &self.gidls
32    }
33    #[doc = "0x0c - Global Idle Clear"]
34    #[inline(always)]
35    pub const fn gidlc(&self) -> &GIDLC {
36        &self.gidlc
37    }
38    #[doc = "0x10 - Global Channel Set"]
39    #[inline(always)]
40    pub const fn gcss(&self) -> &GCSS {
41        &self.gcss
42    }
43    #[doc = "0x14 - Global Channel Clear"]
44    #[inline(always)]
45    pub const fn gcsc(&self) -> &GCSC {
46        &self.gcsc
47    }
48    #[doc = "0x18 - Global Channel status"]
49    #[inline(always)]
50    pub const fn gcst(&self) -> &GCST {
51        &self.gcst
52    }
53    #[doc = "0x1c - Parity Checker Configuration"]
54    #[inline(always)]
55    pub const fn gpchk(&self) -> &GPCHK {
56        &self.gpchk
57    }
58    #[doc = "0x50 - Extended Capture Mode Read"]
59    #[inline(always)]
60    pub const fn ecrd(&self) -> &ECRD {
61        &self.ecrd
62    }
63    #[doc = "0x80 - Module Identification"]
64    #[inline(always)]
65    pub const fn midr(&self) -> &MIDR {
66        &self.midr
67    }
68}
69#[doc = "GCTRL (rw) register accessor: Global Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`gctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gctrl::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@gctrl`]
70module"]
71pub type GCTRL = crate::Reg<gctrl::GCTRL_SPEC>;
72#[doc = "Global Control Register"]
73pub mod gctrl;
74#[doc = "GSTAT (r) register accessor: Global Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`gstat::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gstat`]
75module"]
76pub type GSTAT = crate::Reg<gstat::GSTAT_SPEC>;
77#[doc = "Global Status Register"]
78pub mod gstat;
79#[doc = "GIDLS (w) register accessor: Global Idle Set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gidls::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gidls`]
80module"]
81pub type GIDLS = crate::Reg<gidls::GIDLS_SPEC>;
82#[doc = "Global Idle Set"]
83pub mod gidls;
84#[doc = "GIDLC (w) register accessor: Global Idle Clear\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gidlc::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gidlc`]
85module"]
86pub type GIDLC = crate::Reg<gidlc::GIDLC_SPEC>;
87#[doc = "Global Idle Clear"]
88pub mod gidlc;
89#[doc = "GCSS (w) register accessor: Global Channel Set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gcss::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gcss`]
90module"]
91pub type GCSS = crate::Reg<gcss::GCSS_SPEC>;
92#[doc = "Global Channel Set"]
93pub mod gcss;
94#[doc = "GCSC (w) register accessor: Global Channel Clear\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gcsc::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gcsc`]
95module"]
96pub type GCSC = crate::Reg<gcsc::GCSC_SPEC>;
97#[doc = "Global Channel Clear"]
98pub mod gcsc;
99#[doc = "GCST (r) register accessor: Global Channel status\n\nYou can [`read`](crate::Reg::read) this register and get [`gcst::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gcst`]
100module"]
101pub type GCST = crate::Reg<gcst::GCST_SPEC>;
102#[doc = "Global Channel status"]
103pub mod gcst;
104#[doc = "GPCHK (rw) register accessor: Parity Checker Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`gpchk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gpchk::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@gpchk`]
105module"]
106pub type GPCHK = crate::Reg<gpchk::GPCHK_SPEC>;
107#[doc = "Parity Checker Configuration"]
108pub mod gpchk;
109#[doc = "ECRD (r) register accessor: Extended Capture Mode Read\n\nYou can [`read`](crate::Reg::read) this register and get [`ecrd::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\n<div class=\"warning\">One or more dependent resources other than the current register are immediately affected by a read operation.</div>\n\nFor information about available fields see [`mod@ecrd`]
110module"]
111pub type ECRD = crate::Reg<ecrd::ECRD_SPEC>;
112#[doc = "Extended Capture Mode Read"]
113pub mod ecrd;
114#[doc = "MIDR (r) register accessor: Module Identification\n\nYou can [`read`](crate::Reg::read) this register and get [`midr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@midr`]
115module"]
116pub type MIDR = crate::Reg<midr::MIDR_SPEC>;
117#[doc = "Module Identification"]
118pub mod midr;