esp32h2/mem_monitor/
log_mem_full_flag.rs

1#[doc = "Register `LOG_MEM_FULL_FLAG` reader"]
2pub type R = crate::R<LOG_MEM_FULL_FLAG_SPEC>;
3#[doc = "Register `LOG_MEM_FULL_FLAG` writer"]
4pub type W = crate::W<LOG_MEM_FULL_FLAG_SPEC>;
5#[doc = "Field `LOG_MEM_FULL_FLAG` reader - 1 means memory write loop at least one time at the range of MEM_START and MEM_END"]
6pub type LOG_MEM_FULL_FLAG_R = crate::BitReader;
7#[doc = "Field `CLR_LOG_MEM_FULL_FLAG` writer - Set 1 to clr MEM_MONITOR_LOG_MEM_FULL_FLAG"]
8pub type CLR_LOG_MEM_FULL_FLAG_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10    #[doc = "Bit 0 - 1 means memory write loop at least one time at the range of MEM_START and MEM_END"]
11    #[inline(always)]
12    pub fn log_mem_full_flag(&self) -> LOG_MEM_FULL_FLAG_R {
13        LOG_MEM_FULL_FLAG_R::new((self.bits & 1) != 0)
14    }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("LOG_MEM_FULL_FLAG")
20            .field("log_mem_full_flag", &self.log_mem_full_flag())
21            .finish()
22    }
23}
24impl W {
25    #[doc = "Bit 1 - Set 1 to clr MEM_MONITOR_LOG_MEM_FULL_FLAG"]
26    #[inline(always)]
27    pub fn clr_log_mem_full_flag(&mut self) -> CLR_LOG_MEM_FULL_FLAG_W<LOG_MEM_FULL_FLAG_SPEC> {
28        CLR_LOG_MEM_FULL_FLAG_W::new(self, 1)
29    }
30}
31#[doc = "full flag status register\n\nYou can [`read`](crate::Reg::read) this register and get [`log_mem_full_flag::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`log_mem_full_flag::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct LOG_MEM_FULL_FLAG_SPEC;
33impl crate::RegisterSpec for LOG_MEM_FULL_FLAG_SPEC {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`log_mem_full_flag::R`](R) reader structure"]
37impl crate::Readable for LOG_MEM_FULL_FLAG_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`log_mem_full_flag::W`](W) writer structure"]
39impl crate::Writable for LOG_MEM_FULL_FLAG_SPEC {
40    type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets LOG_MEM_FULL_FLAG to value 0"]
43impl crate::Resettable for LOG_MEM_FULL_FLAG_SPEC {}