1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#[doc = "Register `MOCTR` writer"]
pub type W = crate::W<MOCTR_SPEC>;
#[doc = "Field `RESRXPND` writer - Reset/Set Receive Pending"]
pub type RESRXPND_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESTXPND` writer - Reset/Set Transmit Pending"]
pub type RESTXPND_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESRXUPD` writer - Reset/Set Receive Updating"]
pub type RESRXUPD_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESNEWDAT` writer - Reset/Set New Data"]
pub type RESNEWDAT_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESMSGLST` writer - Reset/Set Message Lost"]
pub type RESMSGLST_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESMSGVAL` writer - Reset/Set Message Valid"]
pub type RESMSGVAL_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESRTSEL` writer - Reset/Set Receive/Transmit Selected"]
pub type RESRTSEL_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESRXEN` writer - Reset/Set Receive Enable"]
pub type RESRXEN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESTXRQ` writer - Reset/Set Transmit Request"]
pub type RESTXRQ_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESTXEN0` writer - Reset/Set Transmit Enable 0"]
pub type RESTXEN0_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESTXEN1` writer - Reset/Set Transmit Enable 1"]
pub type RESTXEN1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESDIR` writer - Reset/Set Message Direction"]
pub type RESDIR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETRXPND` writer - Reset/Set Receive Pending"]
pub type SETRXPND_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETTXPND` writer - Reset/Set Transmit Pending"]
pub type SETTXPND_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETRXUPD` writer - Reset/Set Receive Updating"]
pub type SETRXUPD_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETNEWDAT` writer - Reset/Set New Data"]
pub type SETNEWDAT_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETMSGLST` writer - Reset/Set Message Lost"]
pub type SETMSGLST_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETMSGVAL` writer - Reset/Set Message Valid"]
pub type SETMSGVAL_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETRTSEL` writer - Reset/Set Receive/Transmit Selected"]
pub type SETRTSEL_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETRXEN` writer - Reset/Set Receive Enable"]
pub type SETRXEN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETTXRQ` writer - Reset/Set Transmit Request"]
pub type SETTXRQ_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETTXEN0` writer - Reset/Set Transmit Enable 0"]
pub type SETTXEN0_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETTXEN1` writer - Reset/Set Transmit Enable 1"]
pub type SETTXEN1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETDIR` writer - Reset/Set Message Direction"]
pub type SETDIR_W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
    #[doc = "Bit 0 - Reset/Set Receive Pending"]
    #[inline(always)]
    #[must_use]
    pub fn resrxpnd(&mut self) -> RESRXPND_W<MOCTR_SPEC> {
        RESRXPND_W::new(self, 0)
    }
    #[doc = "Bit 1 - Reset/Set Transmit Pending"]
    #[inline(always)]
    #[must_use]
    pub fn restxpnd(&mut self) -> RESTXPND_W<MOCTR_SPEC> {
        RESTXPND_W::new(self, 1)
    }
    #[doc = "Bit 2 - Reset/Set Receive Updating"]
    #[inline(always)]
    #[must_use]
    pub fn resrxupd(&mut self) -> RESRXUPD_W<MOCTR_SPEC> {
        RESRXUPD_W::new(self, 2)
    }
    #[doc = "Bit 3 - Reset/Set New Data"]
    #[inline(always)]
    #[must_use]
    pub fn resnewdat(&mut self) -> RESNEWDAT_W<MOCTR_SPEC> {
        RESNEWDAT_W::new(self, 3)
    }
    #[doc = "Bit 4 - Reset/Set Message Lost"]
    #[inline(always)]
    #[must_use]
    pub fn resmsglst(&mut self) -> RESMSGLST_W<MOCTR_SPEC> {
        RESMSGLST_W::new(self, 4)
    }
    #[doc = "Bit 5 - Reset/Set Message Valid"]
    #[inline(always)]
    #[must_use]
    pub fn resmsgval(&mut self) -> RESMSGVAL_W<MOCTR_SPEC> {
        RESMSGVAL_W::new(self, 5)
    }
    #[doc = "Bit 6 - Reset/Set Receive/Transmit Selected"]
    #[inline(always)]
    #[must_use]
    pub fn resrtsel(&mut self) -> RESRTSEL_W<MOCTR_SPEC> {
        RESRTSEL_W::new(self, 6)
    }
    #[doc = "Bit 7 - Reset/Set Receive Enable"]
    #[inline(always)]
    #[must_use]
    pub fn resrxen(&mut self) -> RESRXEN_W<MOCTR_SPEC> {
        RESRXEN_W::new(self, 7)
    }
    #[doc = "Bit 8 - Reset/Set Transmit Request"]
    #[inline(always)]
    #[must_use]
    pub fn restxrq(&mut self) -> RESTXRQ_W<MOCTR_SPEC> {
        RESTXRQ_W::new(self, 8)
    }
    #[doc = "Bit 9 - Reset/Set Transmit Enable 0"]
    #[inline(always)]
    #[must_use]
    pub fn restxen0(&mut self) -> RESTXEN0_W<MOCTR_SPEC> {
        RESTXEN0_W::new(self, 9)
    }
    #[doc = "Bit 10 - Reset/Set Transmit Enable 1"]
    #[inline(always)]
    #[must_use]
    pub fn restxen1(&mut self) -> RESTXEN1_W<MOCTR_SPEC> {
        RESTXEN1_W::new(self, 10)
    }
    #[doc = "Bit 11 - Reset/Set Message Direction"]
    #[inline(always)]
    #[must_use]
    pub fn resdir(&mut self) -> RESDIR_W<MOCTR_SPEC> {
        RESDIR_W::new(self, 11)
    }
    #[doc = "Bit 16 - Reset/Set Receive Pending"]
    #[inline(always)]
    #[must_use]
    pub fn setrxpnd(&mut self) -> SETRXPND_W<MOCTR_SPEC> {
        SETRXPND_W::new(self, 16)
    }
    #[doc = "Bit 17 - Reset/Set Transmit Pending"]
    #[inline(always)]
    #[must_use]
    pub fn settxpnd(&mut self) -> SETTXPND_W<MOCTR_SPEC> {
        SETTXPND_W::new(self, 17)
    }
    #[doc = "Bit 18 - Reset/Set Receive Updating"]
    #[inline(always)]
    #[must_use]
    pub fn setrxupd(&mut self) -> SETRXUPD_W<MOCTR_SPEC> {
        SETRXUPD_W::new(self, 18)
    }
    #[doc = "Bit 19 - Reset/Set New Data"]
    #[inline(always)]
    #[must_use]
    pub fn setnewdat(&mut self) -> SETNEWDAT_W<MOCTR_SPEC> {
        SETNEWDAT_W::new(self, 19)
    }
    #[doc = "Bit 20 - Reset/Set Message Lost"]
    #[inline(always)]
    #[must_use]
    pub fn setmsglst(&mut self) -> SETMSGLST_W<MOCTR_SPEC> {
        SETMSGLST_W::new(self, 20)
    }
    #[doc = "Bit 21 - Reset/Set Message Valid"]
    #[inline(always)]
    #[must_use]
    pub fn setmsgval(&mut self) -> SETMSGVAL_W<MOCTR_SPEC> {
        SETMSGVAL_W::new(self, 21)
    }
    #[doc = "Bit 22 - Reset/Set Receive/Transmit Selected"]
    #[inline(always)]
    #[must_use]
    pub fn setrtsel(&mut self) -> SETRTSEL_W<MOCTR_SPEC> {
        SETRTSEL_W::new(self, 22)
    }
    #[doc = "Bit 23 - Reset/Set Receive Enable"]
    #[inline(always)]
    #[must_use]
    pub fn setrxen(&mut self) -> SETRXEN_W<MOCTR_SPEC> {
        SETRXEN_W::new(self, 23)
    }
    #[doc = "Bit 24 - Reset/Set Transmit Request"]
    #[inline(always)]
    #[must_use]
    pub fn settxrq(&mut self) -> SETTXRQ_W<MOCTR_SPEC> {
        SETTXRQ_W::new(self, 24)
    }
    #[doc = "Bit 25 - Reset/Set Transmit Enable 0"]
    #[inline(always)]
    #[must_use]
    pub fn settxen0(&mut self) -> SETTXEN0_W<MOCTR_SPEC> {
        SETTXEN0_W::new(self, 25)
    }
    #[doc = "Bit 26 - Reset/Set Transmit Enable 1"]
    #[inline(always)]
    #[must_use]
    pub fn settxen1(&mut self) -> SETTXEN1_W<MOCTR_SPEC> {
        SETTXEN1_W::new(self, 26)
    }
    #[doc = "Bit 27 - Reset/Set Message Direction"]
    #[inline(always)]
    #[must_use]
    pub fn setdir(&mut self) -> SETDIR_W<MOCTR_SPEC> {
        SETDIR_W::new(self, 27)
    }
}
#[doc = "Message Object Control Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`moctr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MOCTR_SPEC;
impl crate::RegisterSpec for MOCTR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`moctr::W`](W) writer structure"]
impl crate::Writable for MOCTR_SPEC {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets MOCTR to value 0"]
impl crate::Resettable for MOCTR_SPEC {
    const RESET_VALUE: u32 = 0;
}