pub type R = crate::R<TIM16_TISELrs>;
pub type W = crate::W<TIM16_TISELrs>;
pub type TI1SEL_R = crate::FieldReader;
pub type TI1SEL_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)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM16_TISEL").field("ti1sel", &self.ti1sel()).finish()
}
}
impl W {
#[inline(always)]
pub fn ti1sel(&mut self) -> TI1SEL_W<TIM16_TISELrs> {
TI1SEL_W::new(self, 0)
}
}
pub struct TIM16_TISELrs;
impl crate::RegisterSpec for TIM16_TISELrs {
type Ux = u32;
}
impl crate::Readable for TIM16_TISELrs {}
impl crate::Writable for TIM16_TISELrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TIM16_TISELrs {}