moondancer_pac/generated/spi0/
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 `rx` reader - rx field"]
6pub type RX_R = crate::FieldReader<u32>;
7#[doc = "Field `tx` writer - tx field"]
8pub type TX_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 #[doc = "Bits 0:31 - rx field"]
11 #[inline(always)]
12 pub fn rx(&self) -> RX_R {
13 RX_R::new((self.bits & 0xffff_ffff) as u32)
14 }
15}
16impl W {
17 #[doc = "Bits 32:63 - tx field"]
18 #[inline(always)]
19 pub fn tx(&mut self) -> TX_W<DATA_SPEC> {
20 TX_W::new(self, 32)
21 }
22}
23#[doc = "Data register rx : Read the next byte in the RX FIFO tx : Write the given byte to the TX FIFO\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)."]
24pub struct DATA_SPEC;
25impl crate::RegisterSpec for DATA_SPEC {
26 type Ux = u64;
27}
28#[doc = "`read()` method returns [`data::R`](R) reader structure"]
29impl crate::Readable for DATA_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`data::W`](W) writer structure"]
31impl crate::Writable for DATA_SPEC {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u64 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u64 = 0;
35}
36#[doc = "`reset()` method sets data to value 0"]
37impl crate::Resettable for DATA_SPEC {
38 const RESET_VALUE: u64 = 0;
39}