#[doc = "Register `TXEFS` reader"]
pub type R = crate::R<TXEFS_SPEC>;
#[doc = "Field `EFFL` reader - Event FIFO Fill Level"]
pub type EFFL_R = crate::FieldReader;
#[doc = "Field `EFGI` reader - Event FIFO Get Index"]
pub type EFGI_R = crate::FieldReader;
#[doc = "Field `EFPI` reader - Event FIFO Put Index"]
pub type EFPI_R = crate::FieldReader;
#[doc = "Field `EFF` reader - Event FIFO Full"]
pub type EFF_R = crate::BitReader;
#[doc = "Field `TEFL` reader - Tx Event FIFO Element Lost"]
pub type TEFL_R = crate::BitReader;
impl R {
#[doc = "Bits 0:5 - Event FIFO Fill Level"]
#[inline(always)]
pub fn effl(&self) -> EFFL_R {
EFFL_R::new((self.bits & 0x3f) as u8)
}
#[doc = "Bits 8:12 - Event FIFO Get Index"]
#[inline(always)]
pub fn efgi(&self) -> EFGI_R {
EFGI_R::new(((self.bits >> 8) & 0x1f) as u8)
}
#[doc = "Bits 16:20 - Event FIFO Put Index"]
#[inline(always)]
pub fn efpi(&self) -> EFPI_R {
EFPI_R::new(((self.bits >> 16) & 0x1f) as u8)
}
#[doc = "Bit 24 - Event FIFO Full"]
#[inline(always)]
pub fn eff(&self) -> EFF_R {
EFF_R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - Tx Event FIFO Element Lost"]
#[inline(always)]
pub fn tefl(&self) -> TEFL_R {
TEFL_R::new(((self.bits >> 25) & 1) != 0)
}
}
#[doc = "Tx Event FIFO Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txefs::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TXEFS_SPEC;
impl crate::RegisterSpec for TXEFS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`txefs::R`](R) reader structure"]
impl crate::Readable for TXEFS_SPEC {}
#[doc = "`reset()` method sets TXEFS to value 0"]
impl crate::Resettable for TXEFS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}