39 uint8_t
const CMD0 = 0X00;
41 uint8_t
const CMD8 = 0X08;
43 uint8_t
const CMD9 = 0X09;
45 uint8_t
const CMD10 = 0X0A;
47 uint8_t
const CMD12 = 0X0C;
49 uint8_t
const CMD13 = 0X0D;
51 uint8_t
const CMD17 = 0X11;
53 uint8_t
const CMD18 = 0X12;
55 uint8_t
const CMD24 = 0X18;
57 uint8_t
const CMD25 = 0X19;
59 uint8_t
const CMD32 = 0X20;
62 uint8_t
const CMD33 = 0X21;
64 uint8_t
const CMD38 = 0X26;
67 uint8_t
const CMD48 = 0x30;
69 uint8_t
const CMD49 = 0x31;
72 uint8_t
const CMD55 = 0X37;
74 uint8_t
const CMD58 = 0X3A;
77 uint8_t
const ACMD23 = 0X17;
80 uint8_t
const ACMD41 = 0X29;
83 uint8_t
const R1_READY_STATE = 0X00;
85 uint8_t
const R1_IDLE_STATE = 0X01;
87 uint8_t
const R1_ILLEGAL_COMMAND = 0X04;
89 uint8_t
const DATA_START_BLOCK = 0XFE;
91 uint8_t
const STOP_TRAN_TOKEN = 0XFD;
93 uint8_t
const WRITE_MULTIPLE_TOKEN = 0XFC;
95 uint8_t
const DATA_RES_MASK = 0X1F;
97 uint8_t
const DATA_RES_ACCEPTED = 0X05;
138 unsigned char reserved1 : 6;
139 unsigned char csd_ver : 2;
145 unsigned char tran_speed;
147 unsigned char ccc_high;
149 unsigned char read_bl_len : 4;
150 unsigned char ccc_low : 4;
152 unsigned char c_size_high : 2;
153 unsigned char reserved2 : 2;
154 unsigned char dsr_imp : 1;
155 unsigned char read_blk_misalign :1;
156 unsigned char write_blk_misalign : 1;
157 unsigned char read_bl_partial : 1;
159 unsigned char c_size_mid;
161 unsigned char vdd_r_curr_max : 3;
162 unsigned char vdd_r_curr_min : 3;
163 unsigned char c_size_low :2;
165 unsigned char c_size_mult_high : 2;
166 unsigned char vdd_w_cur_max : 3;
167 unsigned char vdd_w_curr_min : 3;
169 unsigned char sector_size_high : 6;
170 unsigned char erase_blk_en : 1;
171 unsigned char c_size_mult_low : 1;
173 unsigned char wp_grp_size : 7;
174 unsigned char sector_size_low : 1;
176 unsigned char write_bl_len_high : 2;
177 unsigned char r2w_factor : 3;
178 unsigned char reserved3 : 2;
179 unsigned char wp_grp_enable : 1;
181 unsigned char reserved4 : 5;
182 unsigned char write_partial : 1;
183 unsigned char write_bl_len_low : 2;
185 unsigned char reserved5: 2;
186 unsigned char file_format : 2;
187 unsigned char tmp_write_protect : 1;
188 unsigned char perm_write_protect : 1;
189 unsigned char copy : 1;
193 unsigned char always1 : 1;
194 unsigned char crc : 7;
200 unsigned char reserved1 : 6;
201 unsigned char csd_ver : 2;
209 unsigned char tran_speed;
211 unsigned char ccc_high;
215 unsigned char ccc_low : 4;
219 unsigned char dsr_imp : 1;
245 unsigned char wp_grp_size : 7;
258 unsigned char reserved6 : 5;
264 unsigned char reserved7: 2;
267 unsigned char tmp_write_protect : 1;
268 unsigned char perm_write_protect : 1;
269 unsigned char copy : 1;
char oid[2]
Definition: SdInfo.h:106
unsigned char prv_m
Definition: SdInfo.h:112
unsigned char mdt_month
Definition: SdInfo.h:125
char pnm[5]
Definition: SdInfo.h:109
unsigned char mdt_year_high
Definition: SdInfo.h:120
unsigned char reserved
Definition: SdInfo.h:122
unsigned char crc
Definition: SdInfo.h:132
unsigned char mid
Definition: SdInfo.h:103
uint32_t psn
Definition: SdInfo.h:117
unsigned char prv_n
Definition: SdInfo.h:114
unsigned char always1
Definition: SdInfo.h:130
unsigned char mdt_year_low
Definition: SdInfo.h:127
unsigned char file_format_grp
Definition: SdInfo.h:191
unsigned char reserved2
Definition: SdInfo.h:218
unsigned char reserved3
Definition: SdInfo.h:228
unsigned char sector_size_high
Definition: SdInfo.h:239
unsigned char c_size_mid
Definition: SdInfo.h:233
unsigned char c_size_high
Definition: SdInfo.h:230
unsigned char write_bl_len_low
Definition: SdInfo.h:262
unsigned char write_partial
Definition: SdInfo.h:260
unsigned char reserved4
Definition: SdInfo.h:243
unsigned char c_size_low
Definition: SdInfo.h:236
unsigned char read_bl_len
Definition: SdInfo.h:214
unsigned char r2w_factor
Definition: SdInfo.h:252
unsigned char erase_blk_en
Definition: SdInfo.h:241
unsigned char wp_grp_enable
Definition: SdInfo.h:256
unsigned char file_format
Definition: SdInfo.h:266
unsigned char nsac
Definition: SdInfo.h:207
unsigned char read_blk_misalign
Definition: SdInfo.h:221
unsigned char always1
Definition: SdInfo.h:274
unsigned char write_blk_misalign
Definition: SdInfo.h:223
unsigned char taac
Definition: SdInfo.h:204
unsigned char crc
Definition: SdInfo.h:276
unsigned char read_bl_partial
Definition: SdInfo.h:225
unsigned char reserved5
Definition: SdInfo.h:254
unsigned char sector_size_low
Definition: SdInfo.h:247
unsigned char file_format_grp
Definition: SdInfo.h:271
unsigned char write_bl_len_high
Definition: SdInfo.h:250