#[doc = "Register `MFSR` reader"]
pub type R = crate::R<MfsrSpec>;
#[doc = "Field `TXCOUNT` reader - Transmit FIFO Count"]
pub type TxcountR = crate::FieldReader;
#[doc = "Field `RXCOUNT` reader - Receive FIFO Count"]
pub type RxcountR = crate::FieldReader;
impl R {
#[doc = "Bits 0:2 - Transmit FIFO Count"]
#[inline(always)]
pub fn txcount(&self) -> TxcountR {
TxcountR::new((self.bits & 7) as u8)
}
#[doc = "Bits 16:18 - Receive FIFO Count"]
#[inline(always)]
pub fn rxcount(&self) -> RxcountR {
RxcountR::new(((self.bits >> 16) & 7) as u8)
}
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MFSR")
.field("txcount", &self.txcount())
.field("rxcount", &self.rxcount())
.finish()
}
}
#[doc = "Controller FIFO Status\n\nYou can [`read`](crate::Reg::read) this register and get [`mfsr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MfsrSpec;
impl crate::RegisterSpec for MfsrSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`mfsr::R`](R) reader structure"]
impl crate::Readable for MfsrSpec {}
#[doc = "`reset()` method sets MFSR to value 0"]
impl crate::Resettable for MfsrSpec {}