pub type R = crate::R<ODRrs>;
pub type W = crate::W<ODRrs>;
pub type ODR0_R = crate::BitReader;
pub type ODR0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR1_R = crate::BitReader;
pub type ODR1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR2_R = crate::BitReader;
pub type ODR2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR3_R = crate::BitReader;
pub type ODR3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR4_R = crate::BitReader;
pub type ODR4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR5_R = crate::BitReader;
pub type ODR5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR6_R = crate::BitReader;
pub type ODR6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR7_R = crate::BitReader;
pub type ODR7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR8_R = crate::BitReader;
pub type ODR8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR9_R = crate::BitReader;
pub type ODR9_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR10_R = crate::BitReader;
pub type ODR10_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR11_R = crate::BitReader;
pub type ODR11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR12_R = crate::BitReader;
pub type ODR12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR13_R = crate::BitReader;
pub type ODR13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR14_R = crate::BitReader;
pub type ODR14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ODR15_R = crate::BitReader;
pub type ODR15_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn odr0(&self) -> ODR0_R {
ODR0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn odr1(&self) -> ODR1_R {
ODR1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn odr2(&self) -> ODR2_R {
ODR2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn odr3(&self) -> ODR3_R {
ODR3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn odr4(&self) -> ODR4_R {
ODR4_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn odr5(&self) -> ODR5_R {
ODR5_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn odr6(&self) -> ODR6_R {
ODR6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn odr7(&self) -> ODR7_R {
ODR7_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn odr8(&self) -> ODR8_R {
ODR8_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn odr9(&self) -> ODR9_R {
ODR9_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn odr10(&self) -> ODR10_R {
ODR10_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn odr11(&self) -> ODR11_R {
ODR11_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn odr12(&self) -> ODR12_R {
ODR12_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn odr13(&self) -> ODR13_R {
ODR13_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn odr14(&self) -> ODR14_R {
ODR14_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn odr15(&self) -> ODR15_R {
ODR15_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("ODR")
.field("odr0", &self.odr0())
.field("odr1", &self.odr1())
.field("odr2", &self.odr2())
.field("odr3", &self.odr3())
.field("odr4", &self.odr4())
.field("odr5", &self.odr5())
.field("odr6", &self.odr6())
.field("odr7", &self.odr7())
.field("odr8", &self.odr8())
.field("odr9", &self.odr9())
.field("odr10", &self.odr10())
.field("odr11", &self.odr11())
.field("odr12", &self.odr12())
.field("odr13", &self.odr13())
.field("odr14", &self.odr14())
.field("odr15", &self.odr15())
.finish()
}
}
impl W {
#[inline(always)]
pub fn odr0(&mut self) -> ODR0_W<ODRrs> {
ODR0_W::new(self, 0)
}
#[inline(always)]
pub fn odr1(&mut self) -> ODR1_W<ODRrs> {
ODR1_W::new(self, 1)
}
#[inline(always)]
pub fn odr2(&mut self) -> ODR2_W<ODRrs> {
ODR2_W::new(self, 2)
}
#[inline(always)]
pub fn odr3(&mut self) -> ODR3_W<ODRrs> {
ODR3_W::new(self, 3)
}
#[inline(always)]
pub fn odr4(&mut self) -> ODR4_W<ODRrs> {
ODR4_W::new(self, 4)
}
#[inline(always)]
pub fn odr5(&mut self) -> ODR5_W<ODRrs> {
ODR5_W::new(self, 5)
}
#[inline(always)]
pub fn odr6(&mut self) -> ODR6_W<ODRrs> {
ODR6_W::new(self, 6)
}
#[inline(always)]
pub fn odr7(&mut self) -> ODR7_W<ODRrs> {
ODR7_W::new(self, 7)
}
#[inline(always)]
pub fn odr8(&mut self) -> ODR8_W<ODRrs> {
ODR8_W::new(self, 8)
}
#[inline(always)]
pub fn odr9(&mut self) -> ODR9_W<ODRrs> {
ODR9_W::new(self, 9)
}
#[inline(always)]
pub fn odr10(&mut self) -> ODR10_W<ODRrs> {
ODR10_W::new(self, 10)
}
#[inline(always)]
pub fn odr11(&mut self) -> ODR11_W<ODRrs> {
ODR11_W::new(self, 11)
}
#[inline(always)]
pub fn odr12(&mut self) -> ODR12_W<ODRrs> {
ODR12_W::new(self, 12)
}
#[inline(always)]
pub fn odr13(&mut self) -> ODR13_W<ODRrs> {
ODR13_W::new(self, 13)
}
#[inline(always)]
pub fn odr14(&mut self) -> ODR14_W<ODRrs> {
ODR14_W::new(self, 14)
}
#[inline(always)]
pub fn odr15(&mut self) -> ODR15_W<ODRrs> {
ODR15_W::new(self, 15)
}
}
pub struct ODRrs;
impl crate::RegisterSpec for ODRrs {
type Ux = u32;
}
impl crate::Readable for ODRrs {}
impl crate::Writable for ODRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ODRrs {}