File tree 2 files changed +19
-0
lines changed
src/modm/platform/dma/samx7x
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,9 @@ class LinkedListTransfer : public DmaBase
126
126
127
127
constexpr LinkedListTransfer ();
128
128
129
+ constexpr LinkedListTransfer (const LinkedListTransfer& other);
130
+ constexpr LinkedListTransfer& operator =(const LinkedListTransfer& other);
131
+
129
132
template <std::size_t index, typename ... Ds>
130
133
friend auto descriptor (LinkedListTransfer<Ds...>& transfer);
131
134
Original file line number Diff line number Diff line change @@ -188,6 +188,22 @@ constexpr LinkedListTransfer<Descriptors...>::LinkedListTransfer()
188
188
detail::SetupList<0 , std::tuple<Descriptors...>>::setup (descriptors_);
189
189
}
190
190
191
+ template <typename ... Descriptors>
192
+ constexpr LinkedListTransfer<Descriptors...>::LinkedListTransfer(const LinkedListTransfer& other)
193
+ : descriptors_{other.descriptors_ }
194
+ {
195
+ detail::SetupList<0 , std::tuple<Descriptors...>>::setAddress (descriptors_);
196
+ }
197
+
198
+ template <typename ... Descriptors>
199
+ constexpr LinkedListTransfer<Descriptors...>&
200
+ LinkedListTransfer<Descriptors...>::operator =(const LinkedListTransfer& other)
201
+ {
202
+ descriptors_ = other.descriptors_ ;
203
+ detail::SetupList<0 , std::tuple<Descriptors...>>::setAddress (descriptors_);
204
+ return *this ;
205
+ }
206
+
191
207
template <std::size_t index, typename ... Descriptors>
192
208
auto descriptor (LinkedListTransfer<Descriptors...>& transfer)
193
209
{
You can’t perform that action at this time.
0 commit comments