PSoC 6 Peripheral Driver Library
Card Status (CMD13) Bits

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. More...
 
#define CY_SD_HOST_CMD13_ADDRESS_ERROR   (30U)
 The address does not match the block length. More...
 
#define CY_SD_HOST_CMD13_BLOCK_LEN_ERROR   (29U)
 The block length is not allowed for this card. More...
 
#define CY_SD_HOST_CMD13_ERASE_SEQ_ERROR   (28U)
 An error in the sequence of erase commands occurred. More...
 
#define CY_SD_HOST_CMD13_ERASE_PARAM   (27U)
 An invalid selection of write blocks for erase occurred. More...
 
#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. More...
 
#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. More...
 
#define CY_SD_HOST_CMD13_ILLEGAL_COMMAND   (22U)
 The command is not legal for the card state. More...
 
#define CY_SD_HOST_CMD13_CARD_ECC_FAILED   (21U)
 The card internal ECC failed. More...
 
#define CY_SD_HOST_CMD13_CC_ERROR   (20U)
 An internal card-controller error. More...
 
#define CY_SD_HOST_CMD13_ERROR   (19U)
 A general or unknown error occurred. More...
 
#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. More...
 
#define CY_SD_HOST_CMD13_READY_FOR_DATA   (8U)
 The buffer is empty on the bus. More...
 
#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. More...
 

Macro Definition Documentation

◆ CY_SD_HOST_CMD13_OUT_OF_RANGE

#define CY_SD_HOST_CMD13_OUT_OF_RANGE   (31U)

The command's argument is out of range.

◆ CY_SD_HOST_CMD13_ADDRESS_ERROR

#define CY_SD_HOST_CMD13_ADDRESS_ERROR   (30U)

The address does not match the block length.

◆ CY_SD_HOST_CMD13_BLOCK_LEN_ERROR

#define CY_SD_HOST_CMD13_BLOCK_LEN_ERROR   (29U)

The block length is not allowed for this card.

◆ CY_SD_HOST_CMD13_ERASE_SEQ_ERROR

#define CY_SD_HOST_CMD13_ERASE_SEQ_ERROR   (28U)

An error in the sequence of erase commands occurred.

◆ CY_SD_HOST_CMD13_ERASE_PARAM

#define CY_SD_HOST_CMD13_ERASE_PARAM   (27U)

An invalid selection of write blocks for erase occurred.

◆ CY_SD_HOST_CMD13_CARD_IS_LOCKED

#define CY_SD_HOST_CMD13_CARD_IS_LOCKED   (25U)

The card is locked by the host.

◆ CY_SD_HOST_CMD13_COM_CRC_ERROR

#define CY_SD_HOST_CMD13_COM_CRC_ERROR   (23U)

The CRC of the previous command failed.

◆ CY_SD_HOST_CMD13_ILLEGAL_COMMAND

#define CY_SD_HOST_CMD13_ILLEGAL_COMMAND   (22U)

The command is not legal for the card state.

◆ CY_SD_HOST_CMD13_CARD_ECC_FAILED

#define CY_SD_HOST_CMD13_CARD_ECC_FAILED   (21U)

The card internal ECC failed.

◆ CY_SD_HOST_CMD13_CC_ERROR

#define CY_SD_HOST_CMD13_CC_ERROR   (20U)

An internal card-controller error.

◆ CY_SD_HOST_CMD13_ERROR

#define CY_SD_HOST_CMD13_ERROR   (19U)

A general or unknown error occurred.

◆ 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.

◆ CY_SD_HOST_CMD13_CURRENT_STATE

#define CY_SD_HOST_CMD13_CURRENT_STATE   (9U)

The state of the card.

◆ CY_SD_HOST_CMD13_READY_FOR_DATA

#define CY_SD_HOST_CMD13_READY_FOR_DATA   (8U)

The buffer is empty on the bus.

◆ CY_SD_HOST_CMD13_CURRENT_STATE_MSK

#define CY_SD_HOST_CMD13_CURRENT_STATE_MSK   (0x00001E00UL)

The current state mask of the card.