Card Status (CMD13) Bits

group group_sd_host_macros_card_status

The masks below can be used with the Cy_SD_Host_GetCardStatus function.

Defines

CY_SD_HOST_CMD13_OUT_OF_RANGE

The command’s argument is out of range.

CY_SD_HOST_CMD13_ADDRESS_ERROR

The address does not match the block length.

CY_SD_HOST_CMD13_BLOCK_LEN_ERROR

The block length is not allowed for this card.

CY_SD_HOST_CMD13_ERASE_SEQ_ERROR

An error in the sequence of erase commands occurred.

CY_SD_HOST_CMD13_ERASE_PARAM

An invalid selection of write blocks for erase occurred.

CY_SD_HOST_CMD13_WP_VIOLATION

The host attempts to write to a protected block or to the permanent write-protected card.

CY_SD_HOST_CMD13_CARD_IS_LOCKED

The card is locked by the host.

CY_SD_HOST_CMD13_LOCK_ULOCK_FAILED

A sequence or password error occurred has been detected in the lock/unlock card command.

CY_SD_HOST_CMD13_COM_CRC_ERROR

The CRC of the previous command failed.

CY_SD_HOST_CMD13_ILLEGAL_COMMAND

The command is not legal for the card state.

CY_SD_HOST_CMD13_CARD_ECC_FAILED

The card internal ECC failed.

CY_SD_HOST_CMD13_CC_ERROR

An internal card-controller error.

CY_SD_HOST_CMD13_ERROR

A general or unknown error occurred.

CY_SD_HOST_CMD13_CSD_OVERWRITE

Can be either one of the following errors:

  • The read only section of the CSD does not match the card content.

  • An attempt to reverse the copy (set as original) or permanent WP (unprotected) bits was made.

CY_SD_HOST_CMD13_WP_ERASE_SKIP

Set when only partial address space was erased due to existing write protected blocks or a temporary or permanent write protected card was erased.

CY_SD_HOST_CMD13_CARD_ECC_DISABLED

The command has been executed without using the internal ECC.

CY_SD_HOST_CMD13_CURRENT_STATE

The state of the card.

CY_SD_HOST_CMD13_READY_FOR_DATA

The buffer is empty on the bus.

CY_SD_HOST_CMD13_APP_CMD

The card will expect ACMD, or an indication that the command has been interpreted as ACMD.

CY_SD_HOST_CMD13_AKE_SEQ_ERROR

Error in the sequence of the authentication process.

CY_SD_HOST_CMD13_CURRENT_STATE_MSK

The current state mask of the card.