esp32c2/uart0/
lowpulse.rs1#[doc = "Register `LOWPULSE` reader"]
2pub type R = crate::R<LOWPULSE_SPEC>;
3#[doc = "Field `MIN_CNT` reader - This register stores the value of the minimum duration time of the low level pulse. It is used in baud rate-detect process."]
4pub type MIN_CNT_R = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:11 - This register stores the value of the minimum duration time of the low level pulse. It is used in baud rate-detect process."]
7 #[inline(always)]
8 pub fn min_cnt(&self) -> MIN_CNT_R {
9 MIN_CNT_R::new((self.bits & 0x0fff) 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("LOWPULSE")
16 .field("min_cnt", &self.min_cnt())
17 .finish()
18 }
19}
20#[doc = "Autobaud minimum low pulse duration register\n\nYou can [`read`](crate::Reg::read) this register and get [`lowpulse::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct LOWPULSE_SPEC;
22impl crate::RegisterSpec for LOWPULSE_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`lowpulse::R`](R) reader structure"]
26impl crate::Readable for LOWPULSE_SPEC {}
27#[doc = "`reset()` method sets LOWPULSE to value 0x0fff"]
28impl crate::Resettable for LOWPULSE_SPEC {
29 const RESET_VALUE: u32 = 0x0fff;
30}