///Register `DTXFSTS6` reader
pub type R = crate::R<DTXFSTS6rs>;
///Field `INEPTFSAV` reader - IN endpoint Tx FIFO space available Indicates the amount of free space available in the endpoint Tx FIFO. Values are in terms of 32-bit words: 0xn: n words available Others: Reserved
pub type INEPTFSAV_R = crate::FieldReader<u16>;
impl R {
///Bits 0:15 - IN endpoint Tx FIFO space available Indicates the amount of free space available in the endpoint Tx FIFO. Values are in terms of 32-bit words: 0xn: n words available Others: Reserved
#[inline(always)]
pub fn ineptfsav(&self) -> INEPTFSAV_R {
INEPTFSAV_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DTXFSTS6").field("ineptfsav", &self.ineptfsav()).finish()
}
}
/**OTG device IN endpoint transmit FIFO status register
You can [`read`](crate::Reg::read) this register and get [`dtxfsts6::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct DTXFSTS6rs;
impl crate::RegisterSpec for DTXFSTS6rs {
type Ux = u32;
}
///`read()` method returns [`dtxfsts6::R`](R) reader structure
impl crate::Readable for DTXFSTS6rs {}
///`reset()` method sets DTXFSTS6 to value 0x0200
impl crate::Resettable for DTXFSTS6rs {
const RESET_VALUE: u32 = 0x0200;
}