atsamd51p/sdhc0/
apsr.rs

1#[doc = "Register `APSR` reader"]
2pub type R = crate::R<ApsrSpec>;
3#[doc = "Field `HDATLL` reader - High Line Level"]
4pub type HdatllR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:3 - High Line Level"]
7    #[inline(always)]
8    pub fn hdatll(&self) -> HdatllR {
9        HdatllR::new((self.bits & 0x0f) as u8)
10    }
11}
12#[doc = "Additional Present State Register\n\nYou can [`read`](crate::Reg::read) this register and get [`apsr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct ApsrSpec;
14impl crate::RegisterSpec for ApsrSpec {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`apsr::R`](R) reader structure"]
18impl crate::Readable for ApsrSpec {}
19#[doc = "`reset()` method sets APSR to value 0x0f"]
20impl crate::Resettable for ApsrSpec {
21    const RESET_VALUE: u32 = 0x0f;
22}