@@ -304,7 +304,7 @@ impl DWT {
304304}
305305
306306/// Whether the comparator should match on read, write or read/write operations.
307- #[ derive( Debug , PartialEq ) ]
307+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
308308pub enum AccessType {
309309 /// Generate packet only when matched adress is read from.
310310 ReadOnly ,
@@ -315,7 +315,7 @@ pub enum AccessType {
315315}
316316
317317/// The sequence of packet(s) that should be emitted on comparator match.
318- #[ derive( Debug , PartialEq ) ]
318+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
319319pub enum EmitOption {
320320 /// Emit only trace data value packet.
321321 Data ,
@@ -332,7 +332,7 @@ pub enum EmitOption {
332332}
333333
334334/// Settings for address matching
335- #[ derive( Debug ) ]
335+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
336336pub struct ComparatorAddressSettings {
337337 /// The address to match against.
338338 pub address : u32 ,
@@ -345,15 +345,15 @@ pub struct ComparatorAddressSettings {
345345}
346346
347347/// The available functions of a DWT comparator.
348- #[ derive( Debug ) ]
348+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
349349#[ non_exhaustive]
350350pub enum ComparatorFunction {
351351 /// Compare accessed memory addresses.
352352 Address ( ComparatorAddressSettings ) ,
353353}
354354
355355/// Possible error values returned on [Comparator::configure].
356- #[ derive( Debug ) ]
356+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
357357#[ non_exhaustive]
358358pub enum DwtError {
359359 /// Invalid combination of [AccessType] and [EmitOption].
0 commit comments