mcxa_pac/lpuart0/
dataro.rs1#[doc = "Register `DATARO` reader"]
2pub type R = crate::R<DataroSpec>;
3#[doc = "Field `DATA` reader - Receive Data"]
4pub type DataR = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - Receive Data"]
7 #[inline(always)]
8 pub fn data(&self) -> DataR {
9 DataR::new((self.bits & 0xffff) as u16)
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("DATARO").field("data", &self.data()).finish()
16 }
17}
18#[doc = "Data Read-Only\n\nYou can [`read`](crate::Reg::read) this register and get [`dataro::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct DataroSpec;
20impl crate::RegisterSpec for DataroSpec {
21 type Ux = u32;
22}
23#[doc = "`read()` method returns [`dataro::R`](R) reader structure"]
24impl crate::Readable for DataroSpec {}
25#[doc = "`reset()` method sets DATARO to value 0x1000"]
26impl crate::Resettable for DataroSpec {
27 const RESET_VALUE: u32 = 0x1000;
28}