xmc4500/
dlr.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ovrstat: OVRSTAT,
5    ovrclr: OVRCLR,
6    srsel0: SRSEL0,
7    srsel1: SRSEL1,
8    lnen: LNEN,
9}
10impl RegisterBlock {
11    #[doc = "0x00 - Overrun Status"]
12    #[inline(always)]
13    pub const fn ovrstat(&self) -> &OVRSTAT {
14        &self.ovrstat
15    }
16    #[doc = "0x04 - Overrun Clear"]
17    #[inline(always)]
18    pub const fn ovrclr(&self) -> &OVRCLR {
19        &self.ovrclr
20    }
21    #[doc = "0x08 - Service Request Selection 0"]
22    #[inline(always)]
23    pub const fn srsel0(&self) -> &SRSEL0 {
24        &self.srsel0
25    }
26    #[doc = "0x0c - Service Request Selection 1"]
27    #[inline(always)]
28    pub const fn srsel1(&self) -> &SRSEL1 {
29        &self.srsel1
30    }
31    #[doc = "0x10 - Line Enable"]
32    #[inline(always)]
33    pub const fn lnen(&self) -> &LNEN {
34        &self.lnen
35    }
36}
37#[doc = "OVRSTAT (r) register accessor: Overrun Status\n\nYou can [`read`](crate::Reg::read) this register and get [`ovrstat::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ovrstat`]
38module"]
39pub type OVRSTAT = crate::Reg<ovrstat::OVRSTAT_SPEC>;
40#[doc = "Overrun Status"]
41pub mod ovrstat;
42#[doc = "OVRCLR (w) register accessor: Overrun Clear\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ovrclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ovrclr`]
43module"]
44pub type OVRCLR = crate::Reg<ovrclr::OVRCLR_SPEC>;
45#[doc = "Overrun Clear"]
46pub mod ovrclr;
47#[doc = "SRSEL0 (rw) register accessor: Service Request Selection 0\n\nYou can [`read`](crate::Reg::read) this register and get [`srsel0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`srsel0::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@srsel0`]
48module"]
49pub type SRSEL0 = crate::Reg<srsel0::SRSEL0_SPEC>;
50#[doc = "Service Request Selection 0"]
51pub mod srsel0;
52#[doc = "SRSEL1 (rw) register accessor: Service Request Selection 1\n\nYou can [`read`](crate::Reg::read) this register and get [`srsel1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`srsel1::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@srsel1`]
53module"]
54pub type SRSEL1 = crate::Reg<srsel1::SRSEL1_SPEC>;
55#[doc = "Service Request Selection 1"]
56pub mod srsel1;
57#[doc = "LNEN (rw) register accessor: Line Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`lnen::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lnen::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@lnen`]
58module"]
59pub type LNEN = crate::Reg<lnen::LNEN_SPEC>;
60#[doc = "Line Enable"]
61pub mod lnen;