1#[doc = "Register `count` reader"]
2pub struct R(crate::R<COUNT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<COUNT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<COUNT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<COUNT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `count` writer"]
17pub struct W(crate::W<COUNT_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<COUNT_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<COUNT_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<COUNT_SPEC>) -> Self {
34 W(writer)
35 }
36}
37impl W {
38 #[doc = "Writes raw bits to the register."]
39 #[inline(always)]
40 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
41 self.0.bits(bits);
42 self
43 }
44}
45#[doc = "Watchdog clock cycle count\n\nThis register you can [`read`]
46(crate::generic::Reg::read), [`write_with_zero`]
47(crate::generic::Reg::write_with_zero), [`reset`]
48(crate::generic::Reg::reset), [`write`]
49(crate::generic::Reg::write), [`modify`]
50(crate::generic::Reg::modify). See [API]
51(https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [count]
52(index.html) module"]
53pub struct COUNT_SPEC;
54impl crate::RegisterSpec for COUNT_SPEC {
55 type Ux = u32;
56}
57#[doc = "`read()` method returns [count::R]
58(R) reader structure"]
59impl crate::Readable for COUNT_SPEC {
60 type Reader = R;
61}
62#[doc = "`write(|w| ..)` method takes [count::W]
63(W) writer structure"]
64impl crate::Writable for COUNT_SPEC {
65 type Writer = W;
66}
67#[doc = "`reset()` method sets count to value 0"]
68impl crate::Resettable for COUNT_SPEC {
69 #[inline(always)]
70 fn reset_value() -> Self::Ux {
71 0
72 }
73}