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