pub type R = crate::R<AF1rs>;
pub type W = crate::W<AF1rs>;
pub type ETRSEL_R = crate::FieldReader;
pub type ETRSEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[inline(always)]
pub fn etrsel(&self) -> ETRSEL_R {
ETRSEL_R::new(((self.bits >> 14) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AF1")
.field("etrsel", &self.etrsel())
.finish()
}
}
impl W {
#[inline(always)]
pub fn etrsel(&mut self) -> ETRSEL_W<AF1rs> {
ETRSEL_W::new(self, 14)
}
}
pub struct AF1rs;
impl crate::RegisterSpec for AF1rs {
type Ux = u32;
}
impl crate::Readable for AF1rs {}
impl crate::Writable for AF1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for AF1rs {}