pub type R = crate::R<APB1LFZ2rs>;
pub type W = crate::W<APB1LFZ2rs>;
pub type DBG_TIM2_R = crate::BitReader;
pub type DBG_TIM2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM3_R = crate::BitReader;
pub type DBG_TIM3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM4_R = crate::BitReader;
pub type DBG_TIM4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM5_R = crate::BitReader;
pub type DBG_TIM5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM6_R = crate::BitReader;
pub type DBG_TIM6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM7_R = crate::BitReader;
pub type DBG_TIM7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM12_R = crate::BitReader;
pub type DBG_TIM12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM13_R = crate::BitReader;
pub type DBG_TIM13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM14_R = crate::BitReader;
pub type DBG_TIM14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_LPTIM1_R = crate::BitReader;
pub type DBG_LPTIM1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_WWDG2_R = crate::BitReader;
pub type DBG_WWDG2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_I2C1_R = crate::BitReader;
pub type DBG_I2C1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_I2C2_R = crate::BitReader;
pub type DBG_I2C2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_I2C3_R = crate::BitReader;
pub type DBG_I2C3_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dbg_tim2(&self) -> DBG_TIM2_R {
DBG_TIM2_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim3(&self) -> DBG_TIM3_R {
DBG_TIM3_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim4(&self) -> DBG_TIM4_R {
DBG_TIM4_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim5(&self) -> DBG_TIM5_R {
DBG_TIM5_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim6(&self) -> DBG_TIM6_R {
DBG_TIM6_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim7(&self) -> DBG_TIM7_R {
DBG_TIM7_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim12(&self) -> DBG_TIM12_R {
DBG_TIM12_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim13(&self) -> DBG_TIM13_R {
DBG_TIM13_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim14(&self) -> DBG_TIM14_R {
DBG_TIM14_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn dbg_lptim1(&self) -> DBG_LPTIM1_R {
DBG_LPTIM1_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn dbg_wwdg2(&self) -> DBG_WWDG2_R {
DBG_WWDG2_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn dbg_i2c1(&self) -> DBG_I2C1_R {
DBG_I2C1_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn dbg_i2c2(&self) -> DBG_I2C2_R {
DBG_I2C2_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn dbg_i2c3(&self) -> DBG_I2C3_R {
DBG_I2C3_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APB1LFZ2")
.field("dbg_tim2", &self.dbg_tim2())
.field("dbg_tim3", &self.dbg_tim3())
.field("dbg_tim4", &self.dbg_tim4())
.field("dbg_tim5", &self.dbg_tim5())
.field("dbg_tim6", &self.dbg_tim6())
.field("dbg_tim7", &self.dbg_tim7())
.field("dbg_tim12", &self.dbg_tim12())
.field("dbg_tim13", &self.dbg_tim13())
.field("dbg_tim14", &self.dbg_tim14())
.field("dbg_lptim1", &self.dbg_lptim1())
.field("dbg_wwdg2", &self.dbg_wwdg2())
.field("dbg_i2c1", &self.dbg_i2c1())
.field("dbg_i2c2", &self.dbg_i2c2())
.field("dbg_i2c3", &self.dbg_i2c3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbg_tim2(&mut self) -> DBG_TIM2_W<APB1LFZ2rs> {
DBG_TIM2_W::new(self, 0)
}
#[inline(always)]
pub fn dbg_tim3(&mut self) -> DBG_TIM3_W<APB1LFZ2rs> {
DBG_TIM3_W::new(self, 1)
}
#[inline(always)]
pub fn dbg_tim4(&mut self) -> DBG_TIM4_W<APB1LFZ2rs> {
DBG_TIM4_W::new(self, 2)
}
#[inline(always)]
pub fn dbg_tim5(&mut self) -> DBG_TIM5_W<APB1LFZ2rs> {
DBG_TIM5_W::new(self, 3)
}
#[inline(always)]
pub fn dbg_tim6(&mut self) -> DBG_TIM6_W<APB1LFZ2rs> {
DBG_TIM6_W::new(self, 4)
}
#[inline(always)]
pub fn dbg_tim7(&mut self) -> DBG_TIM7_W<APB1LFZ2rs> {
DBG_TIM7_W::new(self, 5)
}
#[inline(always)]
pub fn dbg_tim12(&mut self) -> DBG_TIM12_W<APB1LFZ2rs> {
DBG_TIM12_W::new(self, 6)
}
#[inline(always)]
pub fn dbg_tim13(&mut self) -> DBG_TIM13_W<APB1LFZ2rs> {
DBG_TIM13_W::new(self, 7)
}
#[inline(always)]
pub fn dbg_tim14(&mut self) -> DBG_TIM14_W<APB1LFZ2rs> {
DBG_TIM14_W::new(self, 8)
}
#[inline(always)]
pub fn dbg_lptim1(&mut self) -> DBG_LPTIM1_W<APB1LFZ2rs> {
DBG_LPTIM1_W::new(self, 9)
}
#[inline(always)]
pub fn dbg_wwdg2(&mut self) -> DBG_WWDG2_W<APB1LFZ2rs> {
DBG_WWDG2_W::new(self, 11)
}
#[inline(always)]
pub fn dbg_i2c1(&mut self) -> DBG_I2C1_W<APB1LFZ2rs> {
DBG_I2C1_W::new(self, 21)
}
#[inline(always)]
pub fn dbg_i2c2(&mut self) -> DBG_I2C2_W<APB1LFZ2rs> {
DBG_I2C2_W::new(self, 22)
}
#[inline(always)]
pub fn dbg_i2c3(&mut self) -> DBG_I2C3_W<APB1LFZ2rs> {
DBG_I2C3_W::new(self, 23)
}
}
pub struct APB1LFZ2rs;
impl crate::RegisterSpec for APB1LFZ2rs {
type Ux = u32;
}
impl crate::Readable for APB1LFZ2rs {}
impl crate::Writable for APB1LFZ2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APB1LFZ2rs {}