pub type R = crate::R<TISELrs>;
pub type W = crate::W<TISELrs>;
pub type TI1SEL3_0_R = crate::FieldReader;
pub type TI1SEL3_0_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type TI2SEL3_0_R = crate::FieldReader;
pub type TI2SEL3_0_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type TI3SEL3_0_R = crate::FieldReader;
pub type TI3SEL3_0_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type TI4SEL3_0_R = crate::FieldReader;
pub type TI4SEL3_0_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[inline(always)]
pub fn ti1sel3_0(&self) -> TI1SEL3_0_R {
TI1SEL3_0_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn ti2sel3_0(&self) -> TI2SEL3_0_R {
TI2SEL3_0_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn ti3sel3_0(&self) -> TI3SEL3_0_R {
TI3SEL3_0_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[inline(always)]
pub fn ti4sel3_0(&self) -> TI4SEL3_0_R {
TI4SEL3_0_R::new(((self.bits >> 24) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TISEL")
.field("ti1sel3_0", &self.ti1sel3_0())
.field("ti2sel3_0", &self.ti2sel3_0())
.field("ti3sel3_0", &self.ti3sel3_0())
.field("ti4sel3_0", &self.ti4sel3_0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ti1sel3_0(&mut self) -> TI1SEL3_0_W<TISELrs> {
TI1SEL3_0_W::new(self, 0)
}
#[inline(always)]
pub fn ti2sel3_0(&mut self) -> TI2SEL3_0_W<TISELrs> {
TI2SEL3_0_W::new(self, 8)
}
#[inline(always)]
pub fn ti3sel3_0(&mut self) -> TI3SEL3_0_W<TISELrs> {
TI3SEL3_0_W::new(self, 16)
}
#[inline(always)]
pub fn ti4sel3_0(&mut self) -> TI4SEL3_0_W<TISELrs> {
TI4SEL3_0_W::new(self, 24)
}
}
pub struct TISELrs;
impl crate::RegisterSpec for TISELrs {
type Ux = u32;
}
impl crate::Readable for TISELrs {}
impl crate::Writable for TISELrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TISELrs {}