atsamd51p/supc/
bkin.rs

1#[doc = "Register `BKIN` reader"]
2pub type R = crate::R<BkinSpec>;
3#[doc = "Field `BKIN0` reader - Backup Input 0"]
4pub type Bkin0R = crate::BitReader;
5#[doc = "Field `BKIN1` reader - Backup Input 1"]
6pub type Bkin1R = crate::BitReader;
7impl R {
8    #[doc = "Bit 0 - Backup Input 0"]
9    #[inline(always)]
10    pub fn bkin0(&self) -> Bkin0R {
11        Bkin0R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bit 1 - Backup Input 1"]
14    #[inline(always)]
15    pub fn bkin1(&self) -> Bkin1R {
16        Bkin1R::new(((self.bits >> 1) & 1) != 0)
17    }
18}
19#[doc = "Backup Input Control\n\nYou can [`read`](crate::Reg::read) this register and get [`bkin::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct BkinSpec;
21impl crate::RegisterSpec for BkinSpec {
22    type Ux = u32;
23}
24#[doc = "`read()` method returns [`bkin::R`](R) reader structure"]
25impl crate::Readable for BkinSpec {}
26#[doc = "`reset()` method sets BKIN to value 0"]
27impl crate::Resettable for BkinSpec {
28    const RESET_VALUE: u32 = 0;
29}