1#[doc = "Reader of register SR"]
2pub type R = crate::R<u32, super::SR>;
3#[doc = "Reader of field `ENABLE`"]
4pub type ENABLE_R = crate::R<bool, bool>;
5#[doc = "Reader of field `RAWRMDIS`"]
6pub type RAWRMDIS_R = crate::R<u8, u8>;
7#[doc = "Reader of field `RMDIS`"]
8pub type RMDIS_R = crate::R<u8, u8>;
9impl R {
10 #[doc = "Bit 0 - ICM Controller Enable Register"]
11 #[inline(always)]
12 pub fn enable(&self) -> ENABLE_R {
13 ENABLE_R::new((self.bits & 0x01) != 0)
14 }
15 #[doc = "Bits 8:11 - RAW Region Monitoring Disabled Status"]
16 #[inline(always)]
17 pub fn rawrmdis(&self) -> RAWRMDIS_R {
18 RAWRMDIS_R::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) -> RMDIS_R {
23 RMDIS_R::new(((self.bits >> 12) & 0x0f) as u8)
24 }
25}