stm32mp1 0.16.0

Device support crates for STM32MP1 devices
Documentation
///Register `_CCMR1_output` reader
pub type R = crate::R<_CCMR1_OUTPUTrs>;
///Register `_CCMR1_output` writer
pub type W = crate::W<_CCMR1_OUTPUTrs>;
///Field `CC1S` reader - CC1S
pub type CC1S_R = crate::FieldReader;
///Field `CC1S` writer - CC1S
pub type CC1S_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
///Field `OC1FE` reader - OC1FE
pub type OC1FE_R = crate::BitReader;
///Field `OC1FE` writer - OC1FE
pub type OC1FE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `OC1PE` reader - OC1FE
pub type OC1PE_R = crate::BitReader;
///Field `OC1PE` writer - OC1FE
pub type OC1PE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `OC1M` reader - OC1M
pub type OC1M_R = crate::FieldReader;
///Field `OC1M` writer - OC1M
pub type OC1M_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
///Field `CC2S` reader - CC2S
pub type CC2S_R = crate::FieldReader;
///Field `CC2S` writer - CC2S
pub type CC2S_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
///Field `OC2FE` reader - OC2FE
pub type OC2FE_R = crate::BitReader;
///Field `OC2FE` writer - OC2FE
pub type OC2FE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `OC2PE` reader - OC2PE
pub type OC2PE_R = crate::BitReader;
///Field `OC2PE` writer - OC2PE
pub type OC2PE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `OC2M` reader - OC2M
pub type OC2M_R = crate::FieldReader;
///Field `OC2M` writer - OC2M
pub type OC2M_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
///Field `OC1M_3` reader - OC1M_3
pub type OC1M_3_R = crate::BitReader;
///Field `OC1M_3` writer - OC1M_3
pub type OC1M_3_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `OC2M_3` reader - OC2M_3
pub type OC2M_3_R = crate::BitReader;
///Field `OC2M_3` writer - OC2M_3
pub type OC2M_3_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bits 0:1 - CC1S
    #[inline(always)]
    pub fn cc1s(&self) -> CC1S_R {
        CC1S_R::new((self.bits & 3) as u8)
    }
    ///Bit 2 - OC1FE
    #[inline(always)]
    pub fn oc1fe(&self) -> OC1FE_R {
        OC1FE_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - OC1FE
    #[inline(always)]
    pub fn oc1pe(&self) -> OC1PE_R {
        OC1PE_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bits 4:6 - OC1M
    #[inline(always)]
    pub fn oc1m(&self) -> OC1M_R {
        OC1M_R::new(((self.bits >> 4) & 7) as u8)
    }
    ///Bits 8:9 - CC2S
    #[inline(always)]
    pub fn cc2s(&self) -> CC2S_R {
        CC2S_R::new(((self.bits >> 8) & 3) as u8)
    }
    ///Bit 10 - OC2FE
    #[inline(always)]
    pub fn oc2fe(&self) -> OC2FE_R {
        OC2FE_R::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - OC2PE
    #[inline(always)]
    pub fn oc2pe(&self) -> OC2PE_R {
        OC2PE_R::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bits 12:14 - OC2M
    #[inline(always)]
    pub fn oc2m(&self) -> OC2M_R {
        OC2M_R::new(((self.bits >> 12) & 7) as u8)
    }
    ///Bit 16 - OC1M_3
    #[inline(always)]
    pub fn oc1m_3(&self) -> OC1M_3_R {
        OC1M_3_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 24 - OC2M_3
    #[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 {
    ///Bits 0:1 - CC1S
    #[inline(always)]
    pub fn cc1s(&mut self) -> CC1S_W<_CCMR1_OUTPUTrs> {
        CC1S_W::new(self, 0)
    }
    ///Bit 2 - OC1FE
    #[inline(always)]
    pub fn oc1fe(&mut self) -> OC1FE_W<_CCMR1_OUTPUTrs> {
        OC1FE_W::new(self, 2)
    }
    ///Bit 3 - OC1FE
    #[inline(always)]
    pub fn oc1pe(&mut self) -> OC1PE_W<_CCMR1_OUTPUTrs> {
        OC1PE_W::new(self, 3)
    }
    ///Bits 4:6 - OC1M
    #[inline(always)]
    pub fn oc1m(&mut self) -> OC1M_W<_CCMR1_OUTPUTrs> {
        OC1M_W::new(self, 4)
    }
    ///Bits 8:9 - CC2S
    #[inline(always)]
    pub fn cc2s(&mut self) -> CC2S_W<_CCMR1_OUTPUTrs> {
        CC2S_W::new(self, 8)
    }
    ///Bit 10 - OC2FE
    #[inline(always)]
    pub fn oc2fe(&mut self) -> OC2FE_W<_CCMR1_OUTPUTrs> {
        OC2FE_W::new(self, 10)
    }
    ///Bit 11 - OC2PE
    #[inline(always)]
    pub fn oc2pe(&mut self) -> OC2PE_W<_CCMR1_OUTPUTrs> {
        OC2PE_W::new(self, 11)
    }
    ///Bits 12:14 - OC2M
    #[inline(always)]
    pub fn oc2m(&mut self) -> OC2M_W<_CCMR1_OUTPUTrs> {
        OC2M_W::new(self, 12)
    }
    ///Bit 16 - OC1M_3
    #[inline(always)]
    pub fn oc1m_3(&mut self) -> OC1M_3_W<_CCMR1_OUTPUTrs> {
        OC1M_3_W::new(self, 16)
    }
    ///Bit 24 - OC2M_3
    #[inline(always)]
    pub fn oc2m_3(&mut self) -> OC2M_3_W<_CCMR1_OUTPUTrs> {
        OC2M_3_W::new(self, 24)
    }
}
/**TIM12 capture/compare mode register 1

You can [`read`](crate::Reg::read) this register and get [`_ccmr1_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`_ccmr1_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32MP157.html#TIM12:_CCMR1_output)*/
pub struct _CCMR1_OUTPUTrs;
impl crate::RegisterSpec for _CCMR1_OUTPUTrs {
    type Ux = u32;
}
///`read()` method returns [`_ccmr1_output::R`](R) reader structure
impl crate::Readable for _CCMR1_OUTPUTrs {}
///`write(|w| ..)` method takes [`_ccmr1_output::W`](W) writer structure
impl crate::Writable for _CCMR1_OUTPUTrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets _CCMR1_output to value 0
impl crate::Resettable for _CCMR1_OUTPUTrs {}