File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -91,20 +91,24 @@ pub const DATA_RES_MASK: u8 = 0x1F;
91
91
pub const DATA_RES_ACCEPTED : u8 = 0x05 ;
92
92
93
93
/// Card Specific Data, version 1
94
- #[ derive( Default ) ]
94
+ #[ derive( Default , Debug ) ]
95
+ #[ cfg_attr( feature = "defmt-log" , derive( defmt:: Format ) ) ]
95
96
pub struct CsdV1 {
96
97
/// The 16-bytes of data in this Card Specific Data block
97
98
pub data : [ u8 ; 16 ] ,
98
99
}
99
100
100
101
/// Card Specific Data, version 2
101
- #[ derive( Default ) ]
102
+ #[ derive( Default , Debug ) ]
103
+ #[ cfg_attr( feature = "defmt-log" , derive( defmt:: Format ) ) ]
102
104
pub struct CsdV2 {
103
105
/// The 16-bytes of data in this Card Specific Data block
104
106
pub data : [ u8 ; 16 ] ,
105
107
}
106
108
107
109
/// Card Specific Data
110
+ #[ derive( Debug ) ]
111
+ #[ cfg_attr( feature = "defmt-log" , derive( defmt:: Format ) ) ]
108
112
pub enum Csd {
109
113
/// A version 1 CSD
110
114
V1 ( CsdV1 ) ,
You can’t perform that action at this time.
0 commit comments