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>;
pub type TI1S_R = crate::BitReader;
pub type TI1S_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn mms(&self) -> MMS_R {
MMS_R::new(((self.bits >> 4) & 7) as u8)
}
#[inline(always)]
pub fn ti1s(&self) -> TI1S_R {
TI1S_R::new(((self.bits >> 7) & 1) != 0)
}
}
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())
.field("ti1s", &self.ti1s())
.finish()
}
}
impl W {
#[inline(always)]
pub fn mms(&mut self) -> MMS_W<_CR2rs> {
MMS_W::new(self, 4)
}
#[inline(always)]
pub fn ti1s(&mut self) -> TI1S_W<_CR2rs> {
TI1S_W::new(self, 7)
}
}
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 {}