1#[doc = "Register `F3` reader"]
2pub type R = crate::R<F3Spec>;
3#[doc = "Register `F3` writer"]
4pub type W = crate::W<F3Spec>;
5#[doc = "Field `USBF3` reader - Endpoint 3 FIFO register Reading this register unloads one byte from the EP3 OUT FIFO. Writing to this register loads one byte into the EP3 IN FIFO."]
6pub type Usbf3R = crate::FieldReader;
7#[doc = "Field `USBF3` writer - Endpoint 3 FIFO register Reading this register unloads one byte from the EP3 OUT FIFO. Writing to this register loads one byte into the EP3 IN FIFO."]
8pub type Usbf3W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 #[doc = "Bits 0:7 - Endpoint 3 FIFO register Reading this register unloads one byte from the EP3 OUT FIFO. Writing to this register loads one byte into the EP3 IN FIFO."]
11 #[inline(always)]
12 pub fn usbf3(&self) -> Usbf3R {
13 Usbf3R::new((self.bits & 0xff) as u8)
14 }
15}
16impl W {
17 #[doc = "Bits 0:7 - Endpoint 3 FIFO register Reading this register unloads one byte from the EP3 OUT FIFO. Writing to this register loads one byte into the EP3 IN FIFO."]
18 #[inline(always)]
19 pub fn usbf3(&mut self) -> Usbf3W<F3Spec> {
20 Usbf3W::new(self, 0)
21 }
22}
23#[doc = "IN/OUT endpoint 3 FIFO\n\nYou can [`read`](crate::Reg::read) this register and get [`f3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct F3Spec;
25impl crate::RegisterSpec for F3Spec {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`f3::R`](R) reader structure"]
29impl crate::Readable for F3Spec {}
30#[doc = "`write(|w| ..)` method takes [`f3::W`](W) writer structure"]
31impl crate::Writable for F3Spec {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets F3 to value 0"]
37impl crate::Resettable for F3Spec {
38 const RESET_VALUE: u32 = 0;
39}