saml10d15a/pac/
statusb.rs

1#[doc = "Reader of register STATUSB"]
2pub type R = crate::R<u32, super::STATUSB>;
3#[doc = "Reader of field `IDAU_`"]
4pub type IDAU__R = crate::R<bool, bool>;
5#[doc = "Reader of field `DSU_`"]
6pub type DSU__R = crate::R<bool, bool>;
7#[doc = "Reader of field `NVMCTRL_`"]
8pub type NVMCTRL__R = crate::R<bool, bool>;
9#[doc = "Reader of field `DMAC_`"]
10pub type DMAC__R = crate::R<bool, bool>;
11impl R {
12    #[doc = "Bit 0 - IDAU APB Protect Enable"]
13    #[inline(always)]
14    pub fn idau_(&self) -> IDAU__R {
15        IDAU__R::new((self.bits & 0x01) != 0)
16    }
17    #[doc = "Bit 1 - DSU APB Protect Enable"]
18    #[inline(always)]
19    pub fn dsu_(&self) -> DSU__R {
20        DSU__R::new(((self.bits >> 1) & 0x01) != 0)
21    }
22    #[doc = "Bit 2 - NVMCTRL APB Protect Enable"]
23    #[inline(always)]
24    pub fn nvmctrl_(&self) -> NVMCTRL__R {
25        NVMCTRL__R::new(((self.bits >> 2) & 0x01) != 0)
26    }
27    #[doc = "Bit 3 - DMAC APB Protect Enable"]
28    #[inline(always)]
29    pub fn dmac_(&self) -> DMAC__R {
30        DMAC__R::new(((self.bits >> 3) & 0x01) != 0)
31    }
32}