#[doc = "Register `PCPU_INT1` reader"]
pub type R = crate::R<PCPU_INT1_SPEC>;
#[doc = "Field `PROCPU_INT_H` reader - GPIO32~39 PRO CPU interrupt status"]
pub type PROCPU_INT_H_R = crate::FieldReader;
impl R {
#[doc = "Bits 0:7 - GPIO32~39 PRO CPU interrupt status"]
#[inline(always)]
pub fn procpu_int_h(&self) -> PROCPU_INT_H_R {
PROCPU_INT_H_R::new((self.bits & 0xff) as u8)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PCPU_INT1")
.field(
"procpu_int_h",
&format_args!("{}", self.procpu_int_h().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<PCPU_INT1_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
#[doc = "\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pcpu_int1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PCPU_INT1_SPEC;
impl crate::RegisterSpec for PCPU_INT1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`pcpu_int1::R`](R) reader structure"]
impl crate::Readable for PCPU_INT1_SPEC {}
#[doc = "`reset()` method sets PCPU_INT1 to value 0"]
impl crate::Resettable for PCPU_INT1_SPEC {
const RESET_VALUE: Self::Ux = 0;
}