1#[doc = "Register `CR` writer"]
2pub type W = crate::W<CrSpec>;
3#[doc = "Field `RSTRX` writer - Reset Receiver"]
4pub type RstrxW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `RSTTX` writer - Reset Transmitter"]
6pub type RsttxW<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `RXEN` writer - Receiver Enable"]
8pub type RxenW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `RXDIS` writer - Receiver Disable"]
10pub type RxdisW<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `TXEN` writer - Transmitter Enable"]
12pub type TxenW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TXDIS` writer - Transmitter Disable"]
14pub type TxdisW<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `RSTSTA` writer - Reset Status Bits"]
16pub type RststaW<'a, REG> = crate::BitWriter<'a, REG>;
17impl W {
18 #[doc = "Bit 2 - Reset Receiver"]
19 #[inline(always)]
20 #[must_use]
21 pub fn rstrx(&mut self) -> RstrxW<CrSpec> {
22 RstrxW::new(self, 2)
23 }
24 #[doc = "Bit 3 - Reset Transmitter"]
25 #[inline(always)]
26 #[must_use]
27 pub fn rsttx(&mut self) -> RsttxW<CrSpec> {
28 RsttxW::new(self, 3)
29 }
30 #[doc = "Bit 4 - Receiver Enable"]
31 #[inline(always)]
32 #[must_use]
33 pub fn rxen(&mut self) -> RxenW<CrSpec> {
34 RxenW::new(self, 4)
35 }
36 #[doc = "Bit 5 - Receiver Disable"]
37 #[inline(always)]
38 #[must_use]
39 pub fn rxdis(&mut self) -> RxdisW<CrSpec> {
40 RxdisW::new(self, 5)
41 }
42 #[doc = "Bit 6 - Transmitter Enable"]
43 #[inline(always)]
44 #[must_use]
45 pub fn txen(&mut self) -> TxenW<CrSpec> {
46 TxenW::new(self, 6)
47 }
48 #[doc = "Bit 7 - Transmitter Disable"]
49 #[inline(always)]
50 #[must_use]
51 pub fn txdis(&mut self) -> TxdisW<CrSpec> {
52 TxdisW::new(self, 7)
53 }
54 #[doc = "Bit 8 - Reset Status Bits"]
55 #[inline(always)]
56 #[must_use]
57 pub fn rststa(&mut self) -> RststaW<CrSpec> {
58 RststaW::new(self, 8)
59 }
60}
61#[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)."]
62pub struct CrSpec;
63impl crate::RegisterSpec for CrSpec {
64 type Ux = u32;
65}
66#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"]
67impl crate::Writable for CrSpec {
68 type Safety = crate::Unsafe;
69 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
70 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
71}