pub type R = crate::R<ILSrs>;
pub type W = crate::W<ILSrs>;
pub type RXFIFO0_R = crate::BitReader;
pub type RXFIFO0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXFIFO1_R = crate::BitReader;
pub type RXFIFO1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SMSG_R = crate::BitReader;
pub type SMSG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TFERR_R = crate::BitReader;
pub type TFERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MISC_R = crate::BitReader;
pub type MISC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BERR_R = crate::BitReader;
pub type BERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PERR_R = crate::BitReader;
pub type PERR_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rxfifo0(&self) -> RXFIFO0_R {
RXFIFO0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rxfifo1(&self) -> RXFIFO1_R {
RXFIFO1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn smsg(&self) -> SMSG_R {
SMSG_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tferr(&self) -> TFERR_R {
TFERR_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn misc(&self) -> MISC_R {
MISC_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn berr(&self) -> BERR_R {
BERR_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn perr(&self) -> PERR_R {
PERR_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ILS")
.field("rxfifo0", &self.rxfifo0())
.field("rxfifo1", &self.rxfifo1())
.field("smsg", &self.smsg())
.field("tferr", &self.tferr())
.field("misc", &self.misc())
.field("berr", &self.berr())
.field("perr", &self.perr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rxfifo0(&mut self) -> RXFIFO0_W<ILSrs> {
RXFIFO0_W::new(self, 0)
}
#[inline(always)]
pub fn rxfifo1(&mut self) -> RXFIFO1_W<ILSrs> {
RXFIFO1_W::new(self, 1)
}
#[inline(always)]
pub fn smsg(&mut self) -> SMSG_W<ILSrs> {
SMSG_W::new(self, 2)
}
#[inline(always)]
pub fn tferr(&mut self) -> TFERR_W<ILSrs> {
TFERR_W::new(self, 3)
}
#[inline(always)]
pub fn misc(&mut self) -> MISC_W<ILSrs> {
MISC_W::new(self, 4)
}
#[inline(always)]
pub fn berr(&mut self) -> BERR_W<ILSrs> {
BERR_W::new(self, 5)
}
#[inline(always)]
pub fn perr(&mut self) -> PERR_W<ILSrs> {
PERR_W::new(self, 6)
}
}
pub struct ILSrs;
impl crate::RegisterSpec for ILSrs {
type Ux = u32;
}
impl crate::Readable for ILSrs {}
impl crate::Writable for ILSrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ILSrs {}