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