pub type R = crate::R<APB2FZ1rs>;
pub type W = crate::W<APB2FZ1rs>;
pub type DBG_TIM1_R = crate::BitReader;
pub type DBG_TIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM8_R = crate::BitReader;
pub type DBG_TIM8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM15_R = crate::BitReader;
pub type DBG_TIM15_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM16_R = crate::BitReader;
pub type DBG_TIM16_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM17_R = crate::BitReader;
pub type DBG_TIM17_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dbg_tim1(&self) -> DBG_TIM1_R {
DBG_TIM1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim8(&self) -> DBG_TIM8_R {
DBG_TIM8_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim15(&self) -> DBG_TIM15_R {
DBG_TIM15_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim16(&self) -> DBG_TIM16_R {
DBG_TIM16_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim17(&self) -> DBG_TIM17_R {
DBG_TIM17_R::new(((self.bits >> 18) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APB2FZ1")
.field("dbg_tim1", &self.dbg_tim1())
.field("dbg_tim8", &self.dbg_tim8())
.field("dbg_tim15", &self.dbg_tim15())
.field("dbg_tim16", &self.dbg_tim16())
.field("dbg_tim17", &self.dbg_tim17())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbg_tim1(&mut self) -> DBG_TIM1_W<APB2FZ1rs> {
DBG_TIM1_W::new(self, 0)
}
#[inline(always)]
pub fn dbg_tim8(&mut self) -> DBG_TIM8_W<APB2FZ1rs> {
DBG_TIM8_W::new(self, 1)
}
#[inline(always)]
pub fn dbg_tim15(&mut self) -> DBG_TIM15_W<APB2FZ1rs> {
DBG_TIM15_W::new(self, 16)
}
#[inline(always)]
pub fn dbg_tim16(&mut self) -> DBG_TIM16_W<APB2FZ1rs> {
DBG_TIM16_W::new(self, 17)
}
#[inline(always)]
pub fn dbg_tim17(&mut self) -> DBG_TIM17_W<APB2FZ1rs> {
DBG_TIM17_W::new(self, 18)
}
}
pub struct APB2FZ1rs;
impl crate::RegisterSpec for APB2FZ1rs {
type Ux = u32;
}
impl crate::Readable for APB2FZ1rs {}
impl crate::Writable for APB2FZ1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APB2FZ1rs {}