pub type R = crate::R<ROUTEPENrs>;
pub type W = crate::W<ROUTEPENrs>;
pub type SdapenR = crate::BitReader;
pub type SdapenW<'a, REG> = crate::BitWriter<'a, REG>;
pub type SclpenR = crate::BitReader;
pub type SclpenW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sdapen(&self) -> SdapenR {
SdapenR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn sclpen(&self) -> SclpenR {
SclpenR::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ROUTEPEN")
.field("sdapen", &self.sdapen())
.field("sclpen", &self.sclpen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sdapen(&mut self) -> SdapenW<'_, ROUTEPENrs> {
SdapenW::new(self, 0)
}
#[inline(always)]
pub fn sclpen(&mut self) -> SclpenW<'_, ROUTEPENrs> {
SclpenW::new(self, 1)
}
}
pub struct ROUTEPENrs;
impl crate::RegisterSpec for ROUTEPENrs {
type Ux = u32;
}
impl crate::Readable for ROUTEPENrs {}
impl crate::Writable for ROUTEPENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ROUTEPENrs {}