mcxa_pac/
wuu0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    verid: Verid,
6    param: Param,
7    pe1: Pe1,
8    pe2: Pe2,
9    _reserved4: [u8; 0x08],
10    me: Me,
11    de: De,
12    pf: Pf,
13    _reserved7: [u8; 0x0c],
14    filt: Filt,
15    _reserved8: [u8; 0x04],
16    pdc1: Pdc1,
17    pdc2: Pdc2,
18    _reserved10: [u8; 0x08],
19    fdc: Fdc,
20    _reserved11: [u8; 0x04],
21    pmc: Pmc,
22    _reserved12: [u8; 0x04],
23    fmc: Fmc,
24}
25impl RegisterBlock {
26    #[doc = "0x00 - Version ID"]
27    #[inline(always)]
28    pub const fn verid(&self) -> &Verid {
29        &self.verid
30    }
31    #[doc = "0x04 - Parameter"]
32    #[inline(always)]
33    pub const fn param(&self) -> &Param {
34        &self.param
35    }
36    #[doc = "0x08 - Pin Enable 1"]
37    #[inline(always)]
38    pub const fn pe1(&self) -> &Pe1 {
39        &self.pe1
40    }
41    #[doc = "0x0c - Pin Enable 2"]
42    #[inline(always)]
43    pub const fn pe2(&self) -> &Pe2 {
44        &self.pe2
45    }
46    #[doc = "0x18 - Module Interrupt Enable"]
47    #[inline(always)]
48    pub const fn me(&self) -> &Me {
49        &self.me
50    }
51    #[doc = "0x1c - Module DMA/Trigger Enable"]
52    #[inline(always)]
53    pub const fn de(&self) -> &De {
54        &self.de
55    }
56    #[doc = "0x20 - Pin Flag"]
57    #[inline(always)]
58    pub const fn pf(&self) -> &Pf {
59        &self.pf
60    }
61    #[doc = "0x30 - Pin Filter"]
62    #[inline(always)]
63    pub const fn filt(&self) -> &Filt {
64        &self.filt
65    }
66    #[doc = "0x38 - Pin DMA/Trigger Configuration 1"]
67    #[inline(always)]
68    pub const fn pdc1(&self) -> &Pdc1 {
69        &self.pdc1
70    }
71    #[doc = "0x3c - Pin DMA/Trigger Configuration 2"]
72    #[inline(always)]
73    pub const fn pdc2(&self) -> &Pdc2 {
74        &self.pdc2
75    }
76    #[doc = "0x48 - Pin Filter DMA/Trigger Configuration"]
77    #[inline(always)]
78    pub const fn fdc(&self) -> &Fdc {
79        &self.fdc
80    }
81    #[doc = "0x50 - Pin Mode Configuration"]
82    #[inline(always)]
83    pub const fn pmc(&self) -> &Pmc {
84        &self.pmc
85    }
86    #[doc = "0x58 - Pin Filter Mode Configuration"]
87    #[inline(always)]
88    pub const fn fmc(&self) -> &Fmc {
89        &self.fmc
90    }
91}
92#[doc = "VERID (r) register accessor: Version ID\n\nYou can [`read`](crate::Reg::read) this register and get [`verid::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@verid`] module"]
93#[doc(alias = "VERID")]
94pub type Verid = crate::Reg<verid::VeridSpec>;
95#[doc = "Version ID"]
96pub mod verid;
97#[doc = "PARAM (r) register accessor: Parameter\n\nYou can [`read`](crate::Reg::read) this register and get [`param::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@param`] module"]
98#[doc(alias = "PARAM")]
99pub type Param = crate::Reg<param::ParamSpec>;
100#[doc = "Parameter"]
101pub mod param;
102#[doc = "PE1 (rw) register accessor: Pin Enable 1\n\nYou can [`read`](crate::Reg::read) this register and get [`pe1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pe1::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@pe1`] module"]
103#[doc(alias = "PE1")]
104pub type Pe1 = crate::Reg<pe1::Pe1Spec>;
105#[doc = "Pin Enable 1"]
106pub mod pe1;
107#[doc = "PE2 (rw) register accessor: Pin Enable 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pe2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pe2::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@pe2`] module"]
108#[doc(alias = "PE2")]
109pub type Pe2 = crate::Reg<pe2::Pe2Spec>;
110#[doc = "Pin Enable 2"]
111pub mod pe2;
112#[doc = "ME (rw) register accessor: Module Interrupt Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`me::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`me::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@me`] module"]
113#[doc(alias = "ME")]
114pub type Me = crate::Reg<me::MeSpec>;
115#[doc = "Module Interrupt Enable"]
116pub mod me;
117#[doc = "DE (rw) register accessor: Module DMA/Trigger Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`de::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`de::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@de`] module"]
118#[doc(alias = "DE")]
119pub type De = crate::Reg<de::DeSpec>;
120#[doc = "Module DMA/Trigger Enable"]
121pub mod de;
122#[doc = "PF (rw) register accessor: Pin Flag\n\nYou can [`read`](crate::Reg::read) this register and get [`pf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pf::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@pf`] module"]
123#[doc(alias = "PF")]
124pub type Pf = crate::Reg<pf::PfSpec>;
125#[doc = "Pin Flag"]
126pub mod pf;
127#[doc = "FILT (rw) register accessor: Pin Filter\n\nYou can [`read`](crate::Reg::read) this register and get [`filt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`filt::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@filt`] module"]
128#[doc(alias = "FILT")]
129pub type Filt = crate::Reg<filt::FiltSpec>;
130#[doc = "Pin Filter"]
131pub mod filt;
132#[doc = "PDC1 (rw) register accessor: Pin DMA/Trigger Configuration 1\n\nYou can [`read`](crate::Reg::read) this register and get [`pdc1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdc1::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@pdc1`] module"]
133#[doc(alias = "PDC1")]
134pub type Pdc1 = crate::Reg<pdc1::Pdc1Spec>;
135#[doc = "Pin DMA/Trigger Configuration 1"]
136pub mod pdc1;
137#[doc = "PDC2 (rw) register accessor: Pin DMA/Trigger Configuration 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pdc2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdc2::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@pdc2`] module"]
138#[doc(alias = "PDC2")]
139pub type Pdc2 = crate::Reg<pdc2::Pdc2Spec>;
140#[doc = "Pin DMA/Trigger Configuration 2"]
141pub mod pdc2;
142#[doc = "FDC (rw) register accessor: Pin Filter DMA/Trigger Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`fdc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fdc::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@fdc`] module"]
143#[doc(alias = "FDC")]
144pub type Fdc = crate::Reg<fdc::FdcSpec>;
145#[doc = "Pin Filter DMA/Trigger Configuration"]
146pub mod fdc;
147#[doc = "PMC (rw) register accessor: Pin Mode Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`pmc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmc::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@pmc`] module"]
148#[doc(alias = "PMC")]
149pub type Pmc = crate::Reg<pmc::PmcSpec>;
150#[doc = "Pin Mode Configuration"]
151pub mod pmc;
152#[doc = "FMC (rw) register accessor: Pin Filter Mode Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`fmc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fmc::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@fmc`] module"]
153#[doc(alias = "FMC")]
154pub type Fmc = crate::Reg<fmc::FmcSpec>;
155#[doc = "Pin Filter Mode Configuration"]
156pub mod fmc;