pub type R = crate::R<EXTICR3rs>;
pub type W = crate::W<EXTICR3rs>;
pub type EXTI8_R = crate::FieldReader;
pub type EXTI8_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EXTI9_R = crate::FieldReader;
pub type EXTI9_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EXTI10_R = crate::FieldReader;
pub type EXTI10_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EXTI11_R = crate::FieldReader;
pub type EXTI11_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn exti8(&self) -> EXTI8_R {
EXTI8_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn exti9(&self) -> EXTI9_R {
EXTI9_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn exti10(&self) -> EXTI10_R {
EXTI10_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn exti11(&self) -> EXTI11_R {
EXTI11_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("EXTICR3")
.field("exti8", &self.exti8())
.field("exti9", &self.exti9())
.field("exti10", &self.exti10())
.field("exti11", &self.exti11())
.finish()
}
}
impl W {
#[inline(always)]
pub fn exti8(&mut self) -> EXTI8_W<EXTICR3rs> {
EXTI8_W::new(self, 0)
}
#[inline(always)]
pub fn exti9(&mut self) -> EXTI9_W<EXTICR3rs> {
EXTI9_W::new(self, 8)
}
#[inline(always)]
pub fn exti10(&mut self) -> EXTI10_W<EXTICR3rs> {
EXTI10_W::new(self, 16)
}
#[inline(always)]
pub fn exti11(&mut self) -> EXTI11_W<EXTICR3rs> {
EXTI11_W::new(self, 24)
}
}
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 {}