#[doc = "Register `FS_HPTXSTS` reader"]
pub type R = crate::R<FsHptxstsSpec>;
#[doc = "Register `FS_HPTXSTS` writer"]
pub type W = crate::W<FsHptxstsSpec>;
#[doc = "Field `PTXFSAVL` reader - Periodic transmit data FIFO space available"]
pub type PtxfsavlR = crate::FieldReader<u16>;
#[doc = "Field `PTXFSAVL` writer - Periodic transmit data FIFO space available"]
pub type PtxfsavlW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
#[doc = "Field `PTXQSAV` reader - Periodic transmit request queue space available"]
pub type PtxqsavR = crate::FieldReader;
#[doc = "Field `PTXQTOP` reader - Top of the periodic transmit request queue"]
pub type PtxqtopR = crate::FieldReader;
impl R {
    #[doc = "Bits 0:15 - Periodic transmit data FIFO space available"]
    #[inline(always)]
    pub fn ptxfsavl(&self) -> PtxfsavlR {
        PtxfsavlR::new((self.bits & 0xffff) as u16)
    }
    #[doc = "Bits 16:23 - Periodic transmit request queue space available"]
    #[inline(always)]
    pub fn ptxqsav(&self) -> PtxqsavR {
        PtxqsavR::new(((self.bits >> 16) & 0xff) as u8)
    }
    #[doc = "Bits 24:31 - Top of the periodic transmit request queue"]
    #[inline(always)]
    pub fn ptxqtop(&self) -> PtxqtopR {
        PtxqtopR::new(((self.bits >> 24) & 0xff) as u8)
    }
}
impl W {
    #[doc = "Bits 0:15 - Periodic transmit data FIFO space available"]
    #[inline(always)]
    pub fn ptxfsavl(&mut self) -> PtxfsavlW<'_, FsHptxstsSpec> {
        PtxfsavlW::new(self, 0)
    }
}
#[doc = "OTG_FS_Host periodic transmit FIFO/queue status register (OTG_FS_HPTXSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hptxsts::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hptxsts::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FsHptxstsSpec;
impl crate::RegisterSpec for FsHptxstsSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`fs_hptxsts::R`](R) reader structure"]
impl crate::Readable for FsHptxstsSpec {}
#[doc = "`write(|w| ..)` method takes [`fs_hptxsts::W`](W) writer structure"]
impl crate::Writable for FsHptxstsSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets FS_HPTXSTS to value 0x0008_0100"]
impl crate::Resettable for FsHptxstsSpec {
    const RESET_VALUE: u32 = 0x0008_0100;
}
