pub type R = crate::R<ITENRrs>;
pub type W = crate::W<ITENRrs>;
pub type TS1_ITEEN_R = crate::BitReader;
pub type TS1_ITEEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TS1_ITLEN_R = crate::BitReader;
pub type TS1_ITLEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TS1_ITHEN_R = crate::BitReader;
pub type TS1_ITHEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TS1_AITEEN_R = crate::BitReader;
pub type TS1_AITEEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TS1_AITLEN_R = crate::BitReader;
pub type TS1_AITLEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TS1_AITHEN_R = crate::BitReader;
pub type TS1_AITHEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ts1_iteen(&self) -> TS1_ITEEN_R {
TS1_ITEEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ts1_itlen(&self) -> TS1_ITLEN_R {
TS1_ITLEN_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ts1_ithen(&self) -> TS1_ITHEN_R {
TS1_ITHEN_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ts1_aiteen(&self) -> TS1_AITEEN_R {
TS1_AITEEN_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ts1_aitlen(&self) -> TS1_AITLEN_R {
TS1_AITLEN_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ts1_aithen(&self) -> TS1_AITHEN_R {
TS1_AITHEN_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("ITENR")
.field("ts1_iteen", &self.ts1_iteen())
.field("ts1_itlen", &self.ts1_itlen())
.field("ts1_ithen", &self.ts1_ithen())
.field("ts1_aiteen", &self.ts1_aiteen())
.field("ts1_aitlen", &self.ts1_aitlen())
.field("ts1_aithen", &self.ts1_aithen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ts1_iteen(&mut self) -> TS1_ITEEN_W<ITENRrs> {
TS1_ITEEN_W::new(self, 0)
}
#[inline(always)]
pub fn ts1_itlen(&mut self) -> TS1_ITLEN_W<ITENRrs> {
TS1_ITLEN_W::new(self, 1)
}
#[inline(always)]
pub fn ts1_ithen(&mut self) -> TS1_ITHEN_W<ITENRrs> {
TS1_ITHEN_W::new(self, 2)
}
#[inline(always)]
pub fn ts1_aiteen(&mut self) -> TS1_AITEEN_W<ITENRrs> {
TS1_AITEEN_W::new(self, 4)
}
#[inline(always)]
pub fn ts1_aitlen(&mut self) -> TS1_AITLEN_W<ITENRrs> {
TS1_AITLEN_W::new(self, 5)
}
#[inline(always)]
pub fn ts1_aithen(&mut self) -> TS1_AITHEN_W<ITENRrs> {
TS1_AITHEN_W::new(self, 6)
}
}
pub struct ITENRrs;
impl crate::RegisterSpec for ITENRrs {
type Ux = u32;
}
impl crate::Readable for ITENRrs {}
impl crate::Writable for ITENRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ITENRrs {}