pub type R = crate::R<EXTICR2rs>;
pub type W = crate::W<EXTICR2rs>;
pub type PC_EXTI4_R = crate::FieldReader;
pub type PC_EXTI5_R = crate::FieldReader;
pub type PC_EXTI6_R = crate::FieldReader;
pub type PC_EXTI7_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn pc_exti4(&self) -> PC_EXTI4_R {
PC_EXTI4_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti5(&self) -> PC_EXTI5_R {
PC_EXTI5_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti6(&self) -> PC_EXTI6_R {
PC_EXTI6_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti7(&self) -> PC_EXTI7_R {
PC_EXTI7_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("EXTICR2")
.field("pc_exti4", &self.pc_exti4())
.field("pc_exti5", &self.pc_exti5())
.field("pc_exti6", &self.pc_exti6())
.field("pc_exti7", &self.pc_exti7())
.finish()
}
}
impl W {}
pub struct EXTICR2rs;
impl crate::RegisterSpec for EXTICR2rs {
type Ux = u32;
}
impl crate::Readable for EXTICR2rs {}
impl crate::Writable for EXTICR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for EXTICR2rs {}