xmc4300/sdmmc/
debug_sel.rs1#[doc = "Register `DEBUG_SEL` writer"]
2pub type W = crate::W<DEBUG_SEL_SPEC>;
3#[doc = "Debug_sel\n\nValue on reset: 0"]
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5pub enum DEBUG_SEL_A {
6 #[doc = "0: receiver module and fifo_ctrl module signals are probed out"]
7 VALUE1 = 0,
8 #[doc = "1: cmd register, Interrupt status, transmitter module and clk sdcard signals are probed out."]
9 VALUE2 = 1,
10}
11impl From<DEBUG_SEL_A> for bool {
12 #[inline(always)]
13 fn from(variant: DEBUG_SEL_A) -> Self {
14 variant as u8 != 0
15 }
16}
17#[doc = "Field `DEBUG_SEL` writer - Debug_sel"]
18pub type DEBUG_SEL_W<'a, REG> = crate::BitWriter<'a, REG, DEBUG_SEL_A>;
19impl<'a, REG> DEBUG_SEL_W<'a, REG>
20where
21 REG: crate::Writable + crate::RegisterSpec,
22{
23 #[doc = "receiver module and fifo_ctrl module signals are probed out"]
24 #[inline(always)]
25 pub fn value1(self) -> &'a mut crate::W<REG> {
26 self.variant(DEBUG_SEL_A::VALUE1)
27 }
28 #[doc = "cmd register, Interrupt status, transmitter module and clk sdcard signals are probed out."]
29 #[inline(always)]
30 pub fn value2(self) -> &'a mut crate::W<REG> {
31 self.variant(DEBUG_SEL_A::VALUE2)
32 }
33}
34impl W {
35 #[doc = "Bit 0 - Debug_sel"]
36 #[inline(always)]
37 pub fn debug_sel(&mut self) -> DEBUG_SEL_W<DEBUG_SEL_SPEC> {
38 DEBUG_SEL_W::new(self, 0)
39 }
40}
41#[doc = "Debug Selection Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`debug_sel::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
42pub struct DEBUG_SEL_SPEC;
43impl crate::RegisterSpec for DEBUG_SEL_SPEC {
44 type Ux = u32;
45}
46#[doc = "`write(|w| ..)` method takes [`debug_sel::W`](W) writer structure"]
47impl crate::Writable for DEBUG_SEL_SPEC {
48 type Safety = crate::Unsafe;
49 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
50 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
51}
52#[doc = "`reset()` method sets DEBUG_SEL to value 0"]
53impl crate::Resettable for DEBUG_SEL_SPEC {
54 const RESET_VALUE: u32 = 0;
55}