xmc4400/
port14.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    out: OUT,
5    omr: OMR,
6    _reserved2: [u8; 0x08],
7    iocr0: IOCR0,
8    iocr4: IOCR4,
9    iocr8: IOCR8,
10    iocr12: IOCR12,
11    _reserved6: [u8; 0x04],
12    in_: IN,
13    _reserved7: [u8; 0x38],
14    pdisc: PDISC,
15    _reserved8: [u8; 0x0c],
16    pps: PPS,
17    hwsel: HWSEL,
18}
19impl RegisterBlock {
20    #[doc = "0x00 - Port 14 Output Register"]
21    #[inline(always)]
22    pub const fn out(&self) -> &OUT {
23        &self.out
24    }
25    #[doc = "0x04 - Port 14 Output Modification Register"]
26    #[inline(always)]
27    pub const fn omr(&self) -> &OMR {
28        &self.omr
29    }
30    #[doc = "0x10 - Port 14 Input/Output Control Register 0"]
31    #[inline(always)]
32    pub const fn iocr0(&self) -> &IOCR0 {
33        &self.iocr0
34    }
35    #[doc = "0x14 - Port 14 Input/Output Control Register 4"]
36    #[inline(always)]
37    pub const fn iocr4(&self) -> &IOCR4 {
38        &self.iocr4
39    }
40    #[doc = "0x18 - Port 14 Input/Output Control Register 8"]
41    #[inline(always)]
42    pub const fn iocr8(&self) -> &IOCR8 {
43        &self.iocr8
44    }
45    #[doc = "0x1c - Port 14 Input/Output Control Register 12"]
46    #[inline(always)]
47    pub const fn iocr12(&self) -> &IOCR12 {
48        &self.iocr12
49    }
50    #[doc = "0x24 - Port 14 Input Register"]
51    #[inline(always)]
52    pub const fn in_(&self) -> &IN {
53        &self.in_
54    }
55    #[doc = "0x60 - Port 14 Pin Function Decision Control Register"]
56    #[inline(always)]
57    pub const fn pdisc(&self) -> &PDISC {
58        &self.pdisc
59    }
60    #[doc = "0x70 - Port 14 Pin Power Save Register"]
61    #[inline(always)]
62    pub const fn pps(&self) -> &PPS {
63        &self.pps
64    }
65    #[doc = "0x74 - Port 14 Pin Hardware Select Register"]
66    #[inline(always)]
67    pub const fn hwsel(&self) -> &HWSEL {
68        &self.hwsel
69    }
70}
71#[doc = "OUT (rw) register accessor: Port 14 Output Register\n\nYou can [`read`](crate::Reg::read) this register and get [`out::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`out::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@out`]
72module"]
73pub type OUT = crate::Reg<out::OUT_SPEC>;
74#[doc = "Port 14 Output Register"]
75pub mod out;
76#[doc = "OMR (w) register accessor: Port 14 Output Modification Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`omr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@omr`]
77module"]
78pub type OMR = crate::Reg<omr::OMR_SPEC>;
79#[doc = "Port 14 Output Modification Register"]
80pub mod omr;
81#[doc = "IOCR0 (rw) register accessor: Port 14 Input/Output Control Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`iocr0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`iocr0::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@iocr0`]
82module"]
83pub type IOCR0 = crate::Reg<iocr0::IOCR0_SPEC>;
84#[doc = "Port 14 Input/Output Control Register 0"]
85pub mod iocr0;
86#[doc = "IOCR4 (rw) register accessor: Port 14 Input/Output Control Register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`iocr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`iocr4::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@iocr4`]
87module"]
88pub type IOCR4 = crate::Reg<iocr4::IOCR4_SPEC>;
89#[doc = "Port 14 Input/Output Control Register 4"]
90pub mod iocr4;
91#[doc = "IOCR8 (rw) register accessor: Port 14 Input/Output Control Register 8\n\nYou can [`read`](crate::Reg::read) this register and get [`iocr8::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`iocr8::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@iocr8`]
92module"]
93pub type IOCR8 = crate::Reg<iocr8::IOCR8_SPEC>;
94#[doc = "Port 14 Input/Output Control Register 8"]
95pub mod iocr8;
96#[doc = "IOCR12 (rw) register accessor: Port 14 Input/Output Control Register 12\n\nYou can [`read`](crate::Reg::read) this register and get [`iocr12::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`iocr12::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@iocr12`]
97module"]
98pub type IOCR12 = crate::Reg<iocr12::IOCR12_SPEC>;
99#[doc = "Port 14 Input/Output Control Register 12"]
100pub mod iocr12;
101#[doc = "IN (r) register accessor: Port 14 Input Register\n\nYou can [`read`](crate::Reg::read) this register and get [`in_::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@in_`]
102module"]
103pub type IN = crate::Reg<in_::IN_SPEC>;
104#[doc = "Port 14 Input Register"]
105pub mod in_;
106#[doc = "PDISC (rw) register accessor: Port 14 Pin Function Decision Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pdisc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdisc::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@pdisc`]
107module"]
108pub type PDISC = crate::Reg<pdisc::PDISC_SPEC>;
109#[doc = "Port 14 Pin Function Decision Control Register"]
110pub mod pdisc;
111#[doc = "PPS (rw) register accessor: Port 14 Pin Power Save Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pps::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pps::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@pps`]
112module"]
113pub type PPS = crate::Reg<pps::PPS_SPEC>;
114#[doc = "Port 14 Pin Power Save Register"]
115pub mod pps;
116#[doc = "HWSEL (rw) register accessor: Port 14 Pin Hardware Select Register\n\nYou can [`read`](crate::Reg::read) this register and get [`hwsel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hwsel::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@hwsel`]
117module"]
118pub type HWSEL = crate::Reg<hwsel::HWSEL_SPEC>;
119#[doc = "Port 14 Pin Hardware Select Register"]
120pub mod hwsel;