atsamd51j/core_debug/
dcrsr.rs
1#[doc = "Register `DCRSR` writer"]
2pub type W = crate::W<DcrsrSpec>;
3#[doc = "Field `REGSEL` writer - "]
4pub type RegselW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5#[doc = "Field `REGWnR` writer - "]
6pub type RegwnRW<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8 #[doc = "Bits 0:4"]
9 #[inline(always)]
10 #[must_use]
11 pub fn regsel(&mut self) -> RegselW<DcrsrSpec> {
12 RegselW::new(self, 0)
13 }
14 #[doc = "Bit 16"]
15 #[inline(always)]
16 #[must_use]
17 pub fn regwn_r(&mut self) -> RegwnRW<DcrsrSpec> {
18 RegwnRW::new(self, 16)
19 }
20}
21#[doc = "Debug Core Register Selector Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dcrsr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct DcrsrSpec;
23impl crate::RegisterSpec for DcrsrSpec {
24 type Ux = u32;
25}
26#[doc = "`write(|w| ..)` method takes [`dcrsr::W`](W) writer structure"]
27impl crate::Writable for DcrsrSpec {
28 type Safety = crate::Unsafe;
29 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
30 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
31}
32#[doc = "`reset()` method sets DCRSR to value 0"]
33impl crate::Resettable for DcrsrSpec {
34 const RESET_VALUE: u32 = 0;
35}