Information Technology Reference
In-Depth Information
The RESPONSE_2 union defines a word, bytes, or bits that can hold an R2
response:
typedef union
{
word _word;
struct
{
byte _byte0;
byte _byte1;
};
struct
{
unsigned IN_IDLE_STATE:1;
unsigned ERASE_RESET:1;
unsigned ILLEGAL_CMD:1;
unsigned CRC_ERR:1;
unsigned ERASE_SEQ_ERR:1;
unsigned ADDRESS_ERR:1;
unsigned PARAM_ERR:1;
unsigned B7:1;
unsigned CARD_IS_LOCKED:1;
unsigned WP_ERASE_SKIP_LK_FAIL:1;
unsigned ERROR:1;
unsigned CC_ERROR:1;
unsigned CARD_ECC_FAIL:1;
unsigned WP_VIOLATION:1;
unsigned ERASE_PARAM:1;
unsigned OUTRANGE_CSD_OVERWRITE:1;
};
} RESPONSE_2;
R3
Response type R3 is five bytes. In SPI mode, the only command that uses
this response type is READ_OCR, which requests the contents of the oper-
ation conditions register. The first byte is identical to the R1 format. The
next four bytes are the contents of the register.
Search WWH ::




Custom Search