esp32p4/axi_dma/
rdn_result.rs

1#[doc = "Register `RDN_RESULT` reader"]
2pub type R = crate::R<RDN_RESULT_SPEC>;
3#[doc = "Register `RDN_RESULT` writer"]
4pub type W = crate::W<RDN_RESULT_SPEC>;
5#[doc = "Field `RDN_ENA` reader - reserved"]
6pub type RDN_ENA_R = crate::BitReader;
7#[doc = "Field `RDN_ENA` writer - reserved"]
8pub type RDN_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `RDN_RESULT` reader - reserved"]
10pub type RDN_RESULT_R = crate::BitReader;
11impl R {
12    #[doc = "Bit 0 - reserved"]
13    #[inline(always)]
14    pub fn rdn_ena(&self) -> RDN_ENA_R {
15        RDN_ENA_R::new((self.bits & 1) != 0)
16    }
17    #[doc = "Bit 1 - reserved"]
18    #[inline(always)]
19    pub fn rdn_result(&self) -> RDN_RESULT_R {
20        RDN_RESULT_R::new(((self.bits >> 1) & 1) != 0)
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for R {
25    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
26        f.debug_struct("RDN_RESULT")
27            .field("rdn_ena", &format_args!("{}", self.rdn_ena().bit()))
28            .field("rdn_result", &format_args!("{}", self.rdn_result().bit()))
29            .finish()
30    }
31}
32#[cfg(feature = "impl-register-debug")]
33impl core::fmt::Debug for crate::generic::Reg<RDN_RESULT_SPEC> {
34    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
35        core::fmt::Debug::fmt(&self.read(), f)
36    }
37}
38impl W {
39    #[doc = "Bit 0 - reserved"]
40    #[inline(always)]
41    #[must_use]
42    pub fn rdn_ena(&mut self) -> RDN_ENA_W<RDN_RESULT_SPEC> {
43        RDN_ENA_W::new(self, 0)
44    }
45}
46#[doc = "reserved\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rdn_result::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rdn_result::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct RDN_RESULT_SPEC;
48impl crate::RegisterSpec for RDN_RESULT_SPEC {
49    type Ux = u32;
50}
51#[doc = "`read()` method returns [`rdn_result::R`](R) reader structure"]
52impl crate::Readable for RDN_RESULT_SPEC {}
53#[doc = "`write(|w| ..)` method takes [`rdn_result::W`](W) writer structure"]
54impl crate::Writable for RDN_RESULT_SPEC {
55    type Safety = crate::Unsafe;
56    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
57    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
58}
59#[doc = "`reset()` method sets RDN_RESULT to value 0"]
60impl crate::Resettable for RDN_RESULT_SPEC {
61    const RESET_VALUE: u32 = 0;
62}