#[doc = "Register `EPDMAST` reader"]
pub type R = crate::R<EpdmastSpec>;
#[doc = "Field `EP_DMA_ST0` reader - Control endpoint OUT (DMA cannot be enabled for this endpoint and the EP0_DMA_ENABLE bit must be 0)."]
pub type EpDmaSt0R = crate::BitReader;
#[doc = "Field `EP_DMA_ST1` reader - Control endpoint IN (DMA cannot be enabled for this endpoint and the EP1_DMA_ENABLE bit must be 0)."]
pub type EpDmaSt1R = crate::BitReader;
#[doc = "Field `EP_DMA_ST2` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt2R = crate::BitReader;
#[doc = "Field `EP_DMA_ST3` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt3R = crate::BitReader;
#[doc = "Field `EP_DMA_ST4` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt4R = crate::BitReader;
#[doc = "Field `EP_DMA_ST5` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt5R = crate::BitReader;
#[doc = "Field `EP_DMA_ST6` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt6R = crate::BitReader;
#[doc = "Field `EP_DMA_ST7` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt7R = crate::BitReader;
#[doc = "Field `EP_DMA_ST8` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt8R = crate::BitReader;
#[doc = "Field `EP_DMA_ST9` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt9R = crate::BitReader;
#[doc = "Field `EP_DMA_ST10` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt10R = crate::BitReader;
#[doc = "Field `EP_DMA_ST11` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt11R = crate::BitReader;
#[doc = "Field `EP_DMA_ST12` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt12R = crate::BitReader;
#[doc = "Field `EP_DMA_ST13` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt13R = crate::BitReader;
#[doc = "Field `EP_DMA_ST14` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt14R = crate::BitReader;
#[doc = "Field `EP_DMA_ST15` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt15R = crate::BitReader;
#[doc = "Field `EP_DMA_ST16` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt16R = crate::BitReader;
#[doc = "Field `EP_DMA_ST17` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt17R = crate::BitReader;
#[doc = "Field `EP_DMA_ST18` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt18R = crate::BitReader;
#[doc = "Field `EP_DMA_ST19` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt19R = crate::BitReader;
#[doc = "Field `EP_DMA_ST20` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt20R = crate::BitReader;
#[doc = "Field `EP_DMA_ST21` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt21R = crate::BitReader;
#[doc = "Field `EP_DMA_ST22` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt22R = crate::BitReader;
#[doc = "Field `EP_DMA_ST23` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt23R = crate::BitReader;
#[doc = "Field `EP_DMA_ST24` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt24R = crate::BitReader;
#[doc = "Field `EP_DMA_ST25` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt25R = crate::BitReader;
#[doc = "Field `EP_DMA_ST26` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt26R = crate::BitReader;
#[doc = "Field `EP_DMA_ST27` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt27R = crate::BitReader;
#[doc = "Field `EP_DMA_ST28` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt28R = crate::BitReader;
#[doc = "Field `EP_DMA_ST29` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt29R = crate::BitReader;
#[doc = "Field `EP_DMA_ST30` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt30R = crate::BitReader;
#[doc = "Field `EP_DMA_ST31` reader - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
pub type EpDmaSt31R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - Control endpoint OUT (DMA cannot be enabled for this endpoint and the EP0_DMA_ENABLE bit must be 0)."]
    #[inline(always)]
    pub fn ep_dma_st0(&self) -> EpDmaSt0R {
        EpDmaSt0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Control endpoint IN (DMA cannot be enabled for this endpoint and the EP1_DMA_ENABLE bit must be 0)."]
    #[inline(always)]
    pub fn ep_dma_st1(&self) -> EpDmaSt1R {
        EpDmaSt1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st2(&self) -> EpDmaSt2R {
        EpDmaSt2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st3(&self) -> EpDmaSt3R {
        EpDmaSt3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st4(&self) -> EpDmaSt4R {
        EpDmaSt4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st5(&self) -> EpDmaSt5R {
        EpDmaSt5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st6(&self) -> EpDmaSt6R {
        EpDmaSt6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st7(&self) -> EpDmaSt7R {
        EpDmaSt7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st8(&self) -> EpDmaSt8R {
        EpDmaSt8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st9(&self) -> EpDmaSt9R {
        EpDmaSt9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st10(&self) -> EpDmaSt10R {
        EpDmaSt10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st11(&self) -> EpDmaSt11R {
        EpDmaSt11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st12(&self) -> EpDmaSt12R {
        EpDmaSt12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st13(&self) -> EpDmaSt13R {
        EpDmaSt13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st14(&self) -> EpDmaSt14R {
        EpDmaSt14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st15(&self) -> EpDmaSt15R {
        EpDmaSt15R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st16(&self) -> EpDmaSt16R {
        EpDmaSt16R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st17(&self) -> EpDmaSt17R {
        EpDmaSt17R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st18(&self) -> EpDmaSt18R {
        EpDmaSt18R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st19(&self) -> EpDmaSt19R {
        EpDmaSt19R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st20(&self) -> EpDmaSt20R {
        EpDmaSt20R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st21(&self) -> EpDmaSt21R {
        EpDmaSt21R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st22(&self) -> EpDmaSt22R {
        EpDmaSt22R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st23(&self) -> EpDmaSt23R {
        EpDmaSt23R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st24(&self) -> EpDmaSt24R {
        EpDmaSt24R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st25(&self) -> EpDmaSt25R {
        EpDmaSt25R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st26(&self) -> EpDmaSt26R {
        EpDmaSt26R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st27(&self) -> EpDmaSt27R {
        EpDmaSt27R::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 28 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st28(&self) -> EpDmaSt28R {
        EpDmaSt28R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st29(&self) -> EpDmaSt29R {
        EpDmaSt29R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st30(&self) -> EpDmaSt30R {
        EpDmaSt30R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - Endpoint xx (2 <= xx <= 31) DMA enabled bit. 0 = The DMA for endpoint EPxx is disabled. 1 = The DMA for endpoint EPxx is enabled."]
    #[inline(always)]
    pub fn ep_dma_st31(&self) -> EpDmaSt31R {
        EpDmaSt31R::new(((self.bits >> 31) & 1) != 0)
    }
}
#[doc = "USB Endpoint DMA Status\n\nYou can [`read`](crate::Reg::read) this register and get [`epdmast::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EpdmastSpec;
impl crate::RegisterSpec for EpdmastSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`epdmast::R`](R) reader structure"]
impl crate::Readable for EpdmastSpec {}
#[doc = "`reset()` method sets EPDMAST to value 0"]
impl crate::Resettable for EpdmastSpec {}
