pub type R = crate::R<L2CRrs>;
pub type W = crate::W<L2CRrs>;
pub type LEN_R = crate::BitReader;
pub type LEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type COLKEN_R = crate::BitReader;
pub type COLKEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CLUTEN_R = crate::BitReader;
pub type CLUTEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn len(&self) -> LEN_R {
LEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn colken(&self) -> COLKEN_R {
COLKEN_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cluten(&self) -> CLUTEN_R {
CLUTEN_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("L2CR")
.field("len", &self.len())
.field("colken", &self.colken())
.field("cluten", &self.cluten())
.finish()
}
}
impl W {
#[inline(always)]
pub fn len(&mut self) -> LEN_W<L2CRrs> {
LEN_W::new(self, 0)
}
#[inline(always)]
pub fn colken(&mut self) -> COLKEN_W<L2CRrs> {
COLKEN_W::new(self, 1)
}
#[inline(always)]
pub fn cluten(&mut self) -> CLUTEN_W<L2CRrs> {
CLUTEN_W::new(self, 4)
}
}
pub struct L2CRrs;
impl crate::RegisterSpec for L2CRrs {
type Ux = u32;
}
impl crate::Readable for L2CRrs {}
impl crate::Writable for L2CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for L2CRrs {}