@@ -304,7 +304,7 @@ impl DWT {
304
304
}
305
305
306
306
/// Whether the comparator should match on read, write or read/write operations.
307
- #[ derive( Debug , PartialEq ) ]
307
+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
308
308
pub enum AccessType {
309
309
/// Generate packet only when matched adress is read from.
310
310
ReadOnly ,
@@ -315,7 +315,7 @@ pub enum AccessType {
315
315
}
316
316
317
317
/// The sequence of packet(s) that should be emitted on comparator match.
318
- #[ derive( Debug , PartialEq ) ]
318
+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
319
319
pub enum EmitOption {
320
320
/// Emit only trace data value packet.
321
321
Data ,
@@ -332,7 +332,7 @@ pub enum EmitOption {
332
332
}
333
333
334
334
/// Settings for address matching
335
- #[ derive( Debug ) ]
335
+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
336
336
pub struct ComparatorAddressSettings {
337
337
/// The address to match against.
338
338
pub address : u32 ,
@@ -345,15 +345,15 @@ pub struct ComparatorAddressSettings {
345
345
}
346
346
347
347
/// The available functions of a DWT comparator.
348
- #[ derive( Debug ) ]
348
+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
349
349
#[ non_exhaustive]
350
350
pub enum ComparatorFunction {
351
351
/// Compare accessed memory addresses.
352
352
Address ( ComparatorAddressSettings ) ,
353
353
}
354
354
355
355
/// Possible error values returned on [Comparator::configure].
356
- #[ derive( Debug ) ]
356
+ #[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
357
357
#[ non_exhaustive]
358
358
pub enum DwtError {
359
359
/// Invalid combination of [AccessType] and [EmitOption].
0 commit comments