esp32/dport/
pro_cpu_record_status.rs

1#[doc = "Register `PRO_CPU_RECORD_STATUS` reader"]
2pub type R = crate::R<PRO_CPU_RECORD_STATUS_SPEC>;
3#[doc = "Field `PRO_CPU_RECORDING` reader - "]
4pub type PRO_CPU_RECORDING_R = crate::BitReader;
5impl R {
6    #[doc = "Bit 0"]
7    #[inline(always)]
8    pub fn pro_cpu_recording(&self) -> PRO_CPU_RECORDING_R {
9        PRO_CPU_RECORDING_R::new((self.bits & 1) != 0)
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("PRO_CPU_RECORD_STATUS")
16            .field("pro_cpu_recording", &self.pro_cpu_recording())
17            .finish()
18    }
19}
20#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`pro_cpu_record_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct PRO_CPU_RECORD_STATUS_SPEC;
22impl crate::RegisterSpec for PRO_CPU_RECORD_STATUS_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`pro_cpu_record_status::R`](R) reader structure"]
26impl crate::Readable for PRO_CPU_RECORD_STATUS_SPEC {}
27#[doc = "`reset()` method sets PRO_CPU_RECORD_STATUS to value 0"]
28impl crate::Resettable for PRO_CPU_RECORD_STATUS_SPEC {}