xmc4500/usb0/
daint.rs

1#[doc = "Register `DAINT` reader"]
2pub type R = crate::R<DAINT_SPEC>;
3#[doc = "Field `InEpInt` reader - IN Endpoint Interrupt Bits"]
4pub type IN_EP_INT_R = crate::FieldReader<u16>;
5#[doc = "Field `OutEPInt` reader - OUT Endpoint Interrupt Bits"]
6pub type OUT_EPINT_R = crate::FieldReader<u16>;
7impl R {
8    #[doc = "Bits 0:15 - IN Endpoint Interrupt Bits"]
9    #[inline(always)]
10    pub fn in_ep_int(&self) -> IN_EP_INT_R {
11        IN_EP_INT_R::new((self.bits & 0xffff) as u16)
12    }
13    #[doc = "Bits 16:31 - OUT Endpoint Interrupt Bits"]
14    #[inline(always)]
15    pub fn out_epint(&self) -> OUT_EPINT_R {
16        OUT_EPINT_R::new(((self.bits >> 16) & 0xffff) as u16)
17    }
18}
19#[doc = "Device All Endpoints Interrupt Register\n\nYou can [`read`](crate::Reg::read) this register and get [`daint::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct DAINT_SPEC;
21impl crate::RegisterSpec for DAINT_SPEC {
22    type Ux = u32;
23}
24#[doc = "`read()` method returns [`daint::R`](R) reader structure"]
25impl crate::Readable for DAINT_SPEC {}
26#[doc = "`reset()` method sets DAINT to value 0"]
27impl crate::Resettable for DAINT_SPEC {
28    const RESET_VALUE: u32 = 0;
29}