pub type R = crate::R<TIM17_TISELrs>;
pub type W = crate::W<TIM17_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("TIM17_TISEL").field("ti1sel", &self.ti1sel()).finish()
}
}
impl W {
#[inline(always)]
pub fn ti1sel(&mut self) -> TI1SEL_W<TIM17_TISELrs> {
TI1SEL_W::new(self, 0)
}
}
pub struct TIM17_TISELrs;
impl crate::RegisterSpec for TIM17_TISELrs {
type Ux = u32;
}
impl crate::Readable for TIM17_TISELrs {}
impl crate::Writable for TIM17_TISELrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TIM17_TISELrs {}