pub type R = crate::R<APB2FZrs>;
pub type W = crate::W<APB2FZrs>;
pub type TIM1_R = crate::BitReader;
pub type TIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TIM15_R = crate::BitReader;
pub type TIM15_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TIM16_R = crate::BitReader;
pub type TIM16_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TIM17_R = crate::BitReader;
pub type TIM17_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TIM9_R = crate::BitReader;
pub type TIM9_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tim1(&self) -> TIM1_R {
TIM1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tim15(&self) -> TIM15_R {
TIM15_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn tim16(&self) -> TIM16_R {
TIM16_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn tim17(&self) -> TIM17_R {
TIM17_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn tim9(&self) -> TIM9_R {
TIM9_R::new(((self.bits >> 19) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APB2FZ")
.field("tim1", &self.tim1())
.field("tim15", &self.tim15())
.field("tim16", &self.tim16())
.field("tim17", &self.tim17())
.field("tim9", &self.tim9())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tim1(&mut self) -> TIM1_W<APB2FZrs> {
TIM1_W::new(self, 0)
}
#[inline(always)]
pub fn tim15(&mut self) -> TIM15_W<APB2FZrs> {
TIM15_W::new(self, 16)
}
#[inline(always)]
pub fn tim16(&mut self) -> TIM16_W<APB2FZrs> {
TIM16_W::new(self, 17)
}
#[inline(always)]
pub fn tim17(&mut self) -> TIM17_W<APB2FZrs> {
TIM17_W::new(self, 18)
}
#[inline(always)]
pub fn tim9(&mut self) -> TIM9_W<APB2FZrs> {
TIM9_W::new(self, 19)
}
}
pub struct APB2FZrs;
impl crate::RegisterSpec for APB2FZrs {
type Ux = u32;
}
impl crate::Readable for APB2FZrs {}
impl crate::Writable for APB2FZrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APB2FZrs {}