1#[doc = "Register `CR` writer"]
2pub type W = crate::W<CrSpec>;
3#[doc = "Field `SWRST` writer - Software Reset"]
4pub type SwrstW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `START` writer - Start Conversion"]
6pub type StartW<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8 #[doc = "Bit 0 - Software Reset"]
9 #[inline(always)]
10 #[must_use]
11 pub fn swrst(&mut self) -> SwrstW<CrSpec> {
12 SwrstW::new(self, 0)
13 }
14 #[doc = "Bit 1 - Start Conversion"]
15 #[inline(always)]
16 #[must_use]
17 pub fn start(&mut self) -> StartW<CrSpec> {
18 StartW::new(self, 1)
19 }
20}
21#[doc = "Control Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct CrSpec;
23impl crate::RegisterSpec for CrSpec {
24 type Ux = u32;
25}
26#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"]
27impl crate::Writable for CrSpec {
28 type Safety = crate::Unsafe;
29 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
30 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
31}