pub type R = crate::R<MACL3L4C0Rrs>;
pub type W = crate::W<MACL3L4C0Rrs>;
pub type L3PEN0_R = crate::BitReader;
pub type L3PEN0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3SAM0_R = crate::BitReader;
pub type L3SAM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3SAIM0_R = crate::BitReader;
pub type L3SAIM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3DAM0_R = crate::BitReader;
pub type L3DAM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3DAIM0_R = crate::BitReader;
pub type L3DAIM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3HSBM0_R = crate::FieldReader;
pub type L3HSBM0_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type L3HDBM0_R = crate::FieldReader;
pub type L3HDBM0_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type L4PEN0_R = crate::BitReader;
pub type L4PEN0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4SPM0_R = crate::BitReader;
pub type L4SPM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4SPIM0_R = crate::BitReader;
pub type L4SPIM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4DPM0_R = crate::BitReader;
pub type L4DPM0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4DPIM0_R = crate::BitReader;
pub type L4DPIM0_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn l3pen0(&self) -> L3PEN0_R {
L3PEN0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn l3sam0(&self) -> L3SAM0_R {
L3SAM0_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn l3saim0(&self) -> L3SAIM0_R {
L3SAIM0_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn l3dam0(&self) -> L3DAM0_R {
L3DAM0_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn l3daim0(&self) -> L3DAIM0_R {
L3DAIM0_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn l3hsbm0(&self) -> L3HSBM0_R {
L3HSBM0_R::new(((self.bits >> 6) & 0x1f) as u8)
}
#[inline(always)]
pub fn l3hdbm0(&self) -> L3HDBM0_R {
L3HDBM0_R::new(((self.bits >> 11) & 0x1f) as u8)
}
#[inline(always)]
pub fn l4pen0(&self) -> L4PEN0_R {
L4PEN0_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn l4spm0(&self) -> L4SPM0_R {
L4SPM0_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn l4spim0(&self) -> L4SPIM0_R {
L4SPIM0_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn l4dpm0(&self) -> L4DPM0_R {
L4DPM0_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn l4dpim0(&self) -> L4DPIM0_R {
L4DPIM0_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("MACL3L4C0R")
.field("l3pen0", &self.l3pen0())
.field("l3sam0", &self.l3sam0())
.field("l3saim0", &self.l3saim0())
.field("l3dam0", &self.l3dam0())
.field("l3daim0", &self.l3daim0())
.field("l3hsbm0", &self.l3hsbm0())
.field("l3hdbm0", &self.l3hdbm0())
.field("l4pen0", &self.l4pen0())
.field("l4spm0", &self.l4spm0())
.field("l4spim0", &self.l4spim0())
.field("l4dpm0", &self.l4dpm0())
.field("l4dpim0", &self.l4dpim0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn l3pen0(&mut self) -> L3PEN0_W<MACL3L4C0Rrs> {
L3PEN0_W::new(self, 0)
}
#[inline(always)]
pub fn l3sam0(&mut self) -> L3SAM0_W<MACL3L4C0Rrs> {
L3SAM0_W::new(self, 2)
}
#[inline(always)]
pub fn l3saim0(&mut self) -> L3SAIM0_W<MACL3L4C0Rrs> {
L3SAIM0_W::new(self, 3)
}
#[inline(always)]
pub fn l3dam0(&mut self) -> L3DAM0_W<MACL3L4C0Rrs> {
L3DAM0_W::new(self, 4)
}
#[inline(always)]
pub fn l3daim0(&mut self) -> L3DAIM0_W<MACL3L4C0Rrs> {
L3DAIM0_W::new(self, 5)
}
#[inline(always)]
pub fn l3hsbm0(&mut self) -> L3HSBM0_W<MACL3L4C0Rrs> {
L3HSBM0_W::new(self, 6)
}
#[inline(always)]
pub fn l3hdbm0(&mut self) -> L3HDBM0_W<MACL3L4C0Rrs> {
L3HDBM0_W::new(self, 11)
}
#[inline(always)]
pub fn l4pen0(&mut self) -> L4PEN0_W<MACL3L4C0Rrs> {
L4PEN0_W::new(self, 16)
}
#[inline(always)]
pub fn l4spm0(&mut self) -> L4SPM0_W<MACL3L4C0Rrs> {
L4SPM0_W::new(self, 18)
}
#[inline(always)]
pub fn l4spim0(&mut self) -> L4SPIM0_W<MACL3L4C0Rrs> {
L4SPIM0_W::new(self, 19)
}
#[inline(always)]
pub fn l4dpm0(&mut self) -> L4DPM0_W<MACL3L4C0Rrs> {
L4DPM0_W::new(self, 20)
}
#[inline(always)]
pub fn l4dpim0(&mut self) -> L4DPIM0_W<MACL3L4C0Rrs> {
L4DPIM0_W::new(self, 21)
}
}
pub struct MACL3L4C0Rrs;
impl crate::RegisterSpec for MACL3L4C0Rrs {
type Ux = u32;
}
impl crate::Readable for MACL3L4C0Rrs {}
impl crate::Writable for MACL3L4C0Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACL3L4C0Rrs {}