esp32s2/wifi/
plcp2.rs

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