pub type R = crate::R<APB1_FZrs>;
pub type W = crate::W<APB1_FZrs>;
pub type DBG_TIM2_STOP_R = crate::BitReader;
pub type DBG_TIM2_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM3_STOP_R = crate::BitReader;
pub type DBG_TIM3_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM4_STOP_R = crate::BitReader;
pub type DBG_TIM4_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM5_STOP_R = crate::BitReader;
pub type DBG_TIM5_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM6_STOP_R = crate::BitReader;
pub type DBG_TIM6_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM7_STOP_R = crate::BitReader;
pub type DBG_TIM7_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM12_STOP_R = crate::BitReader;
pub type DBG_TIM12_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM13_STOP_R = crate::BitReader;
pub type DBG_TIM13_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM14_STOP_R = crate::BitReader;
pub type DBG_TIM14_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_RTC_STOP_R = crate::BitReader;
pub type DBG_RTC_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_WWDG_STOP_R = crate::BitReader;
pub type DBG_WWDG_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_IWDG_STOP_R = crate::BitReader;
pub type DBG_IWDG_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_J2C1_SMBUS_TIMEOUT_R = crate::BitReader;
pub type DBG_J2C1_SMBUS_TIMEOUT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_J2C2_SMBUS_TIMEOUT_R = crate::BitReader;
pub type DBG_J2C2_SMBUS_TIMEOUT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_J2C3SMBUS_TIMEOUT_R = crate::BitReader;
pub type DBG_J2C3SMBUS_TIMEOUT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_CAN1_STOP_R = crate::BitReader;
pub type DBG_CAN1_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_CAN2_STOP_R = crate::BitReader;
pub type DBG_CAN2_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dbg_tim2_stop(&self) -> DBG_TIM2_STOP_R {
DBG_TIM2_STOP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim3_stop(&self) -> DBG_TIM3_STOP_R {
DBG_TIM3_STOP_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim4_stop(&self) -> DBG_TIM4_STOP_R {
DBG_TIM4_STOP_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim5_stop(&self) -> DBG_TIM5_STOP_R {
DBG_TIM5_STOP_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim6_stop(&self) -> DBG_TIM6_STOP_R {
DBG_TIM6_STOP_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim7_stop(&self) -> DBG_TIM7_STOP_R {
DBG_TIM7_STOP_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim12_stop(&self) -> DBG_TIM12_STOP_R {
DBG_TIM12_STOP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim13_stop(&self) -> DBG_TIM13_STOP_R {
DBG_TIM13_STOP_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim14_stop(&self) -> DBG_TIM14_STOP_R {
DBG_TIM14_STOP_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn dbg_rtc_stop(&self) -> DBG_RTC_STOP_R {
DBG_RTC_STOP_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn dbg_wwdg_stop(&self) -> DBG_WWDG_STOP_R {
DBG_WWDG_STOP_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn dbg_iwdg_stop(&self) -> DBG_IWDG_STOP_R {
DBG_IWDG_STOP_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn dbg_j2c1_smbus_timeout(&self) -> DBG_J2C1_SMBUS_TIMEOUT_R {
DBG_J2C1_SMBUS_TIMEOUT_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn dbg_j2c2_smbus_timeout(&self) -> DBG_J2C2_SMBUS_TIMEOUT_R {
DBG_J2C2_SMBUS_TIMEOUT_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn dbg_j2c3smbus_timeout(&self) -> DBG_J2C3SMBUS_TIMEOUT_R {
DBG_J2C3SMBUS_TIMEOUT_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn dbg_can1_stop(&self) -> DBG_CAN1_STOP_R {
DBG_CAN1_STOP_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn dbg_can2_stop(&self) -> DBG_CAN2_STOP_R {
DBG_CAN2_STOP_R::new(((self.bits >> 26) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APB1_FZ")
.field("dbg_tim2_stop", &self.dbg_tim2_stop())
.field("dbg_tim3_stop", &self.dbg_tim3_stop())
.field("dbg_tim4_stop", &self.dbg_tim4_stop())
.field("dbg_tim5_stop", &self.dbg_tim5_stop())
.field("dbg_tim6_stop", &self.dbg_tim6_stop())
.field("dbg_tim7_stop", &self.dbg_tim7_stop())
.field("dbg_tim12_stop", &self.dbg_tim12_stop())
.field("dbg_tim13_stop", &self.dbg_tim13_stop())
.field("dbg_tim14_stop", &self.dbg_tim14_stop())
.field("dbg_rtc_stop", &self.dbg_rtc_stop())
.field("dbg_wwdg_stop", &self.dbg_wwdg_stop())
.field("dbg_iwdg_stop", &self.dbg_iwdg_stop())
.field("dbg_j2c1_smbus_timeout", &self.dbg_j2c1_smbus_timeout())
.field("dbg_j2c2_smbus_timeout", &self.dbg_j2c2_smbus_timeout())
.field("dbg_j2c3smbus_timeout", &self.dbg_j2c3smbus_timeout())
.field("dbg_can1_stop", &self.dbg_can1_stop())
.field("dbg_can2_stop", &self.dbg_can2_stop())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbg_tim2_stop(&mut self) -> DBG_TIM2_STOP_W<APB1_FZrs> {
DBG_TIM2_STOP_W::new(self, 0)
}
#[inline(always)]
pub fn dbg_tim3_stop(&mut self) -> DBG_TIM3_STOP_W<APB1_FZrs> {
DBG_TIM3_STOP_W::new(self, 1)
}
#[inline(always)]
pub fn dbg_tim4_stop(&mut self) -> DBG_TIM4_STOP_W<APB1_FZrs> {
DBG_TIM4_STOP_W::new(self, 2)
}
#[inline(always)]
pub fn dbg_tim5_stop(&mut self) -> DBG_TIM5_STOP_W<APB1_FZrs> {
DBG_TIM5_STOP_W::new(self, 3)
}
#[inline(always)]
pub fn dbg_tim6_stop(&mut self) -> DBG_TIM6_STOP_W<APB1_FZrs> {
DBG_TIM6_STOP_W::new(self, 4)
}
#[inline(always)]
pub fn dbg_tim7_stop(&mut self) -> DBG_TIM7_STOP_W<APB1_FZrs> {
DBG_TIM7_STOP_W::new(self, 5)
}
#[inline(always)]
pub fn dbg_tim12_stop(&mut self) -> DBG_TIM12_STOP_W<APB1_FZrs> {
DBG_TIM12_STOP_W::new(self, 6)
}
#[inline(always)]
pub fn dbg_tim13_stop(&mut self) -> DBG_TIM13_STOP_W<APB1_FZrs> {
DBG_TIM13_STOP_W::new(self, 7)
}
#[inline(always)]
pub fn dbg_tim14_stop(&mut self) -> DBG_TIM14_STOP_W<APB1_FZrs> {
DBG_TIM14_STOP_W::new(self, 8)
}
#[inline(always)]
pub fn dbg_rtc_stop(&mut self) -> DBG_RTC_STOP_W<APB1_FZrs> {
DBG_RTC_STOP_W::new(self, 10)
}
#[inline(always)]
pub fn dbg_wwdg_stop(&mut self) -> DBG_WWDG_STOP_W<APB1_FZrs> {
DBG_WWDG_STOP_W::new(self, 11)
}
#[inline(always)]
pub fn dbg_iwdg_stop(&mut self) -> DBG_IWDG_STOP_W<APB1_FZrs> {
DBG_IWDG_STOP_W::new(self, 12)
}
#[inline(always)]
pub fn dbg_j2c1_smbus_timeout(&mut self) -> DBG_J2C1_SMBUS_TIMEOUT_W<APB1_FZrs> {
DBG_J2C1_SMBUS_TIMEOUT_W::new(self, 21)
}
#[inline(always)]
pub fn dbg_j2c2_smbus_timeout(&mut self) -> DBG_J2C2_SMBUS_TIMEOUT_W<APB1_FZrs> {
DBG_J2C2_SMBUS_TIMEOUT_W::new(self, 22)
}
#[inline(always)]
pub fn dbg_j2c3smbus_timeout(&mut self) -> DBG_J2C3SMBUS_TIMEOUT_W<APB1_FZrs> {
DBG_J2C3SMBUS_TIMEOUT_W::new(self, 23)
}
#[inline(always)]
pub fn dbg_can1_stop(&mut self) -> DBG_CAN1_STOP_W<APB1_FZrs> {
DBG_CAN1_STOP_W::new(self, 25)
}
#[inline(always)]
pub fn dbg_can2_stop(&mut self) -> DBG_CAN2_STOP_W<APB1_FZrs> {
DBG_CAN2_STOP_W::new(self, 26)
}
}
pub struct APB1_FZrs;
impl crate::RegisterSpec for APB1_FZrs {
type Ux = u32;
}
impl crate::Readable for APB1_FZrs {}
impl crate::Writable for APB1_FZrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APB1_FZrs {}