esp32s3/uart0/
rxd_cnt.rs

1#[doc = "Register `RXD_CNT` reader"]
2pub type R = crate::R<RXD_CNT_SPEC>;
3#[doc = "Field `RXD_EDGE_CNT` reader - This register stores the count of rxd edge change. It is used in baud rate-detect process."]
4pub type RXD_EDGE_CNT_R = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:9 - This register stores the count of rxd edge change. It is used in baud rate-detect process."]
7    #[inline(always)]
8    pub fn rxd_edge_cnt(&self) -> RXD_EDGE_CNT_R {
9        RXD_EDGE_CNT_R::new((self.bits & 0x03ff) as u16)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("RXD_CNT")
16            .field("rxd_edge_cnt", &self.rxd_edge_cnt())
17            .finish()
18    }
19}
20#[doc = "Autobaud edge change count register\n\nYou can [`read`](crate::Reg::read) this register and get [`rxd_cnt::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct RXD_CNT_SPEC;
22impl crate::RegisterSpec for RXD_CNT_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`rxd_cnt::R`](R) reader structure"]
26impl crate::Readable for RXD_CNT_SPEC {}
27#[doc = "`reset()` method sets RXD_CNT to value 0"]
28impl crate::Resettable for RXD_CNT_SPEC {
29    const RESET_VALUE: u32 = 0;
30}