///Register `SSCR` reader
pub type R = crate::R<SSCRrs>;
///Register `SSCR` writer
pub type W = crate::W<SSCRrs>;
///Field `VSH` reader - Vertical Synchronization Height (in units of horizontal scan line)
pub type VSH_R = crate::FieldReader<u16>;
///Field `VSH` writer - Vertical Synchronization Height (in units of horizontal scan line)
pub type VSH_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16, crate::Safe>;
///Field `HSW` reader - Horizontal Synchronization Width (in units of pixel clock period)
pub type HSW_R = crate::FieldReader<u16>;
///Field `HSW` writer - Horizontal Synchronization Width (in units of pixel clock period)
pub type HSW_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
impl R {
    ///Bits 0:10 - Vertical Synchronization Height (in units of horizontal scan line)
    #[inline(always)]
    pub fn vsh(&self) -> VSH_R {
        VSH_R::new((self.bits & 0x07ff) as u16)
    }
    ///Bits 16:27 - Horizontal Synchronization Width (in units of pixel clock period)
    #[inline(always)]
    pub fn hsw(&self) -> HSW_R {
        HSW_R::new(((self.bits >> 16) & 0x0fff) as u16)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SSCR")
            .field("hsw", &self.hsw())
            .field("vsh", &self.vsh())
            .finish()
    }
}
impl W {
    ///Bits 0:10 - Vertical Synchronization Height (in units of horizontal scan line)
    #[inline(always)]
    pub fn vsh(&mut self) -> VSH_W<SSCRrs> {
        VSH_W::new(self, 0)
    }
    ///Bits 16:27 - Horizontal Synchronization Width (in units of pixel clock period)
    #[inline(always)]
    pub fn hsw(&mut self) -> HSW_W<SSCRrs> {
        HSW_W::new(self, 16)
    }
}
/**Synchronization Size Configuration Register

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