mcxa_pac/sgi0/
sgi_int_status.rs1#[doc = "Register `sgi_int_status` reader"]
2pub type R = crate::R<SgiIntStatusSpec>;
3#[doc = "Field `int_pdone` reader - Interrupt status flag:"]
4pub type IntPdoneR = crate::BitReader;
5#[doc = "Field `intst_rsvd` reader - reserved"]
6pub type IntstRsvdR = crate::FieldReader<u32>;
7impl R {
8 #[doc = "Bit 0 - Interrupt status flag:"]
9 #[inline(always)]
10 pub fn int_pdone(&self) -> IntPdoneR {
11 IntPdoneR::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bits 1:31 - reserved"]
14 #[inline(always)]
15 pub fn intst_rsvd(&self) -> IntstRsvdR {
16 IntstRsvdR::new((self.bits >> 1) & 0x7fff_ffff)
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("sgi_int_status")
23 .field("int_pdone", &self.int_pdone())
24 .field("intst_rsvd", &self.intst_rsvd())
25 .finish()
26 }
27}
28#[doc = "Interrupt status\n\nYou can [`read`](crate::Reg::read) this register and get [`sgi_int_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct SgiIntStatusSpec;
30impl crate::RegisterSpec for SgiIntStatusSpec {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`sgi_int_status::R`](R) reader structure"]
34impl crate::Readable for SgiIntStatusSpec {}
35#[doc = "`reset()` method sets sgi_int_status to value 0"]
36impl crate::Resettable for SgiIntStatusSpec {}