atsamd51g/icm/
isr.rs
1#[doc = "Register `ISR` reader"]
2pub type R = crate::R<IsrSpec>;
3#[doc = "Field `RHC` reader - Region Hash Completed"]
4pub type RhcR = crate::FieldReader;
5#[doc = "Field `RDM` reader - Region Digest Mismatch"]
6pub type RdmR = crate::FieldReader;
7#[doc = "Field `RBE` reader - Region Bus Error"]
8pub type RbeR = crate::FieldReader;
9#[doc = "Field `RWC` reader - Region Wrap Condition Detected"]
10pub type RwcR = crate::FieldReader;
11#[doc = "Field `REC` reader - Region End bit Condition Detected"]
12pub type RecR = crate::FieldReader;
13#[doc = "Field `RSU` reader - Region Status Updated Detected"]
14pub type RsuR = crate::FieldReader;
15#[doc = "Field `URAD` reader - Undefined Register Access Detection Status"]
16pub type UradR = crate::BitReader;
17impl R {
18 #[doc = "Bits 0:3 - Region Hash Completed"]
19 #[inline(always)]
20 pub fn rhc(&self) -> RhcR {
21 RhcR::new((self.bits & 0x0f) as u8)
22 }
23 #[doc = "Bits 4:7 - Region Digest Mismatch"]
24 #[inline(always)]
25 pub fn rdm(&self) -> RdmR {
26 RdmR::new(((self.bits >> 4) & 0x0f) as u8)
27 }
28 #[doc = "Bits 8:11 - Region Bus Error"]
29 #[inline(always)]
30 pub fn rbe(&self) -> RbeR {
31 RbeR::new(((self.bits >> 8) & 0x0f) as u8)
32 }
33 #[doc = "Bits 12:15 - Region Wrap Condition Detected"]
34 #[inline(always)]
35 pub fn rwc(&self) -> RwcR {
36 RwcR::new(((self.bits >> 12) & 0x0f) as u8)
37 }
38 #[doc = "Bits 16:19 - Region End bit Condition Detected"]
39 #[inline(always)]
40 pub fn rec(&self) -> RecR {
41 RecR::new(((self.bits >> 16) & 0x0f) as u8)
42 }
43 #[doc = "Bits 20:23 - Region Status Updated Detected"]
44 #[inline(always)]
45 pub fn rsu(&self) -> RsuR {
46 RsuR::new(((self.bits >> 20) & 0x0f) as u8)
47 }
48 #[doc = "Bit 24 - Undefined Register Access Detection Status"]
49 #[inline(always)]
50 pub fn urad(&self) -> UradR {
51 UradR::new(((self.bits >> 24) & 1) != 0)
52 }
53}
54#[doc = "Interrupt Status\n\nYou can [`read`](crate::Reg::read) this register and get [`isr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
55pub struct IsrSpec;
56impl crate::RegisterSpec for IsrSpec {
57 type Ux = u32;
58}
59#[doc = "`read()` method returns [`isr::R`](R) reader structure"]
60impl crate::Readable for IsrSpec {}
61#[doc = "`reset()` method sets ISR to value 0"]
62impl crate::Resettable for IsrSpec {
63 const RESET_VALUE: u32 = 0;
64}