diff options
Diffstat (limited to 'src/peripheral/dwt.rs')
-rw-r--r-- | src/peripheral/dwt.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/peripheral/dwt.rs b/src/peripheral/dwt.rs index 0769e96..7fc9478 100644 --- a/src/peripheral/dwt.rs +++ b/src/peripheral/dwt.rs @@ -304,7 +304,7 @@ impl DWT { } /// Whether the comparator should match on read, write or read/write operations. -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq, Copy, Clone)] pub enum AccessType { /// Generate packet only when matched adress is read from. ReadOnly, @@ -315,7 +315,7 @@ pub enum AccessType { } /// The sequence of packet(s) that should be emitted on comparator match. -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq, Copy, Clone)] pub enum EmitOption { /// Emit only trace data value packet. Data, @@ -332,7 +332,7 @@ pub enum EmitOption { } /// Settings for address matching -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq, Copy, Clone)] pub struct ComparatorAddressSettings { /// The address to match against. pub address: u32, @@ -345,7 +345,7 @@ pub struct ComparatorAddressSettings { } /// The available functions of a DWT comparator. -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq, Copy, Clone)] #[non_exhaustive] pub enum ComparatorFunction { /// Compare accessed memory addresses. @@ -353,7 +353,7 @@ pub enum ComparatorFunction { } /// Possible error values returned on [Comparator::configure]. -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq, Copy, Clone)] #[non_exhaustive] pub enum DwtError { /// Invalid combination of [AccessType] and [EmitOption]. |