mcxa_pac/i3c0/
mrdatab.rs

1#[doc = "Register `MRDATAB` reader"]
2pub type R = crate::R<MrdatabSpec>;
3#[doc = "Field `VALUE` reader - Value"]
4pub type ValueR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - Value"]
7    #[inline(always)]
8    pub fn value(&self) -> ValueR {
9        ValueR::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("MRDATAB").field("value", &self.value()).finish()
16    }
17}
18#[doc = "Controller Read Data Byte\n\nYou can [`read`](crate::Reg::read) this register and get [`mrdatab::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct MrdatabSpec;
20impl crate::RegisterSpec for MrdatabSpec {
21    type Ux = u32;
22}
23#[doc = "`read()` method returns [`mrdatab::R`](R) reader structure"]
24impl crate::Readable for MrdatabSpec {}
25#[doc = "`reset()` method sets MRDATAB to value 0"]
26impl crate::Resettable for MrdatabSpec {}