1#[doc = "Register `BUFFIFO` reader"]
2pub type R = crate::R<BUFFIFO_SPEC>;
3#[doc = "Register `BUFFIFO` writer"]
4pub type W = crate::W<BUFFIFO_SPEC>;
5#[doc = "Field `BUFFIFO` reader - CPU write and read transmit data by FIFO. This register points to the current Data FIFO ."]
6pub type BUFFIFO_R = crate::FieldReader<u32>;
7#[doc = "Field `BUFFIFO` writer - CPU write and read transmit data by FIFO. This register points to the current Data FIFO ."]
8pub type BUFFIFO_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10#[doc = "Bits 0:31 - CPU write and read transmit data by FIFO. This register points to the current Data FIFO ."]
11 #[inline(always)]
12pub fn buffifo(&self) -> BUFFIFO_R {
13 BUFFIFO_R::new(self.bits)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("BUFFIFO")
20 .field("buffifo", &self.buffifo())
21 .finish()
22 }
23}
24impl W {
25#[doc = "Bits 0:31 - CPU write and read transmit data by FIFO. This register points to the current Data FIFO ."]
26 #[inline(always)]
27pub fn buffifo(&mut self) -> BUFFIFO_W<BUFFIFO_SPEC> {
28 BUFFIFO_W::new(self, 0)
29 }
30}
31#[doc = "CPU write and read transmit data by FIFO\n\nYou can [`read`](crate::Reg::read) this register and get [`buffifo::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`buffifo::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct BUFFIFO_SPEC;
33impl crate::RegisterSpec for BUFFIFO_SPEC {
34type Ux = u32;
35}
36#[doc = "`read()` method returns [`buffifo::R`](R) reader structure"]
37impl crate::Readable for BUFFIFO_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`buffifo::W`](W) writer structure"]
39impl crate::Writable for BUFFIFO_SPEC {
40type Safety = crate::Unsafe;
41const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
42const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43}
44#[doc = "`reset()` method sets BUFFIFO to value 0"]
45impl crate::Resettable for BUFFIFO_SPEC {
46const RESET_VALUE: u32 = 0;
47}