esp32h2/parl_io/
tx_st0.rs#[doc = "Register `TX_ST0` reader"]
pub type R = crate::R<TX_ST0_SPEC>;
#[doc = "Field `TX_CNT` reader - Indicates the cycle number of reading Tx FIFO."]
pub type TX_CNT_R = crate::FieldReader;
#[doc = "Field `TX_FIFO_RD_BIT_CNT` reader - Indicates the current read bit number from Tx FIFO."]
pub type TX_FIFO_RD_BIT_CNT_R = crate::FieldReader<u32>;
impl R {
#[doc = "Bits 6:12 - Indicates the cycle number of reading Tx FIFO."]
#[inline(always)]
pub fn tx_cnt(&self) -> TX_CNT_R {
TX_CNT_R::new(((self.bits >> 6) & 0x7f) as u8)
}
#[doc = "Bits 13:31 - Indicates the current read bit number from Tx FIFO."]
#[inline(always)]
pub fn tx_fifo_rd_bit_cnt(&self) -> TX_FIFO_RD_BIT_CNT_R {
TX_FIFO_RD_BIT_CNT_R::new((self.bits >> 13) & 0x0007_ffff)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TX_ST0")
.field("tx_cnt", &self.tx_cnt())
.field("tx_fifo_rd_bit_cnt", &self.tx_fifo_rd_bit_cnt())
.finish()
}
}
#[doc = "Parallel IO TX status register0\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_st0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TX_ST0_SPEC;
impl crate::RegisterSpec for TX_ST0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`tx_st0::R`](R) reader structure"]
impl crate::Readable for TX_ST0_SPEC {}
#[doc = "`reset()` method sets TX_ST0 to value 0"]
impl crate::Resettable for TX_ST0_SPEC {
const RESET_VALUE: u32 = 0;
}