pub type R = crate::R<OTYPERrs>;
pub type W = crate::W<OTYPERrs>;
pub type OT0_R = crate::BitReader;
pub type OT0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT1_R = crate::BitReader;
pub type OT1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT2_R = crate::BitReader;
pub type OT2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT3_R = crate::BitReader;
pub type OT3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT4_R = crate::BitReader;
pub type OT4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT5_R = crate::BitReader;
pub type OT5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT6_R = crate::BitReader;
pub type OT6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT7_R = crate::BitReader;
pub type OT7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT8_R = crate::BitReader;
pub type OT8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT9_R = crate::BitReader;
pub type OT9_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT10_R = crate::BitReader;
pub type OT10_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT11_R = crate::BitReader;
pub type OT11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT12_R = crate::BitReader;
pub type OT12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT13_R = crate::BitReader;
pub type OT13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT14_R = crate::BitReader;
pub type OT14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OT15_R = crate::BitReader;
pub type OT15_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ot0(&self) -> OT0_R {
OT0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ot1(&self) -> OT1_R {
OT1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ot2(&self) -> OT2_R {
OT2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ot3(&self) -> OT3_R {
OT3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ot4(&self) -> OT4_R {
OT4_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ot5(&self) -> OT5_R {
OT5_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ot6(&self) -> OT6_R {
OT6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn ot7(&self) -> OT7_R {
OT7_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn ot8(&self) -> OT8_R {
OT8_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn ot9(&self) -> OT9_R {
OT9_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn ot10(&self) -> OT10_R {
OT10_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn ot11(&self) -> OT11_R {
OT11_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn ot12(&self) -> OT12_R {
OT12_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn ot13(&self) -> OT13_R {
OT13_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn ot14(&self) -> OT14_R {
OT14_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn ot15(&self) -> OT15_R {
OT15_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTYPER")
.field("ot0", &self.ot0())
.field("ot1", &self.ot1())
.field("ot2", &self.ot2())
.field("ot3", &self.ot3())
.field("ot4", &self.ot4())
.field("ot5", &self.ot5())
.field("ot6", &self.ot6())
.field("ot7", &self.ot7())
.field("ot8", &self.ot8())
.field("ot9", &self.ot9())
.field("ot10", &self.ot10())
.field("ot11", &self.ot11())
.field("ot12", &self.ot12())
.field("ot13", &self.ot13())
.field("ot14", &self.ot14())
.field("ot15", &self.ot15())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ot0(&mut self) -> OT0_W<OTYPERrs> {
OT0_W::new(self, 0)
}
#[inline(always)]
pub fn ot1(&mut self) -> OT1_W<OTYPERrs> {
OT1_W::new(self, 1)
}
#[inline(always)]
pub fn ot2(&mut self) -> OT2_W<OTYPERrs> {
OT2_W::new(self, 2)
}
#[inline(always)]
pub fn ot3(&mut self) -> OT3_W<OTYPERrs> {
OT3_W::new(self, 3)
}
#[inline(always)]
pub fn ot4(&mut self) -> OT4_W<OTYPERrs> {
OT4_W::new(self, 4)
}
#[inline(always)]
pub fn ot5(&mut self) -> OT5_W<OTYPERrs> {
OT5_W::new(self, 5)
}
#[inline(always)]
pub fn ot6(&mut self) -> OT6_W<OTYPERrs> {
OT6_W::new(self, 6)
}
#[inline(always)]
pub fn ot7(&mut self) -> OT7_W<OTYPERrs> {
OT7_W::new(self, 7)
}
#[inline(always)]
pub fn ot8(&mut self) -> OT8_W<OTYPERrs> {
OT8_W::new(self, 8)
}
#[inline(always)]
pub fn ot9(&mut self) -> OT9_W<OTYPERrs> {
OT9_W::new(self, 9)
}
#[inline(always)]
pub fn ot10(&mut self) -> OT10_W<OTYPERrs> {
OT10_W::new(self, 10)
}
#[inline(always)]
pub fn ot11(&mut self) -> OT11_W<OTYPERrs> {
OT11_W::new(self, 11)
}
#[inline(always)]
pub fn ot12(&mut self) -> OT12_W<OTYPERrs> {
OT12_W::new(self, 12)
}
#[inline(always)]
pub fn ot13(&mut self) -> OT13_W<OTYPERrs> {
OT13_W::new(self, 13)
}
#[inline(always)]
pub fn ot14(&mut self) -> OT14_W<OTYPERrs> {
OT14_W::new(self, 14)
}
#[inline(always)]
pub fn ot15(&mut self) -> OT15_W<OTYPERrs> {
OT15_W::new(self, 15)
}
}
pub struct OTYPERrs;
impl crate::RegisterSpec for OTYPERrs {
type Ux = u32;
}
impl crate::Readable for OTYPERrs {}
impl crate::Writable for OTYPERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for OTYPERrs {}