pub type R = crate::R<APB4FZ2rs>;
pub type W = crate::W<APB4FZ2rs>;
pub type DBG_I2C4_R = crate::BitReader;
pub type DBG_I2C4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_LPTIM2_R = crate::BitReader;
pub type DBG_LPTIM2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_LPTIM3_R = crate::BitReader;
pub type DBG_LPTIM3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_LPTIM4_R = crate::BitReader;
pub type DBG_LPTIM4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_LPTIM5_R = crate::BitReader;
pub type DBG_LPTIM5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_RTC_R = crate::BitReader;
pub type DBG_RTC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_WDGLSD1_R = crate::BitReader;
pub type DBG_WDGLSD1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBG_WDGLSD2_R = crate::BitReader;
pub type DBG_WDGLSD2_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dbg_i2c4(&self) -> DBG_I2C4_R {
DBG_I2C4_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dbg_lptim2(&self) -> DBG_LPTIM2_R {
DBG_LPTIM2_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn dbg_lptim3(&self) -> DBG_LPTIM3_R {
DBG_LPTIM3_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn dbg_lptim4(&self) -> DBG_LPTIM4_R {
DBG_LPTIM4_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn dbg_lptim5(&self) -> DBG_LPTIM5_R {
DBG_LPTIM5_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn dbg_rtc(&self) -> DBG_RTC_R {
DBG_RTC_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn dbg_wdglsd1(&self) -> DBG_WDGLSD1_R {
DBG_WDGLSD1_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn dbg_wdglsd2(&self) -> DBG_WDGLSD2_R {
DBG_WDGLSD2_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("APB4FZ2")
.field("dbg_i2c4", &self.dbg_i2c4())
.field("dbg_lptim2", &self.dbg_lptim2())
.field("dbg_lptim3", &self.dbg_lptim3())
.field("dbg_lptim4", &self.dbg_lptim4())
.field("dbg_lptim5", &self.dbg_lptim5())
.field("dbg_rtc", &self.dbg_rtc())
.field("dbg_wdglsd1", &self.dbg_wdglsd1())
.field("dbg_wdglsd2", &self.dbg_wdglsd2())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbg_i2c4(&mut self) -> DBG_I2C4_W<APB4FZ2rs> {
DBG_I2C4_W::new(self, 7)
}
#[inline(always)]
pub fn dbg_lptim2(&mut self) -> DBG_LPTIM2_W<APB4FZ2rs> {
DBG_LPTIM2_W::new(self, 9)
}
#[inline(always)]
pub fn dbg_lptim3(&mut self) -> DBG_LPTIM3_W<APB4FZ2rs> {
DBG_LPTIM3_W::new(self, 10)
}
#[inline(always)]
pub fn dbg_lptim4(&mut self) -> DBG_LPTIM4_W<APB4FZ2rs> {
DBG_LPTIM4_W::new(self, 11)
}
#[inline(always)]
pub fn dbg_lptim5(&mut self) -> DBG_LPTIM5_W<APB4FZ2rs> {
DBG_LPTIM5_W::new(self, 12)
}
#[inline(always)]
pub fn dbg_rtc(&mut self) -> DBG_RTC_W<APB4FZ2rs> {
DBG_RTC_W::new(self, 16)
}
#[inline(always)]
pub fn dbg_wdglsd1(&mut self) -> DBG_WDGLSD1_W<APB4FZ2rs> {
DBG_WDGLSD1_W::new(self, 18)
}
#[inline(always)]
pub fn dbg_wdglsd2(&mut self) -> DBG_WDGLSD2_W<APB4FZ2rs> {
DBG_WDGLSD2_W::new(self, 19)
}
}
pub struct APB4FZ2rs;
impl crate::RegisterSpec for APB4FZ2rs {
type Ux = u32;
}
impl crate::Readable for APB4FZ2rs {}
impl crate::Writable for APB4FZ2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APB4FZ2rs {}