esp32c2/efuse/
rd_wr_dis.rs1#[doc = "Register `RD_WR_DIS` reader"]
2pub type R = crate::R<RD_WR_DIS_SPEC>;
3#[doc = "Field `WR_DIS` reader - Disable programming of individual eFuses."]
4pub type WR_DIS_R = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:7 - Disable programming of individual eFuses."]
7 #[inline(always)]
8 pub fn wr_dis(&self) -> WR_DIS_R {
9 WR_DIS_R::new((self.bits & 0xff) as u8)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("RD_WR_DIS")
16 .field("wr_dis", &self.wr_dis())
17 .finish()
18 }
19}
20#[doc = "BLOCK0 data register 0.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_wr_dis::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct RD_WR_DIS_SPEC;
22impl crate::RegisterSpec for RD_WR_DIS_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`rd_wr_dis::R`](R) reader structure"]
26impl crate::Readable for RD_WR_DIS_SPEC {}
27#[doc = "`reset()` method sets RD_WR_DIS to value 0"]
28impl crate::Resettable for RD_WR_DIS_SPEC {
29 const RESET_VALUE: u32 = 0;
30}