esp32c6/gpio/
pcpu_int1.rs

1#[doc = "Register `PCPU_INT1` reader"]
2pub type R = crate::R<PCPU_INT1_SPEC>;
3#[doc = "Field `PROCPU_INT1` reader - GPIO PRO_CPU interrupt status register for GPIO32-34"]
4pub type PROCPU_INT1_R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:2 - GPIO PRO_CPU interrupt status register for GPIO32-34"]
7    #[inline(always)]
8    pub fn procpu_int1(&self) -> PROCPU_INT1_R {
9        PROCPU_INT1_R::new((self.bits & 7) 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("PCPU_INT1")
16            .field("procpu_int1", &self.procpu_int1())
17            .finish()
18    }
19}
20#[doc = "GPIO PRO_CPU interrupt status register for GPIO32-34\n\nYou can [`read`](crate::Reg::read) this register and get [`pcpu_int1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct PCPU_INT1_SPEC;
22impl crate::RegisterSpec for PCPU_INT1_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`pcpu_int1::R`](R) reader structure"]
26impl crate::Readable for PCPU_INT1_SPEC {}
27#[doc = "`reset()` method sets PCPU_INT1 to value 0"]
28impl crate::Resettable for PCPU_INT1_SPEC {
29    const RESET_VALUE: u32 = 0;
30}