1#[doc = "Register `IC_TXFLR` reader"]
2pub type R = crate::R<IC_TXFLR_SPEC>;
3#[doc = "Field `TXFLR` reader - Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO.
45 Reset value: 0x0"]
6pub type TXFLR_R = crate::FieldReader;
7impl R {
8#[doc = "Bits 0:4 - Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO.
910 Reset value: 0x0"]
11 #[inline(always)]
12pub fn txflr(&self) -> TXFLR_R {
13 TXFLR_R::new((self.bits & 0x1f) as u8)
14 }
15}
16#[doc = "I2C Transmit FIFO Level Register This register contains the number of valid data entries in the transmit FIFO buffer. It is cleared whenever: - The I2C is disabled - There is a transmit abort - that is, TX_ABRT bit is set in the IC_RAW_INTR_STAT register - The slave bulk transmit mode is aborted The register increments whenever data is placed into the transmit FIFO and decrements when data is taken from the transmit FIFO.
1718You can [`read`](crate::generic::Reg::read) this register and get [`ic_txflr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct IC_TXFLR_SPEC;
20impl crate::RegisterSpec for IC_TXFLR_SPEC {
21type Ux = u32;
22}
23#[doc = "`read()` method returns [`ic_txflr::R`](R) reader structure"]
24impl crate::Readable for IC_TXFLR_SPEC {}
25#[doc = "`reset()` method sets IC_TXFLR to value 0"]
26impl crate::Resettable for IC_TXFLR_SPEC {
27const RESET_VALUE: u32 = 0;
28}