pub type R = crate::R<AF2rs>;
pub type W = crate::W<AF2rs>;
pub type OCRSEL_R = crate::FieldReader;
pub type OCRSEL_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
#[inline(always)]
pub fn ocrsel(&self) -> OCRSEL_R {
OCRSEL_R::new(((self.bits >> 16) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AF2").field("ocrsel", &self.ocrsel()).finish()
}
}
impl W {
#[inline(always)]
pub fn ocrsel(&mut self) -> OCRSEL_W<AF2rs> {
OCRSEL_W::new(self, 16)
}
}
pub struct AF2rs;
impl crate::RegisterSpec for AF2rs {
type Ux = u32;
}
impl crate::Readable for AF2rs {}
impl crate::Writable for AF2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for AF2rs {}