#[doc = "Register `EPDMADIS` writer"]
pub type W = crate::W<EpdmadisSpec>;
#[doc = "Field `EP_DMA_DIS0` writer - Control endpoint OUT (DMA cannot be enabled for this endpoint and the EP0_DMA_DISABLE bit value must be 0)."]
pub type EpDmaDis0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS1` writer - Control endpoint IN (DMA cannot be enabled for this endpoint and the EP1_DMA_DISABLE bit value must be 0)."]
pub type EpDmaDis1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS2` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS3` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS4` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS5` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS6` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS7` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS8` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS9` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS10` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS11` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS12` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS13` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS14` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS15` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS16` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS17` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS18` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis18W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS19` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis19W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS20` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis20W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS21` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis21W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS22` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis22W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS23` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis23W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS24` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis24W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS25` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis25W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS26` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis26W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS27` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis27W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS28` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis28W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS29` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis29W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS30` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis30W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EP_DMA_DIS31` writer - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
pub type EpDmaDis31W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
    #[doc = "Bit 0 - Control endpoint OUT (DMA cannot be enabled for this endpoint and the EP0_DMA_DISABLE bit value must be 0)."]
    #[inline(always)]
    pub fn ep_dma_dis0(&mut self) -> EpDmaDis0W<'_, EpdmadisSpec> {
        EpDmaDis0W::new(self, 0)
    }
    #[doc = "Bit 1 - Control endpoint IN (DMA cannot be enabled for this endpoint and the EP1_DMA_DISABLE bit value must be 0)."]
    #[inline(always)]
    pub fn ep_dma_dis1(&mut self) -> EpDmaDis1W<'_, EpdmadisSpec> {
        EpDmaDis1W::new(self, 1)
    }
    #[doc = "Bit 2 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis2(&mut self) -> EpDmaDis2W<'_, EpdmadisSpec> {
        EpDmaDis2W::new(self, 2)
    }
    #[doc = "Bit 3 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis3(&mut self) -> EpDmaDis3W<'_, EpdmadisSpec> {
        EpDmaDis3W::new(self, 3)
    }
    #[doc = "Bit 4 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis4(&mut self) -> EpDmaDis4W<'_, EpdmadisSpec> {
        EpDmaDis4W::new(self, 4)
    }
    #[doc = "Bit 5 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis5(&mut self) -> EpDmaDis5W<'_, EpdmadisSpec> {
        EpDmaDis5W::new(self, 5)
    }
    #[doc = "Bit 6 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis6(&mut self) -> EpDmaDis6W<'_, EpdmadisSpec> {
        EpDmaDis6W::new(self, 6)
    }
    #[doc = "Bit 7 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis7(&mut self) -> EpDmaDis7W<'_, EpdmadisSpec> {
        EpDmaDis7W::new(self, 7)
    }
    #[doc = "Bit 8 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis8(&mut self) -> EpDmaDis8W<'_, EpdmadisSpec> {
        EpDmaDis8W::new(self, 8)
    }
    #[doc = "Bit 9 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis9(&mut self) -> EpDmaDis9W<'_, EpdmadisSpec> {
        EpDmaDis9W::new(self, 9)
    }
    #[doc = "Bit 10 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis10(&mut self) -> EpDmaDis10W<'_, EpdmadisSpec> {
        EpDmaDis10W::new(self, 10)
    }
    #[doc = "Bit 11 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis11(&mut self) -> EpDmaDis11W<'_, EpdmadisSpec> {
        EpDmaDis11W::new(self, 11)
    }
    #[doc = "Bit 12 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis12(&mut self) -> EpDmaDis12W<'_, EpdmadisSpec> {
        EpDmaDis12W::new(self, 12)
    }
    #[doc = "Bit 13 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis13(&mut self) -> EpDmaDis13W<'_, EpdmadisSpec> {
        EpDmaDis13W::new(self, 13)
    }
    #[doc = "Bit 14 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis14(&mut self) -> EpDmaDis14W<'_, EpdmadisSpec> {
        EpDmaDis14W::new(self, 14)
    }
    #[doc = "Bit 15 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis15(&mut self) -> EpDmaDis15W<'_, EpdmadisSpec> {
        EpDmaDis15W::new(self, 15)
    }
    #[doc = "Bit 16 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis16(&mut self) -> EpDmaDis16W<'_, EpdmadisSpec> {
        EpDmaDis16W::new(self, 16)
    }
    #[doc = "Bit 17 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis17(&mut self) -> EpDmaDis17W<'_, EpdmadisSpec> {
        EpDmaDis17W::new(self, 17)
    }
    #[doc = "Bit 18 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis18(&mut self) -> EpDmaDis18W<'_, EpdmadisSpec> {
        EpDmaDis18W::new(self, 18)
    }
    #[doc = "Bit 19 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis19(&mut self) -> EpDmaDis19W<'_, EpdmadisSpec> {
        EpDmaDis19W::new(self, 19)
    }
    #[doc = "Bit 20 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis20(&mut self) -> EpDmaDis20W<'_, EpdmadisSpec> {
        EpDmaDis20W::new(self, 20)
    }
    #[doc = "Bit 21 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis21(&mut self) -> EpDmaDis21W<'_, EpdmadisSpec> {
        EpDmaDis21W::new(self, 21)
    }
    #[doc = "Bit 22 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis22(&mut self) -> EpDmaDis22W<'_, EpdmadisSpec> {
        EpDmaDis22W::new(self, 22)
    }
    #[doc = "Bit 23 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis23(&mut self) -> EpDmaDis23W<'_, EpdmadisSpec> {
        EpDmaDis23W::new(self, 23)
    }
    #[doc = "Bit 24 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis24(&mut self) -> EpDmaDis24W<'_, EpdmadisSpec> {
        EpDmaDis24W::new(self, 24)
    }
    #[doc = "Bit 25 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis25(&mut self) -> EpDmaDis25W<'_, EpdmadisSpec> {
        EpDmaDis25W::new(self, 25)
    }
    #[doc = "Bit 26 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis26(&mut self) -> EpDmaDis26W<'_, EpdmadisSpec> {
        EpDmaDis26W::new(self, 26)
    }
    #[doc = "Bit 27 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis27(&mut self) -> EpDmaDis27W<'_, EpdmadisSpec> {
        EpDmaDis27W::new(self, 27)
    }
    #[doc = "Bit 28 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis28(&mut self) -> EpDmaDis28W<'_, EpdmadisSpec> {
        EpDmaDis28W::new(self, 28)
    }
    #[doc = "Bit 29 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis29(&mut self) -> EpDmaDis29W<'_, EpdmadisSpec> {
        EpDmaDis29W::new(self, 29)
    }
    #[doc = "Bit 30 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis30(&mut self) -> EpDmaDis30W<'_, EpdmadisSpec> {
        EpDmaDis30W::new(self, 30)
    }
    #[doc = "Bit 31 - Endpoint xx (2 <= xx <= 31) DMA disable control bit. 0 = No effect. 1 = Disable the DMA operation for endpoint EPxx."]
    #[inline(always)]
    pub fn ep_dma_dis31(&mut self) -> EpDmaDis31W<'_, EpdmadisSpec> {
        EpDmaDis31W::new(self, 31)
    }
}
#[doc = "USB Endpoint DMA Disable\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`epdmadis::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EpdmadisSpec;
impl crate::RegisterSpec for EpdmadisSpec {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`epdmadis::W`](W) writer structure"]
impl crate::Writable for EpdmadisSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets EPDMADIS to value 0"]
impl crate::Resettable for EpdmadisSpec {}
