pub type R = crate::R<ROUTEPENrs>;
pub type W = crate::W<ROUTEPENrs>;
pub type Out0penR = crate::BitReader;
pub type Out0penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Out1penR = crate::BitReader;
pub type Out1penW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn out0pen(&self) -> Out0penR {
Out0penR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn out1pen(&self) -> Out1penR {
Out1penR::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("out0pen", &self.out0pen())
.field("out1pen", &self.out1pen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn out0pen(&mut self) -> Out0penW<'_, ROUTEPENrs> {
Out0penW::new(self, 0)
}
#[inline(always)]
pub fn out1pen(&mut self) -> Out1penW<'_, ROUTEPENrs> {
Out1penW::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 {}