pub type R = crate::R<APB2_FZrs>;
pub type W = crate::W<APB2_FZrs>;
pub type DBG_TIM1_STOP_R = crate::BitReader;
pub type DBG_TIM1_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM8_STOP_R = crate::BitReader;
pub type DBG_TIM8_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM9_STOP_R = crate::BitReader;
pub type DBG_TIM9_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM10_STOP_R = crate::BitReader;
pub type DBG_TIM10_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_TIM11_STOP_R = crate::BitReader;
pub type DBG_TIM11_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dbg_tim1_stop(&self) -> DBG_TIM1_STOP_R {
DBG_TIM1_STOP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim8_stop(&self) -> DBG_TIM8_STOP_R {
DBG_TIM8_STOP_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim9_stop(&self) -> DBG_TIM9_STOP_R {
DBG_TIM9_STOP_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim10_stop(&self) -> DBG_TIM10_STOP_R {
DBG_TIM10_STOP_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn dbg_tim11_stop(&self) -> DBG_TIM11_STOP_R {
DBG_TIM11_STOP_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("APB2_FZ")
.field("dbg_tim1_stop", &self.dbg_tim1_stop())
.field("dbg_tim8_stop", &self.dbg_tim8_stop())
.field("dbg_tim9_stop", &self.dbg_tim9_stop())
.field("dbg_tim10_stop", &self.dbg_tim10_stop())
.field("dbg_tim11_stop", &self.dbg_tim11_stop())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbg_tim1_stop(&mut self) -> DBG_TIM1_STOP_W<APB2_FZrs> {
DBG_TIM1_STOP_W::new(self, 0)
}
#[inline(always)]
pub fn dbg_tim8_stop(&mut self) -> DBG_TIM8_STOP_W<APB2_FZrs> {
DBG_TIM8_STOP_W::new(self, 1)
}
#[inline(always)]
pub fn dbg_tim9_stop(&mut self) -> DBG_TIM9_STOP_W<APB2_FZrs> {
DBG_TIM9_STOP_W::new(self, 16)
}
#[inline(always)]
pub fn dbg_tim10_stop(&mut self) -> DBG_TIM10_STOP_W<APB2_FZrs> {
DBG_TIM10_STOP_W::new(self, 17)
}
#[inline(always)]
pub fn dbg_tim11_stop(&mut self) -> DBG_TIM11_STOP_W<APB2_FZrs> {
DBG_TIM11_STOP_W::new(self, 18)
}
}
pub struct APB2_FZrs;
impl crate::RegisterSpec for APB2_FZrs {
type Ux = u32;
}
impl crate::Readable for APB2_FZrs {}
impl crate::Writable for APB2_FZrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APB2_FZrs {}