esp32c6/lp_apm0/
m.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Cluster M%s, containing M?_STATUS, M?_STATUS_CLR, M?_EXCEPTION_INFO0, M?_EXCEPTION_INFO1"]
4pub struct M {
5    status: STATUS,
6    status_clr: STATUS_CLR,
7    exception_info0: EXCEPTION_INFO0,
8    exception_info1: EXCEPTION_INFO1,
9}
10impl M {
11    #[doc = "0x00 - M0 status register"]
12    #[inline(always)]
13    pub const fn status(&self) -> &STATUS {
14        &self.status
15    }
16    #[doc = "0x04 - M0 status clear register"]
17    #[inline(always)]
18    pub const fn status_clr(&self) -> &STATUS_CLR {
19        &self.status_clr
20    }
21    #[doc = "0x08 - M0 exception_info0 register"]
22    #[inline(always)]
23    pub const fn exception_info0(&self) -> &EXCEPTION_INFO0 {
24        &self.exception_info0
25    }
26    #[doc = "0x0c - M0 exception_info1 register"]
27    #[inline(always)]
28    pub const fn exception_info1(&self) -> &EXCEPTION_INFO1 {
29        &self.exception_info1
30    }
31}
32#[doc = "STATUS (r) register accessor: M0 status register\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`] module"]
33pub type STATUS = crate::Reg<status::STATUS_SPEC>;
34#[doc = "M0 status register"]
35pub mod status;
36#[doc = "STATUS_CLR (w) register accessor: M0 status clear register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`status_clr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_clr`] module"]
37pub type STATUS_CLR = crate::Reg<status_clr::STATUS_CLR_SPEC>;
38#[doc = "M0 status clear register"]
39pub mod status_clr;
40#[doc = "EXCEPTION_INFO0 (r) register accessor: M0 exception_info0 register\n\nYou can [`read`](crate::Reg::read) this register and get [`exception_info0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exception_info0`] module"]
41pub type EXCEPTION_INFO0 = crate::Reg<exception_info0::EXCEPTION_INFO0_SPEC>;
42#[doc = "M0 exception_info0 register"]
43pub mod exception_info0;
44#[doc = "EXCEPTION_INFO1 (r) register accessor: M0 exception_info1 register\n\nYou can [`read`](crate::Reg::read) this register and get [`exception_info1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exception_info1`] module"]
45pub type EXCEPTION_INFO1 = crate::Reg<exception_info1::EXCEPTION_INFO1_SPEC>;
46#[doc = "M0 exception_info1 register"]
47pub mod exception_info1;