max78000_pac/owm/
data.rs

1#[doc = "Register `DATA` reader"]
2pub type R = crate::R<DataSpec>;
3#[doc = "Register `DATA` writer"]
4pub type W = crate::W<DataSpec>;
5#[doc = "Field `tx_rx` reader - TX/RX Buffer."]
6pub type TxRxR = crate::FieldReader;
7#[doc = "Field `tx_rx` writer - TX/RX Buffer."]
8pub type TxRxW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10    #[doc = "Bits 0:7 - TX/RX Buffer."]
11    #[inline(always)]
12    pub fn tx_rx(&self) -> TxRxR {
13        TxRxR::new((self.bits & 0xff) as u8)
14    }
15}
16impl W {
17    #[doc = "Bits 0:7 - TX/RX Buffer."]
18    #[inline(always)]
19    pub fn tx_rx(&mut self) -> TxRxW<DataSpec> {
20        TxRxW::new(self, 0)
21    }
22}
23#[doc = "1-Wire Master Data Buffer.\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 DataSpec;
25impl crate::RegisterSpec for DataSpec {
26    type Ux = u32;
27}
28#[doc = "`read()` method returns [`data::R`](R) reader structure"]
29impl crate::Readable for DataSpec {}
30#[doc = "`write(|w| ..)` method takes [`data::W`](W) writer structure"]
31impl crate::Writable for DataSpec {
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 DATA to value 0"]
37impl crate::Resettable for DataSpec {
38    const RESET_VALUE: u32 = 0;
39}