1#[doc = "Register `DPUSR0R` reader"]
2pub struct R(crate::R<DPUSR0R_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DPUSR0R_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DPUSR0R_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DPUSR0R_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `DOVCAHM` reader - OVRCURA InputIndicates OVRCURA input signal on the HS side of USB port."]
17pub type DOVCAHM_R = crate::BitReader<bool>;
18#[doc = "Field `DOVCBHM` reader - OVRCURB InputIndicates OVRCURB input signal on the HS side of USB port."]
19pub type DOVCBHM_R = crate::BitReader<bool>;
20#[doc = "Field `DVBSTSHM` reader - VBUS InputIndicates VBUS input signal on the HS side of USB port."]
21pub type DVBSTSHM_R = crate::BitReader<bool>;
22impl R {
23 #[doc = "Bit 20 - OVRCURA InputIndicates OVRCURA input signal on the HS side of USB port."]
24 #[inline(always)]
25 pub fn dovcahm(&self) -> DOVCAHM_R {
26 DOVCAHM_R::new(((self.bits >> 20) & 1) != 0)
27 }
28 #[doc = "Bit 21 - OVRCURB InputIndicates OVRCURB input signal on the HS side of USB port."]
29 #[inline(always)]
30 pub fn dovcbhm(&self) -> DOVCBHM_R {
31 DOVCBHM_R::new(((self.bits >> 21) & 1) != 0)
32 }
33 #[doc = "Bit 23 - VBUS InputIndicates VBUS input signal on the HS side of USB port."]
34 #[inline(always)]
35 pub fn dvbstshm(&self) -> DVBSTSHM_R {
36 DVBSTSHM_R::new(((self.bits >> 23) & 1) != 0)
37 }
38}
39#[doc = "Deep Standby USB Transceiver Control/Pin Monitor Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dpusr0r](index.html) module"]
40pub struct DPUSR0R_SPEC;
41impl crate::RegisterSpec for DPUSR0R_SPEC {
42 type Ux = u32;
43}
44#[doc = "`read()` method returns [dpusr0r::R](R) reader structure"]
45impl crate::Readable for DPUSR0R_SPEC {
46 type Reader = R;
47}
48#[doc = "`reset()` method sets DPUSR0R to value 0"]
49impl crate::Resettable for DPUSR0R_SPEC {
50 const RESET_VALUE: Self::Ux = 0;
51}