pub type R = crate::R<OPTCCRrs>;
pub type W = crate::W<OPTCCRrs>;
pub type CLR_OPTCHANGEERR_R = crate::BitReader;
pub type CLR_OPTCHANGEERR_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn clr_optchangeerr(&self) -> CLR_OPTCHANGEERR_R {
CLR_OPTCHANGEERR_R::new(((self.bits >> 30) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OPTCCR")
.field("clr_optchangeerr", &self.clr_optchangeerr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn clr_optchangeerr(&mut self) -> CLR_OPTCHANGEERR_W<OPTCCRrs> {
CLR_OPTCHANGEERR_W::new(self, 30)
}
}
pub struct OPTCCRrs;
impl crate::RegisterSpec for OPTCCRrs {
type Ux = u32;
}
impl crate::Readable for OPTCCRrs {}
impl crate::Writable for OPTCCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for OPTCCRrs {}