Skip to main content

mcxa_pac/flexio0/
pin.rs

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