moondancer_pac/generated/usb0_ep_in/
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` writer - byte field"]
6pub type BYTE_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
7impl W {
8 #[doc = "Bits 0:7 - byte field"]
9 #[inline(always)]
10 pub fn byte(&mut self) -> BYTE_W<DATA_SPEC> {
11 BYTE_W::new(self, 0)
12 }
13}
14#[doc = "Data register Each write enqueues a byte to be transmitted; gradually building a single packet to be transmitted. This queue should only ever contain a single packet; it is the software's responsibility to handle breaking requests down into packets.\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)."]
15pub struct DATA_SPEC;
16impl crate::RegisterSpec for DATA_SPEC {
17 type Ux = u8;
18}
19#[doc = "`read()` method returns [`data::R`](R) reader structure"]
20impl crate::Readable for DATA_SPEC {}
21#[doc = "`write(|w| ..)` method takes [`data::W`](W) writer structure"]
22impl crate::Writable for DATA_SPEC {
23 type Safety = crate::Unsafe;
24 const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
25 const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26}
27#[doc = "`reset()` method sets data to value 0"]
28impl crate::Resettable for DATA_SPEC {
29 const RESET_VALUE: u8 = 0;
30}