1#[doc = "Register `FDR7` reader"]
2pub type R = crate::R<Fdr7Spec>;
3#[doc = "Register `FDR7` writer"]
4pub type W = crate::W<Fdr7Spec>;
5#[doc = "Field `FIFO_DATA` reader - FIFO Data Value"]
6pub type FifoDataR = crate::FieldReader;
7#[doc = "Field `FIFO_DATA` writer - FIFO Data Value"]
8pub type FifoDataW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 #[doc = "Bits 0:7 - FIFO Data Value"]
11 #[inline(always)]
12 pub fn fifo_data(&self) -> FifoDataR {
13 FifoDataR::new((self.bits & 0xff) as u8)
14 }
15}
16impl W {
17 #[doc = "Bits 0:7 - FIFO Data Value"]
18 #[inline(always)]
19 #[must_use]
20 pub fn fifo_data(&mut self) -> FifoDataW<Fdr7Spec> {
21 FifoDataW::new(self, 0)
22 }
23}
24#[doc = "Endpoint FIFO Data Register 7\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fdr7::R`](R). You can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fdr7::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
25pub struct Fdr7Spec;
26impl crate::RegisterSpec for Fdr7Spec {
27 type Ux = u32;
28}
29#[doc = "`read()` method returns [`fdr7::R`](R) reader structure"]
30impl crate::Readable for Fdr7Spec {}
31#[doc = "`write(|w| ..)` method takes [`fdr7::W`](W) writer structure"]
32impl crate::Writable for Fdr7Spec {
33 type Safety = crate::Unsafe;
34 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
36}