#[doc = "Register `DMARSET` writer"]
pub type W = crate::W<DmarsetSpec>;
#[doc = "Field `EPRSET0` writer - Control endpoint OUT (DMA cannot be enabled for this endpoint and the EP0 bit must be 0)."]
pub type Eprset0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET1` writer - Control endpoint IN (DMA cannot be enabled for this endpoint and the EP1 bit must be 0)."]
pub type Eprset1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET2` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET3` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET4` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET5` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET6` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET7` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET8` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET9` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET10` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET11` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET12` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET13` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET14` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET15` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET16` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET17` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET18` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset18W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET19` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset19W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET20` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset20W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET21` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset21W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET22` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset22W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET23` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset23W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET24` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset24W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET25` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset25W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET26` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset26W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET27` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset27W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET28` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset28W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET29` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset29W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET30` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset30W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPRSET31` writer - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
pub type Eprset31W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
    #[doc = "Bit 0 - Control endpoint OUT (DMA cannot be enabled for this endpoint and the EP0 bit must be 0)."]
    #[inline(always)]
    pub fn eprset0(&mut self) -> Eprset0W<'_, DmarsetSpec> {
        Eprset0W::new(self, 0)
    }
    #[doc = "Bit 1 - Control endpoint IN (DMA cannot be enabled for this endpoint and the EP1 bit must be 0)."]
    #[inline(always)]
    pub fn eprset1(&mut self) -> Eprset1W<'_, DmarsetSpec> {
        Eprset1W::new(self, 1)
    }
    #[doc = "Bit 2 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset2(&mut self) -> Eprset2W<'_, DmarsetSpec> {
        Eprset2W::new(self, 2)
    }
    #[doc = "Bit 3 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset3(&mut self) -> Eprset3W<'_, DmarsetSpec> {
        Eprset3W::new(self, 3)
    }
    #[doc = "Bit 4 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset4(&mut self) -> Eprset4W<'_, DmarsetSpec> {
        Eprset4W::new(self, 4)
    }
    #[doc = "Bit 5 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset5(&mut self) -> Eprset5W<'_, DmarsetSpec> {
        Eprset5W::new(self, 5)
    }
    #[doc = "Bit 6 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset6(&mut self) -> Eprset6W<'_, DmarsetSpec> {
        Eprset6W::new(self, 6)
    }
    #[doc = "Bit 7 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset7(&mut self) -> Eprset7W<'_, DmarsetSpec> {
        Eprset7W::new(self, 7)
    }
    #[doc = "Bit 8 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset8(&mut self) -> Eprset8W<'_, DmarsetSpec> {
        Eprset8W::new(self, 8)
    }
    #[doc = "Bit 9 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset9(&mut self) -> Eprset9W<'_, DmarsetSpec> {
        Eprset9W::new(self, 9)
    }
    #[doc = "Bit 10 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset10(&mut self) -> Eprset10W<'_, DmarsetSpec> {
        Eprset10W::new(self, 10)
    }
    #[doc = "Bit 11 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset11(&mut self) -> Eprset11W<'_, DmarsetSpec> {
        Eprset11W::new(self, 11)
    }
    #[doc = "Bit 12 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset12(&mut self) -> Eprset12W<'_, DmarsetSpec> {
        Eprset12W::new(self, 12)
    }
    #[doc = "Bit 13 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset13(&mut self) -> Eprset13W<'_, DmarsetSpec> {
        Eprset13W::new(self, 13)
    }
    #[doc = "Bit 14 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset14(&mut self) -> Eprset14W<'_, DmarsetSpec> {
        Eprset14W::new(self, 14)
    }
    #[doc = "Bit 15 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset15(&mut self) -> Eprset15W<'_, DmarsetSpec> {
        Eprset15W::new(self, 15)
    }
    #[doc = "Bit 16 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset16(&mut self) -> Eprset16W<'_, DmarsetSpec> {
        Eprset16W::new(self, 16)
    }
    #[doc = "Bit 17 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset17(&mut self) -> Eprset17W<'_, DmarsetSpec> {
        Eprset17W::new(self, 17)
    }
    #[doc = "Bit 18 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset18(&mut self) -> Eprset18W<'_, DmarsetSpec> {
        Eprset18W::new(self, 18)
    }
    #[doc = "Bit 19 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset19(&mut self) -> Eprset19W<'_, DmarsetSpec> {
        Eprset19W::new(self, 19)
    }
    #[doc = "Bit 20 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset20(&mut self) -> Eprset20W<'_, DmarsetSpec> {
        Eprset20W::new(self, 20)
    }
    #[doc = "Bit 21 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset21(&mut self) -> Eprset21W<'_, DmarsetSpec> {
        Eprset21W::new(self, 21)
    }
    #[doc = "Bit 22 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset22(&mut self) -> Eprset22W<'_, DmarsetSpec> {
        Eprset22W::new(self, 22)
    }
    #[doc = "Bit 23 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset23(&mut self) -> Eprset23W<'_, DmarsetSpec> {
        Eprset23W::new(self, 23)
    }
    #[doc = "Bit 24 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset24(&mut self) -> Eprset24W<'_, DmarsetSpec> {
        Eprset24W::new(self, 24)
    }
    #[doc = "Bit 25 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset25(&mut self) -> Eprset25W<'_, DmarsetSpec> {
        Eprset25W::new(self, 25)
    }
    #[doc = "Bit 26 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset26(&mut self) -> Eprset26W<'_, DmarsetSpec> {
        Eprset26W::new(self, 26)
    }
    #[doc = "Bit 27 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset27(&mut self) -> Eprset27W<'_, DmarsetSpec> {
        Eprset27W::new(self, 27)
    }
    #[doc = "Bit 28 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset28(&mut self) -> Eprset28W<'_, DmarsetSpec> {
        Eprset28W::new(self, 28)
    }
    #[doc = "Bit 29 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset29(&mut self) -> Eprset29W<'_, DmarsetSpec> {
        Eprset29W::new(self, 29)
    }
    #[doc = "Bit 30 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset30(&mut self) -> Eprset30W<'_, DmarsetSpec> {
        Eprset30W::new(self, 30)
    }
    #[doc = "Bit 31 - Set the endpoint xx (2 <= xx <= 31) DMA request. 0 = No effect 1 = Set the corresponding bit in USBDMARSt."]
    #[inline(always)]
    pub fn eprset31(&mut self) -> Eprset31W<'_, DmarsetSpec> {
        Eprset31W::new(self, 31)
    }
}
#[doc = "USB DMA Request Set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmarset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DmarsetSpec;
impl crate::RegisterSpec for DmarsetSpec {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`dmarset::W`](W) writer structure"]
impl crate::Writable for DmarsetSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets DMARSET to value 0"]
impl crate::Resettable for DmarsetSpec {}
