pub type R = crate::R<EXTICR1rs>;
pub type W = crate::W<EXTICR1rs>;
pub type PC_EXTI0_R = crate::FieldReader;
pub type PC_EXTI1_R = crate::FieldReader;
pub type PC_EXTI2_R = crate::FieldReader;
pub type PC_EXTI3_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn pc_exti0(&self) -> PC_EXTI0_R {
PC_EXTI0_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti1(&self) -> PC_EXTI1_R {
PC_EXTI1_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti2(&self) -> PC_EXTI2_R {
PC_EXTI2_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti3(&self) -> PC_EXTI3_R {
PC_EXTI3_R::new(((self.bits >> 12) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("EXTICR1")
.field("pc_exti0", &self.pc_exti0())
.field("pc_exti1", &self.pc_exti1())
.field("pc_exti2", &self.pc_exti2())
.field("pc_exti3", &self.pc_exti3())
.finish()
}
}
impl W {}
pub struct EXTICR1rs;
impl crate::RegisterSpec for EXTICR1rs {
type Ux = u32;
}
impl crate::Readable for EXTICR1rs {}
impl crate::Writable for EXTICR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for EXTICR1rs {}