pub type R = crate::R<EXTICR4rs>;
pub type W = crate::W<EXTICR4rs>;
pub type PC_EXTI12_R = crate::FieldReader;
pub type PC_EXTI13_R = crate::FieldReader;
pub type PC_EXTI14_R = crate::FieldReader;
pub type PC_EXTI15_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn pc_exti12(&self) -> PC_EXTI12_R {
PC_EXTI12_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti13(&self) -> PC_EXTI13_R {
PC_EXTI13_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti14(&self) -> PC_EXTI14_R {
PC_EXTI14_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn pc_exti15(&self) -> PC_EXTI15_R {
PC_EXTI15_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("EXTICR4")
.field("pc_exti12", &self.pc_exti12())
.field("pc_exti13", &self.pc_exti13())
.field("pc_exti14", &self.pc_exti14())
.field("pc_exti15", &self.pc_exti15())
.finish()
}
}
impl W {}
pub struct EXTICR4rs;
impl crate::RegisterSpec for EXTICR4rs {
type Ux = u32;
}
impl crate::Readable for EXTICR4rs {}
impl crate::Writable for EXTICR4rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for EXTICR4rs {}