#[doc = "Register `DIEPINT1` reader"]
pub type R = crate::R<Diepint1Spec>;
#[doc = "Register `DIEPINT1` writer"]
pub type W = crate::W<Diepint1Spec>;
#[doc = "Field `XFRC` reader - XFRC"]
pub type XfrcR = crate::BitReader;
#[doc = "Field `XFRC` writer - XFRC"]
pub type XfrcW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPDISD` reader - EPDISD"]
pub type EpdisdR = crate::BitReader;
#[doc = "Field `EPDISD` writer - EPDISD"]
pub type EpdisdW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TOC` reader - TOC"]
pub type TocR = crate::BitReader;
#[doc = "Field `TOC` writer - TOC"]
pub type TocW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ITTXFE` reader - ITTXFE"]
pub type IttxfeR = crate::BitReader;
#[doc = "Field `ITTXFE` writer - ITTXFE"]
pub type IttxfeW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `INEPNE` reader - INEPNE"]
pub type InepneR = crate::BitReader;
#[doc = "Field `INEPNE` writer - INEPNE"]
pub type InepneW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TXFE` reader - TXFE"]
pub type TxfeR = crate::BitReader;
impl R {
#[doc = "Bit 0 - XFRC"]
#[inline(always)]
pub fn xfrc(&self) -> XfrcR {
XfrcR::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - EPDISD"]
#[inline(always)]
pub fn epdisd(&self) -> EpdisdR {
EpdisdR::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 3 - TOC"]
#[inline(always)]
pub fn toc(&self) -> TocR {
TocR::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - ITTXFE"]
#[inline(always)]
pub fn ittxfe(&self) -> IttxfeR {
IttxfeR::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 6 - INEPNE"]
#[inline(always)]
pub fn inepne(&self) -> InepneR {
InepneR::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - TXFE"]
#[inline(always)]
pub fn txfe(&self) -> TxfeR {
TxfeR::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - XFRC"]
#[inline(always)]
pub fn xfrc(&mut self) -> XfrcW<'_, Diepint1Spec> {
XfrcW::new(self, 0)
}
#[doc = "Bit 1 - EPDISD"]
#[inline(always)]
pub fn epdisd(&mut self) -> EpdisdW<'_, Diepint1Spec> {
EpdisdW::new(self, 1)
}
#[doc = "Bit 3 - TOC"]
#[inline(always)]
pub fn toc(&mut self) -> TocW<'_, Diepint1Spec> {
TocW::new(self, 3)
}
#[doc = "Bit 4 - ITTXFE"]
#[inline(always)]
pub fn ittxfe(&mut self) -> IttxfeW<'_, Diepint1Spec> {
IttxfeW::new(self, 4)
}
#[doc = "Bit 6 - INEPNE"]
#[inline(always)]
pub fn inepne(&mut self) -> InepneW<'_, Diepint1Spec> {
InepneW::new(self, 6)
}
}
#[doc = "device endpoint-1 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Diepint1Spec;
impl crate::RegisterSpec for Diepint1Spec {
type Ux = u32;
}
#[doc = "`read()` method returns [`diepint1::R`](R) reader structure"]
impl crate::Readable for Diepint1Spec {}
#[doc = "`write(|w| ..)` method takes [`diepint1::W`](W) writer structure"]
impl crate::Writable for Diepint1Spec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets DIEPINT1 to value 0x80"]
impl crate::Resettable for Diepint1Spec {
const RESET_VALUE: u32 = 0x80;
}