SAMV71 Xplained Ultra Software Package 1.3

SD Card Status fields
[SD/MMC Spec. definitions]

Collaboration diagram for SD Card Status fields:

Defines

#define SD_CST_OUT_OF_RANGE   (1UL << 31)
#define SD_CST_ADDRESS_ERROR   (1UL << 30)
#define SD_CST_BLOCK_LEN_ERROR   (1UL << 29)
#define SD_CST_ERASE_SEQ_ERROR   (1UL << 28)
#define SD_CST_ERASE_PARAM   (1UL << 27)
#define SD_CST_WP_VIOLATION   (1UL << 26)
#define SD_CST_CARD_IS_LOCKED   (1UL << 25)
#define SD_CST_LOCK_UNLOCK_FAILED   (1UL << 24)
#define SD_CST_COM_CRC_ERROR   (1UL << 23)
#define SD_CST_ILLEGAL_COMMAND   (1UL << 22)
#define SD_CST_CARD_ECC_FAILED   (1UL << 21)
#define SD_CST_CC_ERROR   (1UL << 20)
#define SD_CST_ERROR   (1UL << 19)
#define MMC_CST_UNDERRUN   (1UL << 18)
#define MMC_CST_OVERRUN   (1UL << 17)
#define SD_CST_CSD_OVERWRITE   (1UL << 16)
#define SD_CST_WP_ERASE_SKIP   (1UL << 15)
#define SD_CST_ECC_DISABLED   (1UL << 14)
#define SD_CST_ERASE_RESET   (1UL << 13)
#define SD_CST_CURRENT_STATE   (0xFUL << 9)
#define SD_STATE_IDLE   0
#define SD_STATE_READY   1
#define SD_STATE_IDENT   2
#define SD_STATE_STBY   3
#define SD_STATE_TRAN   4
#define SD_STATE_DATA   5
#define SD_STATE_RCV   6
#define SD_STATE_PRG   7
#define SD_STATE_DIS   8
#define MMC_STATE_BTST   9
#define MMC_STATE_SLP   10
#define SD_CST_STATE_IDLE   (0x0UL << 9)
#define SD_CST_STATE_READY   (0x1UL << 9)
#define SD_CST_STATE_IDENT   (0x2UL << 9)
#define SD_CST_STATE_STBY   (0x3UL << 9)
#define SD_CST_STATE_TRAN   (0x4UL << 9)
#define SD_CST_STATE_DATA   (0x5UL << 9)
#define SD_CST_STATE_RCV   (0x6UL << 9)
#define SD_CST_STATE_PRG   (0x7UL << 9)
#define SD_CST_STATE_DIS   (0x8UL << 9)
#define SD_CST_STATE_BTST   (0x9UL << 9)
#define SD_CST_STATE_SLP   (0xAUL << 9)
#define SD_CST_READY_FOR_DATA   (1UL << 8)
#define MMC_CST_SWITCH_ERROR   (1UL << 7)
#define SD_CST_APP_CMD   (1UL << 5)
#define SD_CST_AKE_SEQ_ERROR   (1UL << 3)

Define Documentation

#define MMC_CST_OVERRUN   (1UL << 17)

Card could not sustain data programming in stream write mode

Definition at line 334 of file sdmmc.h.

#define MMC_CST_SWITCH_ERROR   (1UL << 7)

SWITCH command error

Definition at line 363 of file sdmmc.h.

#define MMC_CST_UNDERRUN   (1UL << 18)

Card could not sustain data transfer in stream read mode

Definition at line 333 of file sdmmc.h.

#define SD_CST_ADDRESS_ERROR   (1UL << 30)

Misaligned address not match the block length

Definition at line 321 of file sdmmc.h.

#define SD_CST_AKE_SEQ_ERROR   (1UL << 3)

Error in authentication

Definition at line 365 of file sdmmc.h.

#define SD_CST_APP_CMD   (1UL << 5)

The card will expect ACMD

Definition at line 364 of file sdmmc.h.

#define SD_CST_BLOCK_LEN_ERROR   (1UL << 29)

Block length invalid or not match

Definition at line 322 of file sdmmc.h.

#define SD_CST_CARD_ECC_FAILED   (1UL << 21)

Card internal ECC applied but failed to correct

Definition at line 330 of file sdmmc.h.

#define SD_CST_CARD_IS_LOCKED   (1UL << 25)

Card is locked by the host

Definition at line 326 of file sdmmc.h.

#define SD_CST_CC_ERROR   (1UL << 20)

Internal card controller error

Definition at line 331 of file sdmmc.h.

#define SD_CST_COM_CRC_ERROR   (1UL << 23)

CRC of the command failed

Definition at line 328 of file sdmmc.h.

#define SD_CST_CSD_OVERWRITE   (1UL << 16)

RO section of CSD not match or attempt to reverse the copy or permanent WP bits

Definition at line 335 of file sdmmc.h.

#define SD_CST_CURRENT_STATE   (0xFUL << 9)

Card state mask

Definition at line 339 of file sdmmc.h.

#define SD_CST_ECC_DISABLED   (1UL << 14)

Command executed without using the internal ECC

Definition at line 337 of file sdmmc.h.

#define SD_CST_ERASE_PARAM   (1UL << 27)

An invalid selection of write-blocks for erase

Definition at line 324 of file sdmmc.h.

#define SD_CST_ERASE_RESET   (1UL << 13)

Erase sequence was cleared before executing because an out of erase sequence command was received

Definition at line 338 of file sdmmc.h.

#define SD_CST_ERASE_SEQ_ERROR   (1UL << 28)

An error in the sequence of erase command

Definition at line 323 of file sdmmc.h.

#define SD_CST_ERROR   (1UL << 19)

General or unknow error

Definition at line 332 of file sdmmc.h.

#define SD_CST_ILLEGAL_COMMAND   (1UL << 22)

Command not legal for the card state

Definition at line 329 of file sdmmc.h.

#define SD_CST_LOCK_UNLOCK_FAILED   (1UL << 24)

sequence or password error in lock/unlock

Definition at line 327 of file sdmmc.h.

#define SD_CST_OUT_OF_RANGE   (1UL << 31)

SD/MMC Card STatus bits Arg out of allowed range

Definition at line 320 of file sdmmc.h.

#define SD_CST_READY_FOR_DATA   (1UL << 8)

buffer empty

Definition at line 362 of file sdmmc.h.

#define SD_CST_STATE_BTST   (0x9UL << 9)

MMC BTSR

Definition at line 360 of file sdmmc.h.

#define SD_CST_STATE_DATA   (0x5UL << 9)

Card DATA

Definition at line 356 of file sdmmc.h.

#define SD_CST_STATE_DIS   (0x8UL << 9)

Card DIS

Definition at line 359 of file sdmmc.h.

#define SD_CST_STATE_IDENT   (0x2UL << 9)

Card Identify state

Definition at line 353 of file sdmmc.h.

#define SD_CST_STATE_IDLE   (0x0UL << 9)

Card IDLE

Definition at line 351 of file sdmmc.h.

#define SD_CST_STATE_PRG   (0x7UL << 9)

Card PRG

Definition at line 358 of file sdmmc.h.

#define SD_CST_STATE_RCV   (0x6UL << 9)

Card RCV

Definition at line 357 of file sdmmc.h.

#define SD_CST_STATE_READY   (0x1UL << 9)

Card READY

Definition at line 352 of file sdmmc.h.

#define SD_CST_STATE_SLP   (0xAUL << 9)

MMC SLP

Definition at line 361 of file sdmmc.h.

#define SD_CST_STATE_STBY   (0x3UL << 9)

Card STBY

Definition at line 354 of file sdmmc.h.

#define SD_CST_STATE_TRAN   (0x4UL << 9)

Card TRAN

Definition at line 355 of file sdmmc.h.

#define SD_CST_WP_ERASE_SKIP   (1UL << 15)

Only partial address space was erased

Definition at line 336 of file sdmmc.h.

#define SD_CST_WP_VIOLATION   (1UL << 26)

Write to a protected block or card

Definition at line 325 of file sdmmc.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines