esp32p4/mcpwm0/ch/
fh_status.rs1#[doc = "Register `FH_STATUS` reader"]
2pub type R = crate::R<FH_STATUS_SPEC>;
3#[doc = "Field `CBC_ON` reader - Represents whether or not an cycle-by-cycle mode action is on going.\\\\0:No action\\\\1: On going"]
4pub type CBC_ON_R = crate::BitReader;
5#[doc = "Field `OST_ON` reader - Represents whether or not an one-shot mode action is on going.\\\\0:No action\\\\1: On going"]
6pub type OST_ON_R = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - Represents whether or not an cycle-by-cycle mode action is on going.\\\\0:No action\\\\1: On going"]
9 #[inline(always)]
10 pub fn cbc_on(&self) -> CBC_ON_R {
11 CBC_ON_R::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bit 1 - Represents whether or not an one-shot mode action is on going.\\\\0:No action\\\\1: On going"]
14 #[inline(always)]
15 pub fn ost_on(&self) -> OST_ON_R {
16 OST_ON_R::new(((self.bits >> 1) & 1) != 0)
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("FH_STATUS")
23 .field("cbc_on", &format_args!("{}", self.cbc_on().bit()))
24 .field("ost_on", &format_args!("{}", self.ost_on().bit()))
25 .finish()
26 }
27}
28#[cfg(feature = "impl-register-debug")]
29impl core::fmt::Debug for crate::generic::Reg<FH_STATUS_SPEC> {
30 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
31 core::fmt::Debug::fmt(&self.read(), f)
32 }
33}
34#[doc = "Fault events status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fh_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
35pub struct FH_STATUS_SPEC;
36impl crate::RegisterSpec for FH_STATUS_SPEC {
37 type Ux = u32;
38}
39#[doc = "`read()` method returns [`fh_status::R`](R) reader structure"]
40impl crate::Readable for FH_STATUS_SPEC {}
41#[doc = "`reset()` method sets FH_STATUS to value 0"]
42impl crate::Resettable for FH_STATUS_SPEC {
43 const RESET_VALUE: u32 = 0;
44}