atsam3n2a/pmc/
pmc_scsr.rs

1#[doc = "Register `PMC_SCSR` reader"]
2pub type R = crate::R<PmcScsrSpec>;
3#[doc = "Field `PCK0` reader - Programmable Clock 0 Output Status"]
4pub type Pck0R = crate::BitReader;
5#[doc = "Field `PCK1` reader - Programmable Clock 1 Output Status"]
6pub type Pck1R = crate::BitReader;
7#[doc = "Field `PCK2` reader - Programmable Clock 2 Output Status"]
8pub type Pck2R = crate::BitReader;
9impl R {
10    #[doc = "Bit 8 - Programmable Clock 0 Output Status"]
11    #[inline(always)]
12    pub fn pck0(&self) -> Pck0R {
13        Pck0R::new(((self.bits >> 8) & 1) != 0)
14    }
15    #[doc = "Bit 9 - Programmable Clock 1 Output Status"]
16    #[inline(always)]
17    pub fn pck1(&self) -> Pck1R {
18        Pck1R::new(((self.bits >> 9) & 1) != 0)
19    }
20    #[doc = "Bit 10 - Programmable Clock 2 Output Status"]
21    #[inline(always)]
22    pub fn pck2(&self) -> Pck2R {
23        Pck2R::new(((self.bits >> 10) & 1) != 0)
24    }
25}
26#[doc = "System Clock Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pmc_scsr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct PmcScsrSpec;
28impl crate::RegisterSpec for PmcScsrSpec {
29    type Ux = u32;
30}
31#[doc = "`read()` method returns [`pmc_scsr::R`](R) reader structure"]
32impl crate::Readable for PmcScsrSpec {}
33#[doc = "`reset()` method sets PMC_SCSR to value 0x01"]
34impl crate::Resettable for PmcScsrSpec {
35    const RESET_VALUE: u32 = 0x01;
36}