///Register `GNPTXSTS` reader
pub type R = crate::R<GNPTXSTSrs>;
///Field `NPTXFSAV` reader - Non-periodic TxFIFO space available
pub type NPTXFSAV_R = crate::FieldReader<u16>;
///Field `NPTQXSAV` reader - Non-periodic transmit request queue space available
pub type NPTQXSAV_R = crate::FieldReader;
///Field `NPTXQTOP` reader - Top of the non-periodic transmit request queue
pub type NPTXQTOP_R = crate::FieldReader;
impl R {
    ///Bits 0:15 - Non-periodic TxFIFO space available
    #[inline(always)]
    pub fn nptxfsav(&self) -> NPTXFSAV_R {
        NPTXFSAV_R::new((self.bits & 0xffff) as u16)
    }
    ///Bits 16:23 - Non-periodic transmit request queue space available
    #[inline(always)]
    pub fn nptqxsav(&self) -> NPTQXSAV_R {
        NPTQXSAV_R::new(((self.bits >> 16) & 0xff) as u8)
    }
    ///Bits 24:30 - Top of the non-periodic transmit request queue
    #[inline(always)]
    pub fn nptxqtop(&self) -> NPTXQTOP_R {
        NPTXQTOP_R::new(((self.bits >> 24) & 0x7f) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("GNPTXSTS")
            .field("nptxfsav", &self.nptxfsav())
            .field("nptqxsav", &self.nptqxsav())
            .field("nptxqtop", &self.nptxqtop())
            .finish()
    }
}
/**OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)

You can [`read`](crate::Reg::read) this register and get [`gnptxsts::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#OTG_FS_GLOBAL:GNPTXSTS)*/
pub struct GNPTXSTSrs;
impl crate::RegisterSpec for GNPTXSTSrs {
    type Ux = u32;
}
///`read()` method returns [`gnptxsts::R`](R) reader structure
impl crate::Readable for GNPTXSTSrs {}
///`reset()` method sets GNPTXSTS to value 0x0008_0200
impl crate::Resettable for GNPTXSTSrs {
    const RESET_VALUE: u32 = 0x0008_0200;
}
