1#[doc = "Register `SR` reader"]
2pub type R = crate::R<SrSpec>;
3#[doc = "Field `ENABLE` reader - ICM Controller Enable Register"]
4pub type EnableR = crate::BitReader;
5#[doc = "Field `RAWRMDIS` reader - RAW Region Monitoring Disabled Status"]
6pub type RawrmdisR = crate::FieldReader;
7#[doc = "Field `RMDIS` reader - Region Monitoring Disabled Status"]
8pub type RmdisR = crate::FieldReader;
9impl R {
10 #[doc = "Bit 0 - ICM Controller Enable Register"]
11 #[inline(always)]
12 pub fn enable(&self) -> EnableR {
13 EnableR::new((self.bits & 1) != 0)
14 }
15 #[doc = "Bits 8:11 - RAW Region Monitoring Disabled Status"]
16 #[inline(always)]
17 pub fn rawrmdis(&self) -> RawrmdisR {
18 RawrmdisR::new(((self.bits >> 8) & 0x0f) as u8)
19 }
20 #[doc = "Bits 12:15 - Region Monitoring Disabled Status"]
21 #[inline(always)]
22 pub fn rmdis(&self) -> RmdisR {
23 RmdisR::new(((self.bits >> 12) & 0x0f) as u8)
24 }
25}
26#[doc = "Status\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct SrSpec;
28impl crate::RegisterSpec for SrSpec {
29 type Ux = u32;
30}
31#[doc = "`read()` method returns [`sr::R`](R) reader structure"]
32impl crate::Readable for SrSpec {}
33#[doc = "`reset()` method sets SR to value 0"]
34impl crate::Resettable for SrSpec {
35 const RESET_VALUE: u32 = 0;
36}