PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Macros
Card Status (CMD13) Bits
PDL API Reference » SD Host (SD Host Controller) » Macros

## General Description

The masks below can be used with the Cy_SD_Host_GetCardStatus function.

## Macros
#define | CY_SD_HOST_CMD13_OUT_OF_RANGE (31U)
| The command's argument is out of range.
#define | CY_SD_HOST_CMD13_ADDRESS_ERROR (30U)
| The address does not match the block length.
#define | CY_SD_HOST_CMD13_BLOCK_LEN_ERROR (29U)
| The block length is not allowed for this card.
#define | CY_SD_HOST_CMD13_ERASE_SEQ_ERROR (28U)
| An error in the sequence of erase commands occurred.
#define | CY_SD_HOST_CMD13_ERASE_PARAM (27U)
| An invalid selection of write blocks for erase occurred.
#define | CY_SD_HOST_CMD13_WP_VIOLATION (26U)
| The host attempts to write to a protected block or to the permanent write-protected card.
#define | CY_SD_HOST_CMD13_CARD_IS_LOCKED (25U)
| The card is locked by the host.
#define | CY_SD_HOST_CMD13_LOCK_ULOCK_FAILED (24U)
| A sequence or password error occurred has been detected in the lock/unlock card command.
#define | CY_SD_HOST_CMD13_COM_CRC_ERROR (23U)
| The CRC of the previous command failed.
#define | CY_SD_HOST_CMD13_ILLEGAL_COMMAND (22U)
| The command is not legal for the card state.
#define | CY_SD_HOST_CMD13_CARD_ECC_FAILED (21U)
| The card internal ECC failed.
#define | CY_SD_HOST_CMD13_CC_ERROR (20U)
| An internal card-controller error.
#define | CY_SD_HOST_CMD13_ERROR (19U)
| A general or unknown error occurred.
#define | CY_SD_HOST_CMD13_CSD_OVERWRITE (16U)
| Can be either one of the following errors: More...
#define | CY_SD_HOST_CMD13_WP_ERASE_SKIP (15U)
| Set when only partial address space was erased due to existing write protected blocks or a temporary or permanent write protected card was erased.
#define | CY_SD_HOST_CMD13_CARD_ECC_DISABLED (14U)
| The command has been executed without using the internal ECC.
#define | CY_SD_HOST_CMD13_CURRENT_STATE (9U)
| The state of the card.
#define | CY_SD_HOST_CMD13_READY_FOR_DATA (8U)
| The buffer is empty on the bus.
#define | CY_SD_HOST_CMD13_APP_CMD (5U)
| The card will expect ACMD, or an indication that the command has been interpreted as ACMD.
#define | CY_SD_HOST_CMD13_AKE_SEQ_ERROR (3U)
| Error in the sequence of the authentication process.
#define | CY_SD_HOST_CMD13_CURRENT_STATE_MSK (0x00001E00UL)
| The current state mask of the card.

## Macro Definition Documentation

## ◆ CY_SD_HOST_CMD13_CSD_OVERWRITE

#define CY_SD_HOST_CMD13_CSD_OVERWRITE (16U)

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.