mcxa_pac/pkc0/
pkc_int_status.rs

1#[doc = "Register `PKC_INT_STATUS` reader"]
2pub type R = crate::R<PkcIntStatusSpec>;
3#[doc = "Field `INT_PDONE` reader - End-of-computation status flag"]
4pub type IntPdoneR = crate::BitReader;
5impl R {
6    #[doc = "Bit 0 - End-of-computation status flag"]
7    #[inline(always)]
8    pub fn int_pdone(&self) -> IntPdoneR {
9        IntPdoneR::new((self.bits & 1) != 0)
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("PKC_INT_STATUS")
16            .field("int_pdone", &self.int_pdone())
17            .finish()
18    }
19}
20#[doc = "Interrupt status\n\nYou can [`read`](crate::Reg::read) this register and get [`pkc_int_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct PkcIntStatusSpec;
22impl crate::RegisterSpec for PkcIntStatusSpec {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`pkc_int_status::R`](R) reader structure"]
26impl crate::Readable for PkcIntStatusSpec {}
27#[doc = "`reset()` method sets PKC_INT_STATUS to value 0"]
28impl crate::Resettable for PkcIntStatusSpec {}