atsamd51g/sdhc0/
hcvr.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[doc = "Register `HCVR` reader"]
pub type R = crate::R<HcvrSpec>;
#[doc = "Field `SVER` reader - Spec Version"]
pub type SverR = crate::FieldReader;
#[doc = "Field `VVER` reader - Vendor Version"]
pub type VverR = crate::FieldReader;
impl R {
    #[doc = "Bits 0:7 - Spec Version"]
    #[inline(always)]
    pub fn sver(&self) -> SverR {
        SverR::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 8:15 - Vendor Version"]
    #[inline(always)]
    pub fn vver(&self) -> VverR {
        VverR::new(((self.bits >> 8) & 0xff) as u8)
    }
}
#[doc = "Host Controller Version\n\nYou can [`read`](crate::Reg::read) this register and get [`hcvr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct HcvrSpec;
impl crate::RegisterSpec for HcvrSpec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`hcvr::R`](R) reader structure"]
impl crate::Readable for HcvrSpec {}
#[doc = "`reset()` method sets HCVR to value 0x1802"]
impl crate::Resettable for HcvrSpec {
    const RESET_VALUE: u16 = 0x1802;
}