1#[doc = "Register `debug` reader"]
2pub struct R(crate::R<DEBUG_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DEBUG_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DEBUG_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DEBUG_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `debug` writer"]
17pub struct W(crate::W<DEBUG_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<DEBUG_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<DEBUG_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<DEBUG_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `debug_oe` reader - "]
38pub type DEBUG_OE_R = crate::BitReader<bool>;
39#[doc = "Field `debug_oe` writer - "]
40pub type DEBUG_OE_W<'a, const O: u8> = crate::BitWriter<'a, u32, DEBUG_SPEC, bool, O>;
41#[doc = "Field `debug_i` reader - "]
42pub type DEBUG_I_R = crate::FieldReader<u32, u32>;
43impl R {
44 #[doc = "Bit 0"]
45 #[inline(always)]
46 pub fn debug_oe(&self) -> DEBUG_OE_R {
47 DEBUG_OE_R::new((self.bits & 1) != 0)
48 }
49 #[doc = "Bits 1:31"]
50 #[inline(always)]
51 pub fn debug_i(&self) -> DEBUG_I_R {
52 DEBUG_I_R::new((self.bits >> 1) & 0x7fff_ffff)
53 }
54}
55impl W {
56 #[doc = "Bit 0"]
57 #[inline(always)]
58 #[must_use]
59 pub fn debug_oe(&mut self) -> DEBUG_OE_W<0> {
60 DEBUG_OE_W::new(self)
61 }
62 #[doc = "Writes raw bits to the register."]
63 #[inline(always)]
64 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
65 self.0.bits(bits);
66 self
67 }
68}
69#[doc = "debug.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [debug](index.html) module"]
70pub struct DEBUG_SPEC;
71impl crate::RegisterSpec for DEBUG_SPEC {
72 type Ux = u32;
73}
74#[doc = "`read()` method returns [debug::R](R) reader structure"]
75impl crate::Readable for DEBUG_SPEC {
76 type Reader = R;
77}
78#[doc = "`write(|w| ..)` method takes [debug::W](W) writer structure"]
79impl crate::Writable for DEBUG_SPEC {
80 type Writer = W;
81 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
82 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
83}
84#[doc = "`reset()` method sets debug to value 0"]
85impl crate::Resettable for DEBUG_SPEC {
86 const RESET_VALUE: Self::Ux = 0;
87}