corstone300_pac/isram0mpc/
int_stat.rs1#[doc = "Register `INT_STAT` reader"]
6pub struct R(crate::R<INT_STAT_SPEC>);
7impl core::ops::Deref for R {
8 type Target = crate::R<INT_STAT_SPEC>;
9 #[inline(always)]
10 fn deref(&self) -> &Self::Target {
11 &self.0
12 }
13}
14impl From<crate::R<INT_STAT_SPEC>> for R {
15 #[inline(always)]
16 fn from(reader: crate::R<INT_STAT_SPEC>) -> Self {
17 R(reader)
18 }
19}
20#[doc = "Field `mpc_irq` reader - mpc_irq triggered"]
21pub type MPC_IRQ_R = crate::BitReader<bool>;
22impl R {
23 #[doc = "Bit 0 - mpc_irq triggered"]
24 #[inline(always)]
25 pub fn mpc_irq(&self) -> MPC_IRQ_R {
26 MPC_IRQ_R::new((self.bits & 1) != 0)
27 }
28}
29#[doc = "Interrupt state\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [int_stat](index.html) module"]
30pub struct INT_STAT_SPEC;
31impl crate::RegisterSpec for INT_STAT_SPEC {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [int_stat::R](R) reader structure"]
35impl crate::Readable for INT_STAT_SPEC {
36 type Reader = R;
37}
38#[doc = "`reset()` method sets INT_STAT to value 0"]
39impl crate::Resettable for INT_STAT_SPEC {
40 #[inline(always)]
41 fn reset_value() -> Self::Ux {
42 0
43 }
44}