stm32f1_staging/stm32f102/flash/
optkeyr.rspub type W = crate::W<OPTKEYRrs>;
pub type OPTKEY_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl core::fmt::Debug for crate::generic::Reg<OPTKEYRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
#[must_use]
pub fn optkey(&mut self) -> OPTKEY_W<OPTKEYRrs> {
OPTKEY_W::new(self, 0)
}
}
pub struct OPTKEYRrs;
impl crate::RegisterSpec for OPTKEYRrs {
type Ux = u32;
}
impl crate::Writable for OPTKEYRrs {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
impl crate::Resettable for OPTKEYRrs {
const RESET_VALUE: u32 = 0;
}