esp32c6/ieee802154/
event_status.rs1#[doc = "Register `EVENT_STATUS` reader"]
2pub type R = crate::R<EVENT_STATUS_SPEC>;
3#[doc = "Register `EVENT_STATUS` writer"]
4pub type W = crate::W<EVENT_STATUS_SPEC>;
5#[doc = "Field `EVENT_STATUS` reader - "]
6pub type EVENT_STATUS_R = crate::FieldReader<u16>;
7#[doc = "Field `EVENT_STATUS` writer - "]
8pub type EVENT_STATUS_W<'a, REG> = crate::FieldWriter<'a, REG, 13, u16>;
9impl R {
10 #[doc = "Bits 0:12"]
11 #[inline(always)]
12 pub fn event_status(&self) -> EVENT_STATUS_R {
13 EVENT_STATUS_R::new((self.bits & 0x1fff) as u16)
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("EVENT_STATUS")
20 .field("event_status", &self.event_status())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 0:12"]
26 #[inline(always)]
27 pub fn event_status(&mut self) -> EVENT_STATUS_W<EVENT_STATUS_SPEC> {
28 EVENT_STATUS_W::new(self, 0)
29 }
30}
31#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`event_status::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`event_status::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct EVENT_STATUS_SPEC;
33impl crate::RegisterSpec for EVENT_STATUS_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`event_status::R`](R) reader structure"]
37impl crate::Readable for EVENT_STATUS_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`event_status::W`](W) writer structure"]
39impl crate::Writable for EVENT_STATUS_SPEC {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets EVENT_STATUS to value 0"]
43impl crate::Resettable for EVENT_STATUS_SPEC {}