1#[doc = "Register `_1TOKEN0` reader"]
2pub type R = crate::R<_1TOKEN0_SPEC>;
3#[doc = "Register `_1TOKEN0` writer"]
4pub type W = crate::W<_1TOKEN0_SPEC>;
5#[doc = "Field `SLC1_TOKEN0_WDATA` writer - "]
6pub type SLC1_TOKEN0_WDATA_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
7#[doc = "Field `SLC1_TOKEN0_WR` writer - "]
8pub type SLC1_TOKEN0_WR_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SLC1_TOKEN0_INC` writer - "]
10pub type SLC1_TOKEN0_INC_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `SLC1_TOKEN0_INC_MORE` writer - "]
12pub type SLC1_TOKEN0_INC_MORE_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SLC1_TOKEN0` reader - "]
14pub type SLC1_TOKEN0_R = crate::FieldReader<u16>;
15impl R {
16 #[doc = "Bits 16:27"]
17 #[inline(always)]
18 pub fn slc1_token0(&self) -> SLC1_TOKEN0_R {
19 SLC1_TOKEN0_R::new(((self.bits >> 16) & 0x0fff) as u16)
20 }
21}
22#[cfg(feature = "impl-register-debug")]
23impl core::fmt::Debug for R {
24 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
25 f.debug_struct("_1TOKEN0")
26 .field("slc1_token0", &self.slc1_token0())
27 .finish()
28 }
29}
30impl W {
31 #[doc = "Bits 0:11"]
32 #[inline(always)]
33 pub fn slc1_token0_wdata(&mut self) -> SLC1_TOKEN0_WDATA_W<_1TOKEN0_SPEC> {
34 SLC1_TOKEN0_WDATA_W::new(self, 0)
35 }
36 #[doc = "Bit 12"]
37 #[inline(always)]
38 pub fn slc1_token0_wr(&mut self) -> SLC1_TOKEN0_WR_W<_1TOKEN0_SPEC> {
39 SLC1_TOKEN0_WR_W::new(self, 12)
40 }
41 #[doc = "Bit 13"]
42 #[inline(always)]
43 pub fn slc1_token0_inc(&mut self) -> SLC1_TOKEN0_INC_W<_1TOKEN0_SPEC> {
44 SLC1_TOKEN0_INC_W::new(self, 13)
45 }
46 #[doc = "Bit 14"]
47 #[inline(always)]
48 pub fn slc1_token0_inc_more(&mut self) -> SLC1_TOKEN0_INC_MORE_W<_1TOKEN0_SPEC> {
49 SLC1_TOKEN0_INC_MORE_W::new(self, 14)
50 }
51}
52#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`_1token0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`_1token0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
53pub struct _1TOKEN0_SPEC;
54impl crate::RegisterSpec for _1TOKEN0_SPEC {
55 type Ux = u32;
56}
57#[doc = "`read()` method returns [`_1token0::R`](R) reader structure"]
58impl crate::Readable for _1TOKEN0_SPEC {}
59#[doc = "`write(|w| ..)` method takes [`_1token0::W`](W) writer structure"]
60impl crate::Writable for _1TOKEN0_SPEC {
61 type Safety = crate::Unsafe;
62}
63#[doc = "`reset()` method sets _1TOKEN0 to value 0"]
64impl crate::Resettable for _1TOKEN0_SPEC {}