pub type R = crate::R<ROUTEPENrs>;
pub type W = crate::W<ROUTEPENrs>;
pub type Ch0penR = crate::BitReader;
pub type Ch0penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch1penR = crate::BitReader;
pub type Ch1penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch2penR = crate::BitReader;
pub type Ch2penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch3penR = crate::BitReader;
pub type Ch3penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch4penR = crate::BitReader;
pub type Ch4penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch5penR = crate::BitReader;
pub type Ch5penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch6penR = crate::BitReader;
pub type Ch6penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch7penR = crate::BitReader;
pub type Ch7penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch8penR = crate::BitReader;
pub type Ch8penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch9penR = crate::BitReader;
pub type Ch9penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch10penR = crate::BitReader;
pub type Ch10penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Ch11penR = crate::BitReader;
pub type Ch11penW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ch0pen(&self) -> Ch0penR {
Ch0penR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ch1pen(&self) -> Ch1penR {
Ch1penR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ch2pen(&self) -> Ch2penR {
Ch2penR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ch3pen(&self) -> Ch3penR {
Ch3penR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ch4pen(&self) -> Ch4penR {
Ch4penR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ch5pen(&self) -> Ch5penR {
Ch5penR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ch6pen(&self) -> Ch6penR {
Ch6penR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn ch7pen(&self) -> Ch7penR {
Ch7penR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn ch8pen(&self) -> Ch8penR {
Ch8penR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn ch9pen(&self) -> Ch9penR {
Ch9penR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn ch10pen(&self) -> Ch10penR {
Ch10penR::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn ch11pen(&self) -> Ch11penR {
Ch11penR::new(((self.bits >> 11) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ROUTEPEN")
.field("ch0pen", &self.ch0pen())
.field("ch1pen", &self.ch1pen())
.field("ch2pen", &self.ch2pen())
.field("ch3pen", &self.ch3pen())
.field("ch4pen", &self.ch4pen())
.field("ch5pen", &self.ch5pen())
.field("ch6pen", &self.ch6pen())
.field("ch7pen", &self.ch7pen())
.field("ch8pen", &self.ch8pen())
.field("ch9pen", &self.ch9pen())
.field("ch10pen", &self.ch10pen())
.field("ch11pen", &self.ch11pen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ch0pen(&mut self) -> Ch0penW<'_, ROUTEPENrs> {
Ch0penW::new(self, 0)
}
#[inline(always)]
pub fn ch1pen(&mut self) -> Ch1penW<'_, ROUTEPENrs> {
Ch1penW::new(self, 1)
}
#[inline(always)]
pub fn ch2pen(&mut self) -> Ch2penW<'_, ROUTEPENrs> {
Ch2penW::new(self, 2)
}
#[inline(always)]
pub fn ch3pen(&mut self) -> Ch3penW<'_, ROUTEPENrs> {
Ch3penW::new(self, 3)
}
#[inline(always)]
pub fn ch4pen(&mut self) -> Ch4penW<'_, ROUTEPENrs> {
Ch4penW::new(self, 4)
}
#[inline(always)]
pub fn ch5pen(&mut self) -> Ch5penW<'_, ROUTEPENrs> {
Ch5penW::new(self, 5)
}
#[inline(always)]
pub fn ch6pen(&mut self) -> Ch6penW<'_, ROUTEPENrs> {
Ch6penW::new(self, 6)
}
#[inline(always)]
pub fn ch7pen(&mut self) -> Ch7penW<'_, ROUTEPENrs> {
Ch7penW::new(self, 7)
}
#[inline(always)]
pub fn ch8pen(&mut self) -> Ch8penW<'_, ROUTEPENrs> {
Ch8penW::new(self, 8)
}
#[inline(always)]
pub fn ch9pen(&mut self) -> Ch9penW<'_, ROUTEPENrs> {
Ch9penW::new(self, 9)
}
#[inline(always)]
pub fn ch10pen(&mut self) -> Ch10penW<'_, ROUTEPENrs> {
Ch10penW::new(self, 10)
}
#[inline(always)]
pub fn ch11pen(&mut self) -> Ch11penW<'_, ROUTEPENrs> {
Ch11penW::new(self, 11)
}
}
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 {}