xmc4100/
scu_interrupt.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    srstat: SRSTAT,
5    srraw: SRRAW,
6    srmsk: SRMSK,
7    srclr: SRCLR,
8    srset: SRSET,
9    nmireqen: NMIREQEN,
10}
11impl RegisterBlock {
12    #[doc = "0x00 - SCU Service Request Status"]
13    #[inline(always)]
14    pub const fn srstat(&self) -> &SRSTAT {
15        &self.srstat
16    }
17    #[doc = "0x04 - SCU Raw Service Request Status"]
18    #[inline(always)]
19    pub const fn srraw(&self) -> &SRRAW {
20        &self.srraw
21    }
22    #[doc = "0x08 - SCU Service Request Mask"]
23    #[inline(always)]
24    pub const fn srmsk(&self) -> &SRMSK {
25        &self.srmsk
26    }
27    #[doc = "0x0c - SCU Service Request Clear"]
28    #[inline(always)]
29    pub const fn srclr(&self) -> &SRCLR {
30        &self.srclr
31    }
32    #[doc = "0x10 - SCU Service Request Set"]
33    #[inline(always)]
34    pub const fn srset(&self) -> &SRSET {
35        &self.srset
36    }
37    #[doc = "0x14 - SCU Service Request Mask"]
38    #[inline(always)]
39    pub const fn nmireqen(&self) -> &NMIREQEN {
40        &self.nmireqen
41    }
42}
43#[doc = "SRSTAT (r) register accessor: SCU Service Request Status\n\nYou can [`read`](crate::Reg::read) this register and get [`srstat::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@srstat`]
44module"]
45pub type SRSTAT = crate::Reg<srstat::SRSTAT_SPEC>;
46#[doc = "SCU Service Request Status"]
47pub mod srstat;
48#[doc = "SRRAW (r) register accessor: SCU Raw Service Request Status\n\nYou can [`read`](crate::Reg::read) this register and get [`srraw::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@srraw`]
49module"]
50pub type SRRAW = crate::Reg<srraw::SRRAW_SPEC>;
51#[doc = "SCU Raw Service Request Status"]
52pub mod srraw;
53#[doc = "SRMSK (rw) register accessor: SCU Service Request Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`srmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`srmsk::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@srmsk`]
54module"]
55pub type SRMSK = crate::Reg<srmsk::SRMSK_SPEC>;
56#[doc = "SCU Service Request Mask"]
57pub mod srmsk;
58#[doc = "SRCLR (w) register accessor: SCU Service Request Clear\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`srclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@srclr`]
59module"]
60pub type SRCLR = crate::Reg<srclr::SRCLR_SPEC>;
61#[doc = "SCU Service Request Clear"]
62pub mod srclr;
63#[doc = "SRSET (w) register accessor: SCU Service Request Set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`srset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@srset`]
64module"]
65pub type SRSET = crate::Reg<srset::SRSET_SPEC>;
66#[doc = "SCU Service Request Set"]
67pub mod srset;
68#[doc = "NMIREQEN (rw) register accessor: SCU Service Request Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`nmireqen::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nmireqen::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@nmireqen`]
69module"]
70pub type NMIREQEN = crate::Reg<nmireqen::NMIREQEN_SPEC>;
71#[doc = "SCU Service Request Mask"]
72pub mod nmireqen;