#[doc = "Register `FS_DIEPTXF3` reader"]
pub type R = crate::R<FsDieptxf3Spec>;
#[doc = "Register `FS_DIEPTXF3` writer"]
pub type W = crate::W<FsDieptxf3Spec>;
#[doc = "Field `INEPTXSA` reader - IN endpoint FIFO4 transmit RAM start address"]
pub type IneptxsaR = crate::FieldReader<u16>;
#[doc = "Field `INEPTXSA` writer - IN endpoint FIFO4 transmit RAM start address"]
pub type IneptxsaW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
#[doc = "Field `INEPTXFD` reader - IN endpoint TxFIFO depth"]
pub type IneptxfdR = crate::FieldReader<u16>;
#[doc = "Field `INEPTXFD` writer - IN endpoint TxFIFO depth"]
pub type IneptxfdW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    #[doc = "Bits 0:15 - IN endpoint FIFO4 transmit RAM start address"]
    #[inline(always)]
    pub fn ineptxsa(&self) -> IneptxsaR {
        IneptxsaR::new((self.bits & 0xffff) as u16)
    }
    #[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
    #[inline(always)]
    pub fn ineptxfd(&self) -> IneptxfdR {
        IneptxfdR::new(((self.bits >> 16) & 0xffff) as u16)
    }
}
impl W {
    #[doc = "Bits 0:15 - IN endpoint FIFO4 transmit RAM start address"]
    #[inline(always)]
    pub fn ineptxsa(&mut self) -> IneptxsaW<'_, FsDieptxf3Spec> {
        IneptxsaW::new(self, 0)
    }
    #[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
    #[inline(always)]
    pub fn ineptxfd(&mut self) -> IneptxfdW<'_, FsDieptxf3Spec> {
        IneptxfdW::new(self, 16)
    }
}
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FsDieptxf3Spec;
impl crate::RegisterSpec for FsDieptxf3Spec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`fs_dieptxf3::R`](R) reader structure"]
impl crate::Readable for FsDieptxf3Spec {}
#[doc = "`write(|w| ..)` method takes [`fs_dieptxf3::W`](W) writer structure"]
impl crate::Writable for FsDieptxf3Spec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets FS_DIEPTXF3 to value 0x0200_0400"]
impl crate::Resettable for FsDieptxf3Spec {
    const RESET_VALUE: u32 = 0x0200_0400;
}
