stm32f7_staging/stm32f779/dsi/
vcccr.rs

1///Register `VCCCR` reader
2pub type R = crate::R<VCCCRrs>;
3///Field `NUMC` reader - Number of Chunks
4pub type NUMC_R = crate::FieldReader<u16>;
5impl R {
6    ///Bits 0:12 - Number of Chunks
7    #[inline(always)]
8    pub fn numc(&self) -> NUMC_R {
9        NUMC_R::new((self.bits & 0x1fff) as u16)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("VCCCR").field("numc", &self.numc()).finish()
15    }
16}
17/**DSI Host Video Chunks Current Configuration Register
18
19You can [`read`](crate::Reg::read) this register and get [`vcccr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#DSI:VCCCR)*/
22pub struct VCCCRrs;
23impl crate::RegisterSpec for VCCCRrs {
24    type Ux = u32;
25}
26///`read()` method returns [`vcccr::R`](R) reader structure
27impl crate::Readable for VCCCRrs {}
28///`reset()` method sets VCCCR to value 0
29impl crate::Resettable for VCCCRrs {}