pub type R = crate::R<OBW1SRrs>;
pub type BOR_LEV_R = crate::FieldReader;
pub type IWDG_HW_R = crate::BitReader;
pub type NRST_STOP_R = crate::BitReader;
pub type NRST_STBY_R = crate::BitReader;
pub type OCTO1_HSLV_R = crate::BitReader;
pub type OCTO2_HSLV_R = crate::BitReader;
pub type IWDG_FZ_STOP_R = crate::BitReader;
pub type IWDG_FZ_SDBY_R = crate::BitReader;
pub type PERSO_OK_R = crate::BitReader;
pub type VDDIO_HSLV_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn bor_lev(&self) -> BOR_LEV_R {
BOR_LEV_R::new(((self.bits >> 2) & 3) as u8)
}
#[inline(always)]
pub fn iwdg_hw(&self) -> IWDG_HW_R {
IWDG_HW_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn nrst_stop(&self) -> NRST_STOP_R {
NRST_STOP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn nrst_stby(&self) -> NRST_STBY_R {
NRST_STBY_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn octo1_hslv(&self) -> OCTO1_HSLV_R {
OCTO1_HSLV_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn octo2_hslv(&self) -> OCTO2_HSLV_R {
OCTO2_HSLV_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn iwdg_fz_stop(&self) -> IWDG_FZ_STOP_R {
IWDG_FZ_STOP_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn iwdg_fz_sdby(&self) -> IWDG_FZ_SDBY_R {
IWDG_FZ_SDBY_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn perso_ok(&self) -> PERSO_OK_R {
PERSO_OK_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn vddio_hslv(&self) -> VDDIO_HSLV_R {
VDDIO_HSLV_R::new(((self.bits >> 29) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OBW1SR")
.field("bor_lev", &self.bor_lev())
.field("iwdg_hw", &self.iwdg_hw())
.field("nrst_stop", &self.nrst_stop())
.field("nrst_stby", &self.nrst_stby())
.field("octo1_hslv", &self.octo1_hslv())
.field("octo2_hslv", &self.octo2_hslv())
.field("iwdg_fz_stop", &self.iwdg_fz_stop())
.field("iwdg_fz_sdby", &self.iwdg_fz_sdby())
.field("perso_ok", &self.perso_ok())
.field("vddio_hslv", &self.vddio_hslv())
.finish()
}
}
pub struct OBW1SRrs;
impl crate::RegisterSpec for OBW1SRrs {
type Ux = u32;
}
impl crate::Readable for OBW1SRrs {}
impl crate::Resettable for OBW1SRrs {}