stm32mp1 0.16.0

Device support crates for STM32MP1 devices
Documentation
///Register `L2CR` reader
pub type R = crate::R<L2CRrs>;
///Register `L2CR` writer
pub type W = crate::W<L2CRrs>;
///Field `LEN` reader - LEN
pub type LEN_R = crate::BitReader;
///Field `LEN` writer - LEN
pub type LEN_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `COLKEN` reader - COLKEN
pub type COLKEN_R = crate::BitReader;
///Field `COLKEN` writer - COLKEN
pub type COLKEN_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CLUTEN` reader - CLUTEN
pub type CLUTEN_R = crate::BitReader;
///Field `CLUTEN` writer - CLUTEN
pub type CLUTEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - LEN
    #[inline(always)]
    pub fn len(&self) -> LEN_R {
        LEN_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - COLKEN
    #[inline(always)]
    pub fn colken(&self) -> COLKEN_R {
        COLKEN_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 4 - CLUTEN
    #[inline(always)]
    pub fn cluten(&self) -> CLUTEN_R {
        CLUTEN_R::new(((self.bits >> 4) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("L2CR")
            .field("len", &self.len())
            .field("colken", &self.colken())
            .field("cluten", &self.cluten())
            .finish()
    }
}
impl W {
    ///Bit 0 - LEN
    #[inline(always)]
    pub fn len(&mut self) -> LEN_W<L2CRrs> {
        LEN_W::new(self, 0)
    }
    ///Bit 1 - COLKEN
    #[inline(always)]
    pub fn colken(&mut self) -> COLKEN_W<L2CRrs> {
        COLKEN_W::new(self, 1)
    }
    ///Bit 4 - CLUTEN
    #[inline(always)]
    pub fn cluten(&mut self) -> CLUTEN_W<L2CRrs> {
        CLUTEN_W::new(self, 4)
    }
}
/**LTDC layer 2 control register

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