1#[doc = "Register `FPR` reader"]
2pub type R = crate::R<FprSpec>;
3#[doc = "Field `FIFO_RPT` reader - FIFO Read Pointer"]
4pub type FifoRptR = crate::FieldReader;
5#[doc = "Field `FIFO_WPT` reader - FIFO Write Pointer"]
6pub type FifoWptR = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:3 - FIFO Read Pointer"]
9 #[inline(always)]
10 pub fn fifo_rpt(&self) -> FifoRptR {
11 FifoRptR::new((self.bits & 0x0f) as u8)
12 }
13 #[doc = "Bits 16:19 - FIFO Write Pointer"]
14 #[inline(always)]
15 pub fn fifo_wpt(&self) -> FifoWptR {
16 FifoWptR::new(((self.bits >> 16) & 0x0f) as u8)
17 }
18}
19#[cfg(feature = "debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("FPR")
23 .field("fifo_rpt", &self.fifo_rpt())
24 .field("fifo_wpt", &self.fifo_wpt())
25 .finish()
26 }
27}
28#[doc = "DAC FIFO Pointer\n\nYou can [`read`](crate::Reg::read) this register and get [`fpr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct FprSpec;
30impl crate::RegisterSpec for FprSpec {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`fpr::R`](R) reader structure"]
34impl crate::Readable for FprSpec {}
35#[doc = "`reset()` method sets FPR to value 0"]
36impl crate::Resettable for FprSpec {}