pub type R = crate::R<MMCCRrs>;
pub type W = crate::W<MMCCRrs>;
pub type CR_R = crate::BitReader;
pub type CR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSR_R = crate::BitReader;
pub type CSR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ROR_R = crate::BitReader;
pub type ROR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MCF_R = crate::BitReader;
pub type MCF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MCP_R = crate::BitReader;
pub type MCP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MCFHP_R = crate::BitReader;
pub type MCFHP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cr(&self) -> CR_R {
CR_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn csr(&self) -> CSR_R {
CSR_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ror(&self) -> ROR_R {
ROR_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn mcf(&self) -> MCF_R {
MCF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn mcp(&self) -> MCP_R {
MCP_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn mcfhp(&self) -> MCFHP_R {
MCFHP_R::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MMCCR")
.field("cr", &self.cr())
.field("csr", &self.csr())
.field("ror", &self.ror())
.field("mcf", &self.mcf())
.field("mcp", &self.mcp())
.field("mcfhp", &self.mcfhp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cr(&mut self) -> CR_W<MMCCRrs> {
CR_W::new(self, 0)
}
#[inline(always)]
pub fn csr(&mut self) -> CSR_W<MMCCRrs> {
CSR_W::new(self, 1)
}
#[inline(always)]
pub fn ror(&mut self) -> ROR_W<MMCCRrs> {
ROR_W::new(self, 2)
}
#[inline(always)]
pub fn mcf(&mut self) -> MCF_W<MMCCRrs> {
MCF_W::new(self, 3)
}
#[inline(always)]
pub fn mcp(&mut self) -> MCP_W<MMCCRrs> {
MCP_W::new(self, 4)
}
#[inline(always)]
pub fn mcfhp(&mut self) -> MCFHP_W<MMCCRrs> {
MCFHP_W::new(self, 5)
}
}
pub struct MMCCRrs;
impl crate::RegisterSpec for MMCCRrs {
type Ux = u32;
}
impl crate::Readable for MMCCRrs {}
impl crate::Writable for MMCCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MMCCRrs {}