d1_pac/usb1/hci_controller_phy_interface/
phy_status.rs

1#[doc = "Register `phy_status` reader"]
2pub type R = crate::R<PHY_STATUS_SPEC>;
3#[doc = "Field `vc_do` reader - vc_do"]
4pub type VC_DO_R = crate::BitReader;
5#[doc = "Field `bist_done` reader - bist_done"]
6pub type BIST_DONE_R = crate::BitReader;
7#[doc = "Field `bist_error` reader - Bist_error"]
8pub type BIST_ERROR_R = crate::BitReader;
9impl R {
10    #[doc = "Bit 0 - vc_do"]
11    #[inline(always)]
12    pub fn vc_do(&self) -> VC_DO_R {
13        VC_DO_R::new((self.bits & 1) != 0)
14    }
15    #[doc = "Bit 16 - bist_done"]
16    #[inline(always)]
17    pub fn bist_done(&self) -> BIST_DONE_R {
18        BIST_DONE_R::new(((self.bits >> 16) & 1) != 0)
19    }
20    #[doc = "Bit 17 - Bist_error"]
21    #[inline(always)]
22    pub fn bist_error(&self) -> BIST_ERROR_R {
23        BIST_ERROR_R::new(((self.bits >> 17) & 1) != 0)
24    }
25}
26#[doc = "PHY Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`phy_status::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct PHY_STATUS_SPEC;
28impl crate::RegisterSpec for PHY_STATUS_SPEC {
29    type Ux = u32;
30}
31#[doc = "`read()` method returns [`phy_status::R`](R) reader structure"]
32impl crate::Readable for PHY_STATUS_SPEC {}
33#[doc = "`reset()` method sets phy_status to value 0"]
34impl crate::Resettable for PHY_STATUS_SPEC {
35    const RESET_VALUE: Self::Ux = 0;
36}