esp32c6_lp/lp_apm/m/
status.rs1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<STATUS_SPEC>;
3#[doc = "Field `EXCEPTION_STATUS` reader - Exception status"]
4pub type EXCEPTION_STATUS_R = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:1 - Exception status"]
7 #[inline(always)]
8 pub fn exception_status(&self) -> EXCEPTION_STATUS_R {
9 EXCEPTION_STATUS_R::new((self.bits & 3) as u8)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("STATUS")
16 .field("exception_status", &self.exception_status())
17 .finish()
18 }
19}
20#[doc = "M0 status register\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct STATUS_SPEC;
22impl crate::RegisterSpec for STATUS_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`status::R`](R) reader structure"]
26impl crate::Readable for STATUS_SPEC {}
27#[doc = "`reset()` method sets STATUS to value 0"]
28impl crate::Resettable for STATUS_SPEC {
29 const RESET_VALUE: u32 = 0;
30}