mcxa_pac/lpi2c0/
param.rs

1#[doc = "Register `PARAM` reader"]
2pub type R = crate::R<ParamSpec>;
3#[doc = "Field `MTXFIFO` reader - Controller Transmit FIFO Size"]
4pub type MtxfifoR = crate::FieldReader;
5#[doc = "Field `MRXFIFO` reader - Controller Receive FIFO Size"]
6pub type MrxfifoR = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:3 - Controller Transmit FIFO Size"]
9    #[inline(always)]
10    pub fn mtxfifo(&self) -> MtxfifoR {
11        MtxfifoR::new((self.bits & 0x0f) as u8)
12    }
13    #[doc = "Bits 8:11 - Controller Receive FIFO Size"]
14    #[inline(always)]
15    pub fn mrxfifo(&self) -> MrxfifoR {
16        MrxfifoR::new(((self.bits >> 8) & 0x0f) 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("mtxfifo", &self.mtxfifo())
24            .field("mrxfifo", &self.mrxfifo())
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}