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