Skip to main content

mcxa_pac/i3c0/
srdatab.rs

1#[doc = "Register `SRDATAB` reader"]
2pub type R = crate::R<SrdatabSpec>;
3#[doc = "Field `DATA0` reader - Data 0"]
4pub type Data0R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - Data 0"]
7    #[inline(always)]
8    pub fn data0(&self) -> Data0R {
9        Data0R::new((self.bits & 0xff) as u8)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("SRDATAB").field("data0", &self.data0()).finish()
16    }
17}
18#[doc = "Target Read Data Byte\n\nYou can [`read`](crate::Reg::read) this register and get [`srdatab::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct SrdatabSpec;
20impl crate::RegisterSpec for SrdatabSpec {
21    type Ux = u32;
22}
23#[doc = "`read()` method returns [`srdatab::R`](R) reader structure"]
24impl crate::Readable for SrdatabSpec {}
25#[doc = "`reset()` method sets SRDATAB to value 0"]
26impl crate::Resettable for SrdatabSpec {}