mcxa_pac/dma0/
mp_int.rs

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