atsamd51g/cmcc/
sr.rs
1#[doc = "Register `SR` reader"]
2pub type R = crate::R<SrSpec>;
3#[doc = "Field `CSTS` reader - Cache Controller Status"]
4pub type CstsR = crate::BitReader;
5impl R {
6 #[doc = "Bit 0 - Cache Controller Status"]
7 #[inline(always)]
8 pub fn csts(&self) -> CstsR {
9 CstsR::new((self.bits & 1) != 0)
10 }
11}
12#[doc = "Cache Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct SrSpec;
14impl crate::RegisterSpec for SrSpec {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`sr::R`](R) reader structure"]
18impl crate::Readable for SrSpec {}
19#[doc = "`reset()` method sets SR to value 0"]
20impl crate::Resettable for SrSpec {
21 const RESET_VALUE: u32 = 0;
22}