pub type R = crate::R<EXTICR3rs>;
pub type W = crate::W<EXTICR3rs>;
pub type PC_EXTI8_R = crate::FieldReader;
pub type PC_EXTI9_R = crate::FieldReader;
pub type PC_EXTI10_R = crate::FieldReader;
pub type PC_EXTI11_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn pc_exti8(&self) -> PC_EXTI8_R {
PC_EXTI8_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti9(&self) -> PC_EXTI9_R {
PC_EXTI9_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti10(&self) -> PC_EXTI10_R {
PC_EXTI10_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti11(&self) -> PC_EXTI11_R {
PC_EXTI11_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("EXTICR3")
.field("pc_exti8", &self.pc_exti8())
.field("pc_exti9", &self.pc_exti9())
.field("pc_exti10", &self.pc_exti10())
.field("pc_exti11", &self.pc_exti11())
.finish()
}
}
impl W {}
pub struct EXTICR3rs;
impl crate::RegisterSpec for EXTICR3rs {
type Ux = u32;
}
impl crate::Readable for EXTICR3rs {}
impl crate::Writable for EXTICR3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for EXTICR3rs {}