moondancer_pac/generated/usb1_ep_control/
data.rs1#[doc = "Register `data` reader"]
2pub type R = crate::R<DATA_SPEC>;
3#[doc = "Register `data` writer"]
4pub type W = crate::W<DATA_SPEC>;
5#[doc = "Field `byte` reader - byte field"]
6pub type BYTE_R = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:7 - byte field"]
9 #[inline(always)]
10 pub fn byte(&self) -> BYTE_R {
11 BYTE_R::new(self.bits)
12 }
13}
14impl W {}
15#[doc = "Data register A FIFO that returns the bytes from the most recently captured SETUP packet. Reading a byte from this register advances the FIFO. The first eight bytes read from this contain the core SETUP packet.\n\nYou can [`read`](crate::Reg::read) this register and get [`data::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`data::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
16pub struct DATA_SPEC;
17impl crate::RegisterSpec for DATA_SPEC {
18 type Ux = u8;
19}
20#[doc = "`read()` method returns [`data::R`](R) reader structure"]
21impl crate::Readable for DATA_SPEC {}
22#[doc = "`write(|w| ..)` method takes [`data::W`](W) writer structure"]
23impl crate::Writable for DATA_SPEC {
24 type Safety = crate::Unsafe;
25 const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26 const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
27}
28#[doc = "`reset()` method sets data to value 0"]
29impl crate::Resettable for DATA_SPEC {
30 const RESET_VALUE: u8 = 0;
31}