1#[doc = "Register `CCR2` writer"]
2pub type W = crate::W<Ccr2Spec>;
3#[doc = "Field `CLKEN` writer - Counter Clock Enable Command"]
4pub type ClkenW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `CLKDIS` writer - Counter Clock Disable Command"]
6pub type ClkdisW<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `SWTRG` writer - Software Trigger Command"]
8pub type SwtrgW<'a, REG> = crate::BitWriter<'a, REG>;
9impl W {
10    #[doc = "Bit 0 - Counter Clock Enable Command"]
11    #[inline(always)]
12    #[must_use]
13    pub fn clken(&mut self) -> ClkenW<Ccr2Spec> {
14        ClkenW::new(self, 0)
15    }
16    #[doc = "Bit 1 - Counter Clock Disable Command"]
17    #[inline(always)]
18    #[must_use]
19    pub fn clkdis(&mut self) -> ClkdisW<Ccr2Spec> {
20        ClkdisW::new(self, 1)
21    }
22    #[doc = "Bit 2 - Software Trigger Command"]
23    #[inline(always)]
24    #[must_use]
25    pub fn swtrg(&mut self) -> SwtrgW<Ccr2Spec> {
26        SwtrgW::new(self, 2)
27    }
28}
29#[doc = "Channel Control Register (channel = 2)\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccr2::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct Ccr2Spec;
31impl crate::RegisterSpec for Ccr2Spec {
32    type Ux = u32;
33}
34#[doc = "`write(|w| ..)` method takes [`ccr2::W`](W) writer structure"]
35impl crate::Writable for Ccr2Spec {
36    type Safety = crate::Unsafe;
37    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
38    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
39}