pub type R = crate::R<OPTKEYR_rs>;
pub type W = crate::W<OPTKEYR_rs>;
pub type OPTKEYR_R = crate::FieldReader<u32>;
pub type OPTKEYR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[inline(always)]
pub fn optkeyr(&self) -> OPTKEYR_R {
OPTKEYR_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OPTKEYR_").field("optkeyr", &self.optkeyr()).finish()
}
}
impl W {
#[inline(always)]
pub fn optkeyr(&mut self) -> OPTKEYR_W<OPTKEYR_rs> {
OPTKEYR_W::new(self, 0)
}
}
pub struct OPTKEYR_rs;
impl crate::RegisterSpec for OPTKEYR_rs {
type Ux = u32;
}
impl crate::Readable for OPTKEYR_rs {}
impl crate::Writable for OPTKEYR_rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for OPTKEYR_rs {}