pub type R = crate::R<EXTICR4rs>;
pub type W = crate::W<EXTICR4rs>;
pub type EXTI12_R = crate::FieldReader;
pub type EXTI12_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EXTI13_R = crate::FieldReader;
pub type EXTI13_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EXTI14_R = crate::FieldReader;
pub type EXTI14_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EXTI15_R = crate::FieldReader;
pub type EXTI15_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn exti12(&self) -> EXTI12_R {
EXTI12_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn exti13(&self) -> EXTI13_R {
EXTI13_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn exti14(&self) -> EXTI14_R {
EXTI14_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn exti15(&self) -> EXTI15_R {
EXTI15_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("EXTICR4")
.field("exti12", &self.exti12())
.field("exti13", &self.exti13())
.field("exti14", &self.exti14())
.field("exti15", &self.exti15())
.finish()
}
}
impl W {
#[inline(always)]
pub fn exti12(&mut self) -> EXTI12_W<EXTICR4rs> {
EXTI12_W::new(self, 0)
}
#[inline(always)]
pub fn exti13(&mut self) -> EXTI13_W<EXTICR4rs> {
EXTI13_W::new(self, 8)
}
#[inline(always)]
pub fn exti14(&mut self) -> EXTI14_W<EXTICR4rs> {
EXTI14_W::new(self, 16)
}
#[inline(always)]
pub fn exti15(&mut self) -> EXTI15_W<EXTICR4rs> {
EXTI15_W::new(self, 24)
}
}
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 {}