stm32f1_staging/stm32f103/flash/
obr.rspub type R = crate::R<OBRrs>;
pub type OPTERR_R = crate::BitReader;
pub type RDPRT_R = crate::BitReader;
pub type WDG_SW_R = crate::BitReader;
pub type N_RST_STOP_R = crate::BitReader;
pub type N_RST_STDBY_R = crate::BitReader;
pub type DATA0_R = crate::FieldReader;
pub type DATA1_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn opterr(&self) -> OPTERR_R {
OPTERR_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rdprt(&self) -> RDPRT_R {
RDPRT_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wdg_sw(&self) -> WDG_SW_R {
WDG_SW_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn n_rst_stop(&self) -> N_RST_STOP_R {
N_RST_STOP_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn n_rst_stdby(&self) -> N_RST_STDBY_R {
N_RST_STDBY_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn data0(&self) -> DATA0_R {
DATA0_R::new(((self.bits >> 10) & 0xff) as u8)
}
#[inline(always)]
pub fn data1(&self) -> DATA1_R {
DATA1_R::new(((self.bits >> 18) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OBR")
.field("opterr", &self.opterr())
.field("rdprt", &self.rdprt())
.field("wdg_sw", &self.wdg_sw())
.field("n_rst_stop", &self.n_rst_stop())
.field("n_rst_stdby", &self.n_rst_stdby())
.field("data0", &self.data0())
.field("data1", &self.data1())
.finish()
}
}
pub struct OBRrs;
impl crate::RegisterSpec for OBRrs {
type Ux = u32;
}
impl crate::Readable for OBRrs {}
impl crate::Resettable for OBRrs {
const RESET_VALUE: u32 = 0x03ff_fffc;
}