esp32s3/uart0/
fsm_status.rs1#[doc = "Register `FSM_STATUS` reader"]
2pub type R = crate::R<FSM_STATUS_SPEC>;
3#[doc = "Field `ST_URX_OUT` reader - This is the status register of receiver."]
4pub type ST_URX_OUT_R = crate::FieldReader;
5#[doc = "Field `ST_UTX_OUT` reader - This is the status register of transmitter."]
6pub type ST_UTX_OUT_R = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:3 - This is the status register of receiver."]
9 #[inline(always)]
10 pub fn st_urx_out(&self) -> ST_URX_OUT_R {
11 ST_URX_OUT_R::new((self.bits & 0x0f) as u8)
12 }
13 #[doc = "Bits 4:7 - This is the status register of transmitter."]
14 #[inline(always)]
15 pub fn st_utx_out(&self) -> ST_UTX_OUT_R {
16 ST_UTX_OUT_R::new(((self.bits >> 4) & 0x0f) as u8)
17 }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("FSM_STATUS")
23 .field("st_urx_out", &self.st_urx_out())
24 .field("st_utx_out", &self.st_utx_out())
25 .finish()
26 }
27}
28#[doc = "UART transmit and receive status.\n\nYou can [`read`](crate::Reg::read) this register and get [`fsm_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct FSM_STATUS_SPEC;
30impl crate::RegisterSpec for FSM_STATUS_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`fsm_status::R`](R) reader structure"]
34impl crate::Readable for FSM_STATUS_SPEC {}
35#[doc = "`reset()` method sets FSM_STATUS to value 0"]
36impl crate::Resettable for FSM_STATUS_SPEC {
37 const RESET_VALUE: u32 = 0;
38}