pub type R = crate::R<MACLCSRrs>;
pub type W = crate::W<MACLCSRrs>;
pub type TLPIEN_R = crate::BitReader;
pub type TLPIEX_R = crate::BitReader;
pub type RLPIEN_R = crate::BitReader;
pub type RLPIEX_R = crate::BitReader;
pub type TLPIST_R = crate::BitReader;
pub type RLPIST_R = crate::BitReader;
pub type LPIEN_R = crate::BitReader;
pub type LPIEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PLS_R = crate::BitReader;
pub type PLS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PLSEN_R = crate::BitReader;
pub type PLSEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPITXA_R = crate::BitReader;
pub type LPITXA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPITE_R = crate::BitReader;
pub type LPITE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tlpien(&self) -> TLPIEN_R {
TLPIEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tlpiex(&self) -> TLPIEX_R {
TLPIEX_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rlpien(&self) -> RLPIEN_R {
RLPIEN_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rlpiex(&self) -> RLPIEX_R {
RLPIEX_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tlpist(&self) -> TLPIST_R {
TLPIST_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn rlpist(&self) -> RLPIST_R {
RLPIST_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn lpien(&self) -> LPIEN_R {
LPIEN_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn pls(&self) -> PLS_R {
PLS_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn plsen(&self) -> PLSEN_R {
PLSEN_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn lpitxa(&self) -> LPITXA_R {
LPITXA_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn lpite(&self) -> LPITE_R {
LPITE_R::new(((self.bits >> 20) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACLCSR")
.field("tlpien", &self.tlpien())
.field("tlpiex", &self.tlpiex())
.field("rlpien", &self.rlpien())
.field("rlpiex", &self.rlpiex())
.field("tlpist", &self.tlpist())
.field("rlpist", &self.rlpist())
.field("lpien", &self.lpien())
.field("pls", &self.pls())
.field("plsen", &self.plsen())
.field("lpitxa", &self.lpitxa())
.field("lpite", &self.lpite())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lpien(&mut self) -> LPIEN_W<MACLCSRrs> {
LPIEN_W::new(self, 16)
}
#[inline(always)]
pub fn pls(&mut self) -> PLS_W<MACLCSRrs> {
PLS_W::new(self, 17)
}
#[inline(always)]
pub fn plsen(&mut self) -> PLSEN_W<MACLCSRrs> {
PLSEN_W::new(self, 18)
}
#[inline(always)]
pub fn lpitxa(&mut self) -> LPITXA_W<MACLCSRrs> {
LPITXA_W::new(self, 19)
}
#[inline(always)]
pub fn lpite(&mut self) -> LPITE_W<MACLCSRrs> {
LPITE_W::new(self, 20)
}
}
pub struct MACLCSRrs;
impl crate::RegisterSpec for MACLCSRrs {
type Ux = u32;
}
impl crate::Readable for MACLCSRrs {}
impl crate::Writable for MACLCSRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACLCSRrs {}