pub type R = crate::R<MACL3L4C1Rrs>;
pub type W = crate::W<MACL3L4C1Rrs>;
pub type L3PEN1_R = crate::BitReader;
pub type L3PEN1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3SAM1_R = crate::BitReader;
pub type L3SAM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3SAIM1_R = crate::BitReader;
pub type L3SAIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3DAM1_R = crate::BitReader;
pub type L3DAM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3DAIM1_R = crate::BitReader;
pub type L3DAIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L3HSBM1_R = crate::FieldReader;
pub type L3HSBM1_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type L3HDBM1_R = crate::FieldReader;
pub type L3HDBM1_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type L4PEN1_R = crate::BitReader;
pub type L4PEN1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4SPM1_R = crate::BitReader;
pub type L4SPM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4SPIM1_R = crate::BitReader;
pub type L4SPIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4DPM1_R = crate::BitReader;
pub type L4DPM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type L4DPIM1_R = crate::BitReader;
pub type L4DPIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn l3pen1(&self) -> L3PEN1_R {
L3PEN1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn l3sam1(&self) -> L3SAM1_R {
L3SAM1_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn l3saim1(&self) -> L3SAIM1_R {
L3SAIM1_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn l3dam1(&self) -> L3DAM1_R {
L3DAM1_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn l3daim1(&self) -> L3DAIM1_R {
L3DAIM1_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn l3hsbm1(&self) -> L3HSBM1_R {
L3HSBM1_R::new(((self.bits >> 6) & 0x1f) as u8)
}
#[inline(always)]
pub fn l3hdbm1(&self) -> L3HDBM1_R {
L3HDBM1_R::new(((self.bits >> 11) & 0x1f) as u8)
}
#[inline(always)]
pub fn l4pen1(&self) -> L4PEN1_R {
L4PEN1_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn l4spm1(&self) -> L4SPM1_R {
L4SPM1_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn l4spim1(&self) -> L4SPIM1_R {
L4SPIM1_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn l4dpm1(&self) -> L4DPM1_R {
L4DPM1_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn l4dpim1(&self) -> L4DPIM1_R {
L4DPIM1_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("MACL3L4C1R")
.field("l3pen1", &self.l3pen1())
.field("l3sam1", &self.l3sam1())
.field("l3saim1", &self.l3saim1())
.field("l3dam1", &self.l3dam1())
.field("l3daim1", &self.l3daim1())
.field("l3hsbm1", &self.l3hsbm1())
.field("l3hdbm1", &self.l3hdbm1())
.field("l4pen1", &self.l4pen1())
.field("l4spm1", &self.l4spm1())
.field("l4spim1", &self.l4spim1())
.field("l4dpm1", &self.l4dpm1())
.field("l4dpim1", &self.l4dpim1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn l3pen1(&mut self) -> L3PEN1_W<MACL3L4C1Rrs> {
L3PEN1_W::new(self, 0)
}
#[inline(always)]
pub fn l3sam1(&mut self) -> L3SAM1_W<MACL3L4C1Rrs> {
L3SAM1_W::new(self, 2)
}
#[inline(always)]
pub fn l3saim1(&mut self) -> L3SAIM1_W<MACL3L4C1Rrs> {
L3SAIM1_W::new(self, 3)
}
#[inline(always)]
pub fn l3dam1(&mut self) -> L3DAM1_W<MACL3L4C1Rrs> {
L3DAM1_W::new(self, 4)
}
#[inline(always)]
pub fn l3daim1(&mut self) -> L3DAIM1_W<MACL3L4C1Rrs> {
L3DAIM1_W::new(self, 5)
}
#[inline(always)]
pub fn l3hsbm1(&mut self) -> L3HSBM1_W<MACL3L4C1Rrs> {
L3HSBM1_W::new(self, 6)
}
#[inline(always)]
pub fn l3hdbm1(&mut self) -> L3HDBM1_W<MACL3L4C1Rrs> {
L3HDBM1_W::new(self, 11)
}
#[inline(always)]
pub fn l4pen1(&mut self) -> L4PEN1_W<MACL3L4C1Rrs> {
L4PEN1_W::new(self, 16)
}
#[inline(always)]
pub fn l4spm1(&mut self) -> L4SPM1_W<MACL3L4C1Rrs> {
L4SPM1_W::new(self, 18)
}
#[inline(always)]
pub fn l4spim1(&mut self) -> L4SPIM1_W<MACL3L4C1Rrs> {
L4SPIM1_W::new(self, 19)
}
#[inline(always)]
pub fn l4dpm1(&mut self) -> L4DPM1_W<MACL3L4C1Rrs> {
L4DPM1_W::new(self, 20)
}
#[inline(always)]
pub fn l4dpim1(&mut self) -> L4DPIM1_W<MACL3L4C1Rrs> {
L4DPIM1_W::new(self, 21)
}
}
pub struct MACL3L4C1Rrs;
impl crate::RegisterSpec for MACL3L4C1Rrs {
type Ux = u32;
}
impl crate::Readable for MACL3L4C1Rrs {}
impl crate::Writable for MACL3L4C1Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACL3L4C1Rrs {}