stm32h7 0.16.0

Device support crates for STM32H7 devices
Documentation
///Register `FGOR` reader
pub type R = crate::R<FGORrs>;
///Register `FGOR` writer
pub type W = crate::W<FGORrs>;
///Field `LO` reader - Line offset This field gives the line offset used for the foreground image, expressed: in pixels when LOM = 0 in DMA2D_CR. Only LO\[13:0\] bits are considered, LO\[15:14\] bits are ignored. in bytes when LOM = 1 This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. If the image format is 4-bit per pixel, the line offset must be even.
pub type LO_R = crate::FieldReader<u16>;
///Field `LO` writer - Line offset This field gives the line offset used for the foreground image, expressed: in pixels when LOM = 0 in DMA2D_CR. Only LO\[13:0\] bits are considered, LO\[15:14\] bits are ignored. in bytes when LOM = 1 This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. If the image format is 4-bit per pixel, the line offset must be even.
pub type LO_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    ///Bits 0:15 - Line offset This field gives the line offset used for the foreground image, expressed: in pixels when LOM = 0 in DMA2D_CR. Only LO\[13:0\] bits are considered, LO\[15:14\] bits are ignored. in bytes when LOM = 1 This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. If the image format is 4-bit per pixel, the line offset must be even.
    #[inline(always)]
    pub fn lo(&self) -> LO_R {
        LO_R::new((self.bits & 0xffff) as u16)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("FGOR").field("lo", &self.lo()).finish()
    }
}
impl W {
    ///Bits 0:15 - Line offset This field gives the line offset used for the foreground image, expressed: in pixels when LOM = 0 in DMA2D_CR. Only LO\[13:0\] bits are considered, LO\[15:14\] bits are ignored. in bytes when LOM = 1 This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. If the image format is 4-bit per pixel, the line offset must be even.
    #[inline(always)]
    pub fn lo(&mut self) -> LO_W<FGORrs> {
        LO_W::new(self, 0)
    }
}
/**DMA2D foreground offset register

You can [`read`](crate::Reg::read) this register and get [`fgor::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fgor::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct FGORrs;
impl crate::RegisterSpec for FGORrs {
    type Ux = u32;
}
///`read()` method returns [`fgor::R`](R) reader structure
impl crate::Readable for FGORrs {}
///`write(|w| ..)` method takes [`fgor::W`](W) writer structure
impl crate::Writable for FGORrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets FGOR to value 0
impl crate::Resettable for FGORrs {}