esp32h2/trace/
intr_raw.rs

1#[doc = "Register `INTR_RAW` reader"]
2pub type R = crate::R<INTR_RAW_SPEC>;
3#[doc = "Field `FIFO_OVERFLOW_INTR_RAW` reader - fifo_overflow interrupt status"]
4pub type FIFO_OVERFLOW_INTR_RAW_R = crate::BitReader;
5#[doc = "Field `MEM_FULL_INTR_RAW` reader - mem_full interrupt status"]
6pub type MEM_FULL_INTR_RAW_R = crate::BitReader;
7impl R {
8    #[doc = "Bit 0 - fifo_overflow interrupt status"]
9    #[inline(always)]
10    pub fn fifo_overflow_intr_raw(&self) -> FIFO_OVERFLOW_INTR_RAW_R {
11        FIFO_OVERFLOW_INTR_RAW_R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bit 1 - mem_full interrupt status"]
14    #[inline(always)]
15    pub fn mem_full_intr_raw(&self) -> MEM_FULL_INTR_RAW_R {
16        MEM_FULL_INTR_RAW_R::new(((self.bits >> 1) & 1) != 0)
17    }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22        f.debug_struct("INTR_RAW")
23            .field("fifo_overflow_intr_raw", &self.fifo_overflow_intr_raw())
24            .field("mem_full_intr_raw", &self.mem_full_intr_raw())
25            .finish()
26    }
27}
28#[doc = "interrupt status register\n\nYou can [`read`](crate::Reg::read) this register and get [`intr_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct INTR_RAW_SPEC;
30impl crate::RegisterSpec for INTR_RAW_SPEC {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`intr_raw::R`](R) reader structure"]
34impl crate::Readable for INTR_RAW_SPEC {}
35#[doc = "`reset()` method sets INTR_RAW to value 0"]
36impl crate::Resettable for INTR_RAW_SPEC {}