@@ -18,6 +18,7 @@ use super::Word;
18
18
/// Represents the options available for the padding and alignment step in the data transformation
19
19
/// pipeline
20
20
#[ derive( Clone , Copy , Debug , Default , PartialEq ) ]
21
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
21
22
pub ( crate ) enum PaddingAlignmentMode {
22
23
#[ default]
23
24
None ,
@@ -100,6 +101,7 @@ pub trait DestinationByteExchange {
100
101
/// source and destination word sizes, so the builder can be created without specifying the types
101
102
/// explicitly.
102
103
#[ derive( Clone , Copy , Debug , Default , PartialEq ) ]
104
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
103
105
pub struct DataTransformBuilder < S , D > {
104
106
_source_type : PhantomData < S > ,
105
107
_destination_type : PhantomData < D > ,
@@ -301,6 +303,7 @@ impl<S: Word> DestinationByteExchange for DataTransformBuilder<S, u32> {
301
303
/// DataTransform represents the configuration of the data transformation pipeline as produced
302
304
/// by the above builder structs.
303
305
#[ derive( Clone , Copy , Debug , Default , PartialEq ) ]
306
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
304
307
pub struct DataTransform {
305
308
pub ( crate ) source_byte_exchange : bool ,
306
309
pub ( crate ) padding_alignment : PaddingAlignmentMode ,
0 commit comments