xmc4700/
scu_trap.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    trapstat: TRAPSTAT,
5    trapraw: TRAPRAW,
6    trapdis: TRAPDIS,
7    trapclr: TRAPCLR,
8    trapset: TRAPSET,
9}
10impl RegisterBlock {
11    #[doc = "0x00 - Trap Status Register"]
12    #[inline(always)]
13    pub const fn trapstat(&self) -> &TRAPSTAT {
14        &self.trapstat
15    }
16    #[doc = "0x04 - Trap Raw Status Register"]
17    #[inline(always)]
18    pub const fn trapraw(&self) -> &TRAPRAW {
19        &self.trapraw
20    }
21    #[doc = "0x08 - Trap Disable Register"]
22    #[inline(always)]
23    pub const fn trapdis(&self) -> &TRAPDIS {
24        &self.trapdis
25    }
26    #[doc = "0x0c - Trap Clear Register"]
27    #[inline(always)]
28    pub const fn trapclr(&self) -> &TRAPCLR {
29        &self.trapclr
30    }
31    #[doc = "0x10 - Trap Set Register"]
32    #[inline(always)]
33    pub const fn trapset(&self) -> &TRAPSET {
34        &self.trapset
35    }
36}
37#[doc = "TRAPSTAT (r) register accessor: Trap Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`trapstat::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@trapstat`]
38module"]
39pub type TRAPSTAT = crate::Reg<trapstat::TRAPSTAT_SPEC>;
40#[doc = "Trap Status Register"]
41pub mod trapstat;
42#[doc = "TRAPRAW (r) register accessor: Trap Raw Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`trapraw::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@trapraw`]
43module"]
44pub type TRAPRAW = crate::Reg<trapraw::TRAPRAW_SPEC>;
45#[doc = "Trap Raw Status Register"]
46pub mod trapraw;
47#[doc = "TRAPDIS (rw) register accessor: Trap Disable Register\n\nYou can [`read`](crate::Reg::read) this register and get [`trapdis::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trapdis::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@trapdis`]
48module"]
49pub type TRAPDIS = crate::Reg<trapdis::TRAPDIS_SPEC>;
50#[doc = "Trap Disable Register"]
51pub mod trapdis;
52#[doc = "TRAPCLR (w) register accessor: Trap Clear Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trapclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@trapclr`]
53module"]
54pub type TRAPCLR = crate::Reg<trapclr::TRAPCLR_SPEC>;
55#[doc = "Trap Clear Register"]
56pub mod trapclr;
57#[doc = "TRAPSET (w) register accessor: Trap Set Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trapset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@trapset`]
58module"]
59pub type TRAPSET = crate::Reg<trapset::TRAPSET_SPEC>;
60#[doc = "Trap Set Register"]
61pub mod trapset;