pub type R = crate::R<MMCTIRrs>;
pub type W = crate::W<MMCTIRrs>;
pub type TGFSCS_R = crate::BitReader;
pub type TGFSCS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TGFMSCS_R = crate::BitReader;
pub type TGFMSCS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TGFS_R = crate::BitReader;
pub type TGFS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tgfscs(&self) -> TGFSCS_R {
TGFSCS_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tgfmscs(&self) -> TGFMSCS_R {
TGFMSCS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tgfs(&self) -> TGFS_R {
TGFS_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("MMCTIR")
.field("tgfscs", &self.tgfscs())
.field("tgfmscs", &self.tgfmscs())
.field("tgfs", &self.tgfs())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tgfscs(&mut self) -> TGFSCS_W<MMCTIRrs> {
TGFSCS_W::new(self, 14)
}
#[inline(always)]
pub fn tgfmscs(&mut self) -> TGFMSCS_W<MMCTIRrs> {
TGFMSCS_W::new(self, 15)
}
#[inline(always)]
pub fn tgfs(&mut self) -> TGFS_W<MMCTIRrs> {
TGFS_W::new(self, 21)
}
}
pub struct MMCTIRrs;
impl crate::RegisterSpec for MMCTIRrs {
type Ux = u32;
}
impl crate::Readable for MMCTIRrs {}
impl crate::Writable for MMCTIRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MMCTIRrs {}