mcxa_pac/lpuart0/
param.rs1#[doc = "Register `PARAM` reader"]
2pub type R = crate::R<ParamSpec>;
3#[doc = "Field `TXFIFO` reader - Transmit FIFO Size"]
4pub type TxfifoR = crate::FieldReader;
5#[doc = "Field `RXFIFO` reader - Receive FIFO Size"]
6pub type RxfifoR = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:7 - Transmit FIFO Size"]
9 #[inline(always)]
10 pub fn txfifo(&self) -> TxfifoR {
11 TxfifoR::new((self.bits & 0xff) as u8)
12 }
13 #[doc = "Bits 8:15 - Receive FIFO Size"]
14 #[inline(always)]
15 pub fn rxfifo(&self) -> RxfifoR {
16 RxfifoR::new(((self.bits >> 8) & 0xff) as u8)
17 }
18}
19#[cfg(feature = "debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("PARAM")
23 .field("txfifo", &self.txfifo())
24 .field("rxfifo", &self.rxfifo())
25 .finish()
26 }
27}
28#[doc = "Parameter\n\nYou can [`read`](crate::Reg::read) this register and get [`param::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct ParamSpec;
30impl crate::RegisterSpec for ParamSpec {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`param::R`](R) reader structure"]
34impl crate::Readable for ParamSpec {}
35#[doc = "`reset()` method sets PARAM to value 0x0202"]
36impl crate::Resettable for ParamSpec {
37 const RESET_VALUE: u32 = 0x0202;
38}