pub type R = crate::R<_CCMR1_OUTPUTrs>;
pub type W = crate::W<_CCMR1_OUTPUTrs>;
pub type CC1S_R = crate::FieldReader;
pub type CC1S_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type OC1FE_R = crate::BitReader;
pub type OC1FE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OC1PE_R = crate::BitReader;
pub type OC1PE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OC1M_R = crate::FieldReader;
pub type OC1M_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type CC2S_R = crate::FieldReader;
pub type CC2S_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type OC2FE_R = crate::BitReader;
pub type OC2FE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OC2PE_R = crate::BitReader;
pub type OC2PE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OC2M_R = crate::FieldReader;
pub type OC2M_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type OC1M_3_R = crate::BitReader;
pub type OC1M_3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OC2M_3_R = crate::BitReader;
pub type OC2M_3_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cc1s(&self) -> CC1S_R {
CC1S_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn oc1fe(&self) -> OC1FE_R {
OC1FE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn oc1pe(&self) -> OC1PE_R {
OC1PE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn oc1m(&self) -> OC1M_R {
OC1M_R::new(((self.bits >> 4) & 7) as u8)
}
#[inline(always)]
pub fn cc2s(&self) -> CC2S_R {
CC2S_R::new(((self.bits >> 8) & 3) as u8)
}
#[inline(always)]
pub fn oc2fe(&self) -> OC2FE_R {
OC2FE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn oc2pe(&self) -> OC2PE_R {
OC2PE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn oc2m(&self) -> OC2M_R {
OC2M_R::new(((self.bits >> 12) & 7) as u8)
}
#[inline(always)]
pub fn oc1m_3(&self) -> OC1M_3_R {
OC1M_3_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn oc2m_3(&self) -> OC2M_3_R {
OC2M_3_R::new(((self.bits >> 24) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("_CCMR1_output")
.field("cc1s", &self.cc1s())
.field("oc1fe", &self.oc1fe())
.field("oc1pe", &self.oc1pe())
.field("oc1m", &self.oc1m())
.field("cc2s", &self.cc2s())
.field("oc2fe", &self.oc2fe())
.field("oc2pe", &self.oc2pe())
.field("oc2m", &self.oc2m())
.field("oc1m_3", &self.oc1m_3())
.field("oc2m_3", &self.oc2m_3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cc1s(&mut self) -> CC1S_W<_CCMR1_OUTPUTrs> {
CC1S_W::new(self, 0)
}
#[inline(always)]
pub fn oc1fe(&mut self) -> OC1FE_W<_CCMR1_OUTPUTrs> {
OC1FE_W::new(self, 2)
}
#[inline(always)]
pub fn oc1pe(&mut self) -> OC1PE_W<_CCMR1_OUTPUTrs> {
OC1PE_W::new(self, 3)
}
#[inline(always)]
pub fn oc1m(&mut self) -> OC1M_W<_CCMR1_OUTPUTrs> {
OC1M_W::new(self, 4)
}
#[inline(always)]
pub fn cc2s(&mut self) -> CC2S_W<_CCMR1_OUTPUTrs> {
CC2S_W::new(self, 8)
}
#[inline(always)]
pub fn oc2fe(&mut self) -> OC2FE_W<_CCMR1_OUTPUTrs> {
OC2FE_W::new(self, 10)
}
#[inline(always)]
pub fn oc2pe(&mut self) -> OC2PE_W<_CCMR1_OUTPUTrs> {
OC2PE_W::new(self, 11)
}
#[inline(always)]
pub fn oc2m(&mut self) -> OC2M_W<_CCMR1_OUTPUTrs> {
OC2M_W::new(self, 12)
}
#[inline(always)]
pub fn oc1m_3(&mut self) -> OC1M_3_W<_CCMR1_OUTPUTrs> {
OC1M_3_W::new(self, 16)
}
#[inline(always)]
pub fn oc2m_3(&mut self) -> OC2M_3_W<_CCMR1_OUTPUTrs> {
OC2M_3_W::new(self, 24)
}
}
pub struct _CCMR1_OUTPUTrs;
impl crate::RegisterSpec for _CCMR1_OUTPUTrs {
type Ux = u32;
}
impl crate::Readable for _CCMR1_OUTPUTrs {}
impl crate::Writable for _CCMR1_OUTPUTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for _CCMR1_OUTPUTrs {}