stm32f4_staging/stm32f401/otg_fs_global/
grxstsr_host.rs1pub type R = crate::R<GRXSTSR_HOSTrs>;
3pub type CHNUM_R = crate::FieldReader;
5pub type BCNT_R = crate::FieldReader<u16>;
7pub type DPID_R = crate::FieldReader;
9pub type PKTSTS_R = crate::FieldReader;
11impl R {
12    #[inline(always)]
14    pub fn chnum(&self) -> CHNUM_R {
15        CHNUM_R::new((self.bits & 0x0f) as u8)
16    }
17    #[inline(always)]
19    pub fn bcnt(&self) -> BCNT_R {
20        BCNT_R::new(((self.bits >> 4) & 0x07ff) as u16)
21    }
22    #[inline(always)]
24    pub fn dpid(&self) -> DPID_R {
25        DPID_R::new(((self.bits >> 15) & 3) as u8)
26    }
27    #[inline(always)]
29    pub fn pktsts(&self) -> PKTSTS_R {
30        PKTSTS_R::new(((self.bits >> 17) & 0x0f) as u8)
31    }
32}
33impl core::fmt::Debug for R {
34    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
35        f.debug_struct("GRXSTSR_Host")
36            .field("chnum", &self.chnum())
37            .field("bcnt", &self.bcnt())
38            .field("dpid", &self.dpid())
39            .field("pktsts", &self.pktsts())
40            .finish()
41    }
42}
43pub struct GRXSTSR_HOSTrs;
49impl crate::RegisterSpec for GRXSTSR_HOSTrs {
50    type Ux = u32;
51}
52impl crate::Readable for GRXSTSR_HOSTrs {}
54impl crate::Resettable for GRXSTSR_HOSTrs {}