d1_pac/usb1/ehci_capability/
hciversion.rs

1#[doc = "Register `hciversion` reader"]
2pub type R = crate::R<HCIVERSION_SPEC>;
3#[doc = "Field `hciversion` reader - This is a 16 bit register containing a BCD encoding of the EHCI revision number suported by this host controller"]
4pub type HCIVERSION_R = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - This is a 16 bit register containing a BCD encoding of the EHCI revision number suported by this host controller"]
7    #[inline(always)]
8    pub fn hciversion(&self) -> HCIVERSION_R {
9        HCIVERSION_R::new(self.bits)
10    }
11}
12#[doc = "EHCI Host Interface Version Number Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hciversion::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct HCIVERSION_SPEC;
14impl crate::RegisterSpec for HCIVERSION_SPEC {
15    type Ux = u16;
16}
17#[doc = "`read()` method returns [`hciversion::R`](R) reader structure"]
18impl crate::Readable for HCIVERSION_SPEC {}
19#[doc = "`reset()` method sets hciversion to value 0"]
20impl crate::Resettable for HCIVERSION_SPEC {
21    const RESET_VALUE: Self::Ux = 0;
22}