stm32f4_staging/stm32f413/quadspi/
dlr.rs

1///Register `DLR` reader
2pub type R = crate::R<DLRrs>;
3///Register `DLR` writer
4pub type W = crate::W<DLRrs>;
5///Field `DL` reader - Data length
6pub type DL_R = crate::FieldReader<u32>;
7///Field `DL` writer - Data length
8pub type DL_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
9impl R {
10    ///Bits 0:31 - Data length
11    #[inline(always)]
12    pub fn dl(&self) -> DL_R {
13        DL_R::new(self.bits)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("DLR").field("dl", &self.dl()).finish()
19    }
20}
21impl W {
22    ///Bits 0:31 - Data length
23    #[inline(always)]
24    pub fn dl(&mut self) -> DL_W<DLRrs> {
25        DL_W::new(self, 0)
26    }
27}
28/**data length register
29
30You can [`read`](crate::Reg::read) this register and get [`dlr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dlr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F413.html#QUADSPI:DLR)*/
33pub struct DLRrs;
34impl crate::RegisterSpec for DLRrs {
35    type Ux = u32;
36}
37///`read()` method returns [`dlr::R`](R) reader structure
38impl crate::Readable for DLRrs {}
39///`write(|w| ..)` method takes [`dlr::W`](W) writer structure
40impl crate::Writable for DLRrs {
41    type Safety = crate::Safe;
42}
43///`reset()` method sets DLR to value 0
44impl crate::Resettable for DLRrs {}