stm32mp1 0.16.0

Device support crates for STM32MP1 devices
Documentation
///Register `L2PFCR` reader
pub type R = crate::R<L2PFCRrs>;
///Register `L2PFCR` writer
pub type W = crate::W<L2PFCRrs>;
///Field `PF` reader - PF
pub type PF_R = crate::FieldReader;
///Field `PF` writer - PF
pub type PF_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
    ///Bits 0:2 - PF
    #[inline(always)]
    pub fn pf(&self) -> PF_R {
        PF_R::new((self.bits & 7) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("L2PFCR").field("pf", &self.pf()).finish()
    }
}
impl W {
    ///Bits 0:2 - PF
    #[inline(always)]
    pub fn pf(&mut self) -> PF_W<L2PFCRrs> {
        PF_W::new(self, 0)
    }
}
/**This register defines the pixel format that is used for the stored data in the frame buffer of a layer. The pixel data is read from the frame buffer and then transformed to the internal format 8888 (ARGB).

You can [`read`](crate::Reg::read) this register and get [`l2pfcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`l2pfcr::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#LTDC:L2PFCR)*/
pub struct L2PFCRrs;
impl crate::RegisterSpec for L2PFCRrs {
    type Ux = u32;
}
///`read()` method returns [`l2pfcr::R`](R) reader structure
impl crate::Readable for L2PFCRrs {}
///`write(|w| ..)` method takes [`l2pfcr::W`](W) writer structure
impl crate::Writable for L2PFCRrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets L2PFCR to value 0
impl crate::Resettable for L2PFCRrs {}