atsamd51p/rstc/
bkupexit.rs1#[doc = "Register `BKUPEXIT` reader"]
2pub type R = crate::R<BkupexitSpec>;
3#[doc = "Field `RTC` reader - Real Timer Counter Interrupt"]
4pub type RtcR = crate::BitReader;
5#[doc = "Field `BBPS` reader - Battery Backup Power Switch"]
6pub type BbpsR = crate::BitReader;
7#[doc = "Field `HIB` reader - Hibernate"]
8pub type HibR = crate::BitReader;
9impl R {
10 #[doc = "Bit 1 - Real Timer Counter Interrupt"]
11 #[inline(always)]
12 pub fn rtc(&self) -> RtcR {
13 RtcR::new(((self.bits >> 1) & 1) != 0)
14 }
15 #[doc = "Bit 2 - Battery Backup Power Switch"]
16 #[inline(always)]
17 pub fn bbps(&self) -> BbpsR {
18 BbpsR::new(((self.bits >> 2) & 1) != 0)
19 }
20 #[doc = "Bit 7 - Hibernate"]
21 #[inline(always)]
22 pub fn hib(&self) -> HibR {
23 HibR::new(((self.bits >> 7) & 1) != 0)
24 }
25}
26#[doc = "Backup Exit Source\n\nYou can [`read`](crate::Reg::read) this register and get [`bkupexit::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct BkupexitSpec;
28impl crate::RegisterSpec for BkupexitSpec {
29 type Ux = u8;
30}
31#[doc = "`read()` method returns [`bkupexit::R`](R) reader structure"]
32impl crate::Readable for BkupexitSpec {}
33#[doc = "`reset()` method sets BKUPEXIT to value 0"]
34impl crate::Resettable for BkupexitSpec {
35 const RESET_VALUE: u8 = 0;
36}