pub type R = crate::R<TISELrs>;
pub type W = crate::W<TISELrs>;
pub type TI1SEL_R = crate::FieldReader;
pub type TI1SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type TI2SEL_R = crate::FieldReader;
pub type TI2SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[inline(always)]
pub fn ti1sel(&self) -> TI1SEL_R {
TI1SEL_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn ti2sel(&self) -> TI2SEL_R {
TI2SEL_R::new(((self.bits >> 8) & 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("ti1sel", &self.ti1sel())
.field("ti2sel", &self.ti2sel())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ti1sel(&mut self) -> TI1SEL_W<TISELrs> {
TI1SEL_W::new(self, 0)
}
#[inline(always)]
pub fn ti2sel(&mut self) -> TI2SEL_W<TISELrs> {
TI2SEL_W::new(self, 8)
}
}
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 {}