pub type R = crate::R<MMCTIMRrs>;
pub type W = crate::W<MMCTIMRrs>;
pub type TGFSCM_R = crate::BitReader;
pub type TGFSCM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TGFMSCM_R = crate::BitReader;
pub type TGFMSCM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TGFM_R = crate::BitReader;
pub type TGFM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tgfscm(&self) -> TGFSCM_R {
TGFSCM_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tgfmscm(&self) -> TGFMSCM_R {
TGFMSCM_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tgfm(&self) -> TGFM_R {
TGFM_R::new(((self.bits >> 21) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MMCTIMR")
.field("tgfscm", &self.tgfscm())
.field("tgfmscm", &self.tgfmscm())
.field("tgfm", &self.tgfm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tgfscm(&mut self) -> TGFSCM_W<MMCTIMRrs> {
TGFSCM_W::new(self, 14)
}
#[inline(always)]
pub fn tgfmscm(&mut self) -> TGFMSCM_W<MMCTIMRrs> {
TGFMSCM_W::new(self, 15)
}
#[inline(always)]
pub fn tgfm(&mut self) -> TGFM_W<MMCTIMRrs> {
TGFM_W::new(self, 21)
}
}
pub struct MMCTIMRrs;
impl crate::RegisterSpec for MMCTIMRrs {
type Ux = u32;
}
impl crate::Readable for MMCTIMRrs {}
impl crate::Writable for MMCTIMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MMCTIMRrs {}