思澈科技软件开发工具包  2.20

Macros

#define SDMMC_ERROR_NONE   0x00000000U
 
#define SDMMC_ERROR_CMD_CRC_FAIL   0x00000001U
 
#define SDMMC_ERROR_DATA_CRC_FAIL   0x00000002U
 
#define SDMMC_ERROR_CMD_RSP_TIMEOUT   0x00000004U
 
#define SDMMC_ERROR_DATA_TIMEOUT   0x00000008U
 
#define SDMMC_ERROR_TX_UNDERRUN   0x00000010U
 
#define SDMMC_ERROR_RX_OVERRUN   0x00000020U
 
#define SDMMC_ERROR_ADDR_MISALIGNED   0x00000040U
 
#define SDMMC_ERROR_BLOCK_LEN_ERR   0x00000080U
 
#define SDMMC_ERROR_ERASE_SEQ_ERR   0x00000100U
 
#define SDMMC_ERROR_BAD_ERASE_PARAM   0x00000200U
 
#define SDMMC_ERROR_WRITE_PROT_VIOLATION   0x00000400U
 
#define SDMMC_ERROR_LOCK_UNLOCK_FAILED   0x00000800U
 
#define SDMMC_ERROR_COM_CRC_FAILED   0x00001000U
 
#define SDMMC_ERROR_ILLEGAL_CMD   0x00002000U
 
#define SDMMC_ERROR_CARD_ECC_FAILED   0x00004000U
 
#define SDMMC_ERROR_CC_ERR   0x00008000U
 
#define SDMMC_ERROR_GENERAL_UNKNOWN_ERR   0x00010000U
 
#define SDMMC_ERROR_STREAM_READ_UNDERRUN   0x00020000U
 
#define SDMMC_ERROR_STREAM_WRITE_OVERRUN   0x00040000U
 
#define SDMMC_ERROR_CID_CSD_OVERWRITE   0x00080000U
 
#define SDMMC_ERROR_WP_ERASE_SKIP   0x00100000U
 
#define SDMMC_ERROR_CARD_ECC_DISABLED   0x00200000U
 
#define SDMMC_ERROR_ERASE_RESET   0x00400000U
 
#define SDMMC_ERROR_AKE_SEQ_ERR   0x00800000U
 
#define SDMMC_ERROR_INVALID_VOLTRANGE   0x01000000U
 
#define SDMMC_ERROR_ADDR_OUT_OF_RANGE   0x02000000U
 
#define SDMMC_ERROR_REQUEST_NOT_APPLICABLE   0x04000000U
 
#define SDMMC_ERROR_INVALID_PARAMETER   0x08000000U
 
#define SDMMC_ERROR_UNSUPPORTED_FEATURE   0x10000000U
 
#define SDMMC_ERROR_BUSY   0x20000000U
 
#define SDMMC_ERROR_DMA   0x40000000U
 
#define SDMMC_ERROR_TIMEOUT   0x80000000U
 
#define SDMMC_CMD_GO_IDLE_STATE   ((uint8_t)0)
 SDMMC Commands Index. More...
 
#define SDMMC_CMD_SEND_OP_COND   ((uint8_t)1)
 
#define SDMMC_CMD_ALL_SEND_CID   ((uint8_t)2)
 
#define SDMMC_CMD_SET_REL_ADDR   ((uint8_t)3)
 
#define SDMMC_CMD_SET_DSR   ((uint8_t)4)
 
#define SDMMC_CMD_SDMMC_SEN_OP_COND   ((uint8_t)5)
 
#define SDMMC_CMD_HS_SWITCH   ((uint8_t)6)
 
#define SDMMC_CMD_SEL_DESEL_CARD   ((uint8_t)7)
 
#define SDMMC_CMD_HS_SEND_EXT_CSD   ((uint8_t)8)
 
#define SDMMC_CMD_SEND_CSD   ((uint8_t)9)
 
#define SDMMC_CMD_SEND_CID   ((uint8_t)10)
 
#define SDMMC_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11)
 
#define SDMMC_CMD_STOP_TRANSMISSION   ((uint8_t)12)
 
#define SDMMC_CMD_SEND_STATUS   ((uint8_t)13)
 
#define SDMMC_CMD_HS_BUSTEST_READ   ((uint8_t)14)
 
#define SDMMC_CMD_GO_INACTIVE_STATE   ((uint8_t)15)
 
#define SDMMC_CMD_SET_BLOCKLEN   ((uint8_t)16)
 
#define SDMMC_CMD_READ_SINGLE_BLOCK   ((uint8_t)17)
 
#define SDMMC_CMD_READ_MULT_BLOCK   ((uint8_t)18)
 
#define SDMMC_CMD_HS_BUSTEST_WRITE   ((uint8_t)19)
 
#define SDMMC_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20)
 
#define SDMMC_CMD_SET_BLOCK_COUNT   ((uint8_t)23)
 
#define SDMMC_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24)
 
#define SDMMC_CMD_WRITE_MULT_BLOCK   ((uint8_t)25)
 
#define SDMMC_CMD_PROG_CID   ((uint8_t)26)
 
#define SDMMC_CMD_PROG_CSD   ((uint8_t)27)
 
#define SDMMC_CMD_SET_WRITE_PROT   ((uint8_t)28)
 
#define SDMMC_CMD_CLR_WRITE_PROT   ((uint8_t)29)
 
#define SDMMC_CMD_SEND_WRITE_PROT   ((uint8_t)30)
 
#define SDMMC_CMD_SD_ERASE_GRP_START   ((uint8_t)32)
 
#define SDMMC_CMD_SD_ERASE_GRP_END   ((uint8_t)33)
 
#define SDMMC_CMD_ERASE_GRP_START   ((uint8_t)35)
 
#define SDMMC_CMD_ERASE_GRP_END   ((uint8_t)36)
 
#define SDMMC_CMD_ERASE   ((uint8_t)38)
 
#define SDMMC_CMD_FAST_IO   ((uint8_t)39)
 
#define SDMMC_CMD_GO_IRQ_STATE   ((uint8_t)40)
 
#define SDMMC_CMD_LOCK_UNLOCK   ((uint8_t)42)
 
#define SDMMC_CMD_APP_CMD   ((uint8_t)55)
 
#define SDMMC_CMD_GEN_CMD   ((uint8_t)56)
 
#define SDMMC_CMD_NO_CMD   ((uint8_t)64)
 
#define SDMMC_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6)
 Following commands are SD Card Specific commands. SDMMC_APP_CMD should be sent before sending these commands. More...
 
#define SDMMC_CMD_SD_APP_STATUS   ((uint8_t)13)
 
#define SDMMC_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22)
 
#define SDMMC_CMD_SD_APP_OP_COND   ((uint8_t)41)
 
#define SDMMC_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42)
 
#define SDMMC_CMD_SD_APP_SEND_SCR   ((uint8_t)51)
 
#define SDMMC_CMD_SDMMC_RW_DIRECT   ((uint8_t)52)
 
#define SDMMC_CMD_SDMMC_RW_EXTENDED   ((uint8_t)53)
 
#define SDMMC_CMD_SD_APP_GET_MKB   ((uint8_t)43)
 Following commands are SD Card Specific security commands. SDMMC_CMD_APP_CMD should be sent before sending these commands.
 
#define SDMMC_CMD_SD_APP_GET_MID   ((uint8_t)44)
 
#define SDMMC_CMD_SD_APP_SET_CER_RN1   ((uint8_t)45)
 
#define SDMMC_CMD_SD_APP_GET_CER_RN2   ((uint8_t)46)
 
#define SDMMC_CMD_SD_APP_SET_CER_RES2   ((uint8_t)47)
 
#define SDMMC_CMD_SD_APP_GET_CER_RES1   ((uint8_t)48)
 
#define SDMMC_CMD_SD_APP_SECURE_READ_MULTIPLE_BLOCK   ((uint8_t)18)
 
#define SDMMC_CMD_SD_APP_SECURE_WRITE_MULTIPLE_BLOCK   ((uint8_t)25)
 
#define SDMMC_CMD_SD_APP_SECURE_ERASE   ((uint8_t)38)
 
#define SDMMC_CMD_SD_APP_CHANGE_SECURE_AREA   ((uint8_t)49)
 
#define SDMMC_CMD_SD_APP_SECURE_WRITE_MKB   ((uint8_t)48)
 
#define SDMMC_OCR_ADDR_OUT_OF_RANGE   0x80000000U
 Masks for errors Card Status R1 (OCR Register)
 
#define SDMMC_OCR_ADDR_MISALIGNED   0x40000000U
 
#define SDMMC_OCR_BLOCK_LEN_ERR   0x20000000U
 
#define SDMMC_OCR_ERASE_SEQ_ERR   0x10000000U
 
#define SDMMC_OCR_BAD_ERASE_PARAM   0x08000000U
 
#define SDMMC_OCR_WRITE_PROT_VIOLATION   0x04000000U
 
#define SDMMC_OCR_LOCK_UNLOCK_FAILED   0x01000000U
 
#define SDMMC_OCR_COM_CRC_FAILED   0x00800000U
 
#define SDMMC_OCR_ILLEGAL_CMD   0x00400000U
 
#define SDMMC_OCR_CARD_ECC_FAILED   0x00200000U
 
#define SDMMC_OCR_CC_ERROR   0x00100000U
 
#define SDMMC_OCR_GENERAL_UNKNOWN_ERROR   0x00080000U
 
#define SDMMC_OCR_STREAM_READ_UNDERRUN   0x00040000U
 
#define SDMMC_OCR_STREAM_WRITE_OVERRUN   0x00020000U
 
#define SDMMC_OCR_CID_CSD_OVERWRITE   0x00010000U
 
#define SDMMC_OCR_WP_ERASE_SKIP   0x00008000U
 
#define SDMMC_OCR_CARD_ECC_DISABLED   0x00004000U
 
#define SDMMC_OCR_ERASE_RESET   0x00002000U
 
#define SDMMC_OCR_AKE_SEQ_ERROR   0x00000008U
 
#define SDMMC_OCR_ERRORBITS   0xFDFFE008U
 
#define SDMMC_R6_GENERAL_UNKNOWN_ERROR   0x00002000U
 Masks for R6 Response.
 
#define SDMMC_R6_ILLEGAL_CMD   0x00004000U
 
#define SDMMC_R6_COM_CRC_FAILED   0x00008000U
 
#define SDMMC_VOLTAGE_WINDOW_SD   0x80100000U
 
#define SDMMC_HIGH_CAPACITY   0x40000000U
 
#define SDMMC_STD_CAPACITY   0x00000000U
 
#define SDMMC_CHECK_PATTERN   0x000001AAU
 
#define SDMMC_MAX_TRIAL   0x0000FFFFU
 
#define SDMMC_ALLZERO   0x00000000U
 
#define SDMMC_WIDE_BUS_SUPPORT   0x00040000U
 
#define SDMMC_SINGLE_BUS_SUPPORT   0x00010000U
 
#define SDMMC_CARD_LOCKED   0x02000000U
 
#define SDMMC_DATATIMEOUT   0xFFFFFFFFU
 
#define SDMMC_0TO7BITS   0x000000FFU
 
#define SDMMC_8TO15BITS   0x0000FF00U
 
#define SDMMC_16TO23BITS   0x00FF0000U
 
#define SDMMC_24TO31BITS   0xFF000000U
 
#define SDMMC_MAX_DATA_LENGTH   0x01FFFFFFU
 

Detailed Description

Macro Definition Documentation

◆ SDMMC_CMD_ALL_SEND_CID

#define SDMMC_CMD_ALL_SEND_CID   ((uint8_t)2)

Asks any card connected to the host to send the CID numbers on the CMD line.

◆ SDMMC_CMD_APP_CMD

#define SDMMC_CMD_APP_CMD   ((uint8_t)55)

Indicates to the card that the next command is an application specific command rather than a standard command.

◆ SDMMC_CMD_APP_SD_SET_BUSWIDTH

#define SDMMC_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6)

Following commands are SD Card Specific commands. SDMMC_APP_CMD should be sent before sending these commands.

(ACMD6) Defines the data bus width to be used for data transfer. The allowed data bus widths are given in SCR register.

◆ SDMMC_CMD_CLR_WRITE_PROT

#define SDMMC_CMD_CLR_WRITE_PROT   ((uint8_t)29)

Clears the write protection bit of the addressed group.

◆ SDMMC_CMD_ERASE

#define SDMMC_CMD_ERASE   ((uint8_t)38)

Reserved for SD security applications.

◆ SDMMC_CMD_ERASE_GRP_END

#define SDMMC_CMD_ERASE_GRP_END   ((uint8_t)36)

Sets the address of the last write block of the continuous range to be erased. Reserved for each command system set by switch function command (CMD6).

◆ SDMMC_CMD_ERASE_GRP_START

#define SDMMC_CMD_ERASE_GRP_START   ((uint8_t)35)

Sets the address of the first write block to be erased. Reserved for each command system set by switch function command (CMD6).

◆ SDMMC_CMD_FAST_IO

#define SDMMC_CMD_FAST_IO   ((uint8_t)39)

SD card doesn't support it (Reserved).

◆ SDMMC_CMD_GEN_CMD

#define SDMMC_CMD_GEN_CMD   ((uint8_t)56)

Used either to transfer a data block to the card or to get a data block from the card for general purpose/application specific commands.

◆ SDMMC_CMD_GO_IDLE_STATE

#define SDMMC_CMD_GO_IDLE_STATE   ((uint8_t)0)

SDMMC Commands Index.

Resets the SD memory card.

◆ SDMMC_CMD_GO_INACTIVE_STATE

#define SDMMC_CMD_GO_INACTIVE_STATE   ((uint8_t)15)

Sends an addressed card into the inactive state.

◆ SDMMC_CMD_GO_IRQ_STATE

#define SDMMC_CMD_GO_IRQ_STATE   ((uint8_t)40)

SD card doesn't support it (Reserved).

◆ SDMMC_CMD_HS_BUSTEST_READ

#define SDMMC_CMD_HS_BUSTEST_READ   ((uint8_t)14)

Reserved

◆ SDMMC_CMD_HS_BUSTEST_WRITE

#define SDMMC_CMD_HS_BUSTEST_WRITE   ((uint8_t)19)

64 bytes tuning pattern is sent for SDR50 and SDR104.

◆ SDMMC_CMD_HS_SEND_EXT_CSD

#define SDMMC_CMD_HS_SEND_EXT_CSD   ((uint8_t)8)

Sends SD Memory Card interface condition, which includes host supply voltage information and asks the card whether card supports voltage.

◆ SDMMC_CMD_HS_SWITCH

#define SDMMC_CMD_HS_SWITCH   ((uint8_t)6)

Checks switchable function (mode 0) and switch card function (mode 1).

◆ SDMMC_CMD_LOCK_UNLOCK

#define SDMMC_CMD_LOCK_UNLOCK   ((uint8_t)42)

Sets/resets the password or lock/unlock the card. The size of the data block is set by the SET_BLOCK_LEN command.

◆ SDMMC_CMD_NO_CMD

#define SDMMC_CMD_NO_CMD   ((uint8_t)64)

No command

◆ SDMMC_CMD_PROG_CID

#define SDMMC_CMD_PROG_CID   ((uint8_t)26)

Reserved for manufacturers.

◆ SDMMC_CMD_PROG_CSD

#define SDMMC_CMD_PROG_CSD   ((uint8_t)27)

Programming of the programmable bits of the CSD.

◆ SDMMC_CMD_READ_DAT_UNTIL_STOP

#define SDMMC_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11)

SD card doesn't support it.

◆ SDMMC_CMD_READ_MULT_BLOCK

#define SDMMC_CMD_READ_MULT_BLOCK   ((uint8_t)18)

Continuously transfers data blocks from card to host until interrupted by STOP_TRANSMISSION command.

◆ SDMMC_CMD_READ_SINGLE_BLOCK

#define SDMMC_CMD_READ_SINGLE_BLOCK   ((uint8_t)17)

Reads single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC.

◆ SDMMC_CMD_SD_APP_OP_COND

#define SDMMC_CMD_SD_APP_OP_COND   ((uint8_t)41)

(ACMD41) Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.

◆ SDMMC_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS

#define SDMMC_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22)

(ACMD22) Sends the number of the written (without errors) write blocks. Responds with 32bit+CRC data block.

◆ SDMMC_CMD_SD_APP_SEND_SCR

#define SDMMC_CMD_SD_APP_SEND_SCR   ((uint8_t)51)

Reads the SD Configuration Register (SCR).

◆ SDMMC_CMD_SD_APP_SET_CLR_CARD_DETECT

#define SDMMC_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42)

(ACMD42) Connect/Disconnect the 50 KOhm pull-up resistor on CD/DAT3 (pin 1) of the card

◆ SDMMC_CMD_SD_APP_STATUS

#define SDMMC_CMD_SD_APP_STATUS   ((uint8_t)13)

(ACMD13) Sends the SD status.

◆ SDMMC_CMD_SD_ERASE_GRP_END

#define SDMMC_CMD_SD_ERASE_GRP_END   ((uint8_t)33)

Sets the address of the last write block of the continuous range to be erased.

◆ SDMMC_CMD_SD_ERASE_GRP_START

#define SDMMC_CMD_SD_ERASE_GRP_START   ((uint8_t)32)

Sets the address of the first write block to be erased. (For SD card only).

◆ SDMMC_CMD_SDMMC_RW_DIRECT

#define SDMMC_CMD_SDMMC_RW_DIRECT   ((uint8_t)52)

For SD I/O card only, reserved for security specification.

◆ SDMMC_CMD_SDMMC_RW_EXTENDED

#define SDMMC_CMD_SDMMC_RW_EXTENDED   ((uint8_t)53)

For SD I/O card only, reserved for security specification.

◆ SDMMC_CMD_SDMMC_SEN_OP_COND

#define SDMMC_CMD_SDMMC_SEN_OP_COND   ((uint8_t)5)

Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.

◆ SDMMC_CMD_SEL_DESEL_CARD

#define SDMMC_CMD_SEL_DESEL_CARD   ((uint8_t)7)

Selects the card by its own relative address and gets deselected by any other address

◆ SDMMC_CMD_SEND_CID

#define SDMMC_CMD_SEND_CID   ((uint8_t)10)

Addressed card sends its card identification (CID) on the CMD line.

◆ SDMMC_CMD_SEND_CSD

#define SDMMC_CMD_SEND_CSD   ((uint8_t)9)

Addressed card sends its card specific data (CSD) on the CMD line.

◆ SDMMC_CMD_SEND_OP_COND

#define SDMMC_CMD_SEND_OP_COND   ((uint8_t)1)

Sends host capacity support information and activates the card's initialization process.

◆ SDMMC_CMD_SEND_STATUS

#define SDMMC_CMD_SEND_STATUS   ((uint8_t)13)

Addressed card sends its status register.

◆ SDMMC_CMD_SEND_WRITE_PROT

#define SDMMC_CMD_SEND_WRITE_PROT   ((uint8_t)30)

Asks the card to send the status of the write protection bits.

◆ SDMMC_CMD_SET_BLOCK_COUNT

#define SDMMC_CMD_SET_BLOCK_COUNT   ((uint8_t)23)

Specify block count for CMD18 and CMD25.

◆ SDMMC_CMD_SET_BLOCKLEN

#define SDMMC_CMD_SET_BLOCKLEN   ((uint8_t)16)

Sets the block length (in bytes for SDSC) for all following block commands (read, write, lock). Default block length is fixed to 512 Bytes. Not effective for SDHS and SDXC.

◆ SDMMC_CMD_SET_DSR

#define SDMMC_CMD_SET_DSR   ((uint8_t)4)

Programs the DSR of all cards.

◆ SDMMC_CMD_SET_REL_ADDR

#define SDMMC_CMD_SET_REL_ADDR   ((uint8_t)3)

Asks the card to publish a new relative address (RCA).

◆ SDMMC_CMD_SET_WRITE_PROT

#define SDMMC_CMD_SET_WRITE_PROT   ((uint8_t)28)

Sets the write protection bit of the addressed group.

◆ SDMMC_CMD_STOP_TRANSMISSION

#define SDMMC_CMD_STOP_TRANSMISSION   ((uint8_t)12)

Forces the card to stop transmission.

◆ SDMMC_CMD_WRITE_DAT_UNTIL_STOP

#define SDMMC_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20)

Speed class control command.

◆ SDMMC_CMD_WRITE_MULT_BLOCK

#define SDMMC_CMD_WRITE_MULT_BLOCK   ((uint8_t)25)

Continuously writes blocks of data until a STOP_TRANSMISSION follows.

◆ SDMMC_CMD_WRITE_SINGLE_BLOCK

#define SDMMC_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24)

Writes single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC.

◆ SDMMC_ERROR_ADDR_MISALIGNED

#define SDMMC_ERROR_ADDR_MISALIGNED   0x00000040U

Misaligned address

◆ SDMMC_ERROR_ADDR_OUT_OF_RANGE

#define SDMMC_ERROR_ADDR_OUT_OF_RANGE   0x02000000U

Error when addressed block is out of range

◆ SDMMC_ERROR_AKE_SEQ_ERR

#define SDMMC_ERROR_AKE_SEQ_ERR   0x00800000U

Error in sequence of authentication

◆ SDMMC_ERROR_BAD_ERASE_PARAM

#define SDMMC_ERROR_BAD_ERASE_PARAM   0x00000200U

An invalid selection for erase groups

◆ SDMMC_ERROR_BLOCK_LEN_ERR

#define SDMMC_ERROR_BLOCK_LEN_ERR   0x00000080U

Transferred block length is not allowed for the card or the number of transferred bytes does not match the block length

◆ SDMMC_ERROR_BUSY

#define SDMMC_ERROR_BUSY   0x20000000U

Error when transfer process is busy

◆ SDMMC_ERROR_CARD_ECC_DISABLED

#define SDMMC_ERROR_CARD_ECC_DISABLED   0x00200000U

Command has been executed without using internal ECC

◆ SDMMC_ERROR_CARD_ECC_FAILED

#define SDMMC_ERROR_CARD_ECC_FAILED   0x00004000U

Card internal ECC was applied but failed to correct the data

◆ SDMMC_ERROR_CC_ERR

#define SDMMC_ERROR_CC_ERR   0x00008000U

Internal card controller error

◆ SDMMC_ERROR_CID_CSD_OVERWRITE

#define SDMMC_ERROR_CID_CSD_OVERWRITE   0x00080000U

CID/CSD overwrite error

◆ SDMMC_ERROR_CMD_CRC_FAIL

#define SDMMC_ERROR_CMD_CRC_FAIL   0x00000001U

Command response received (but CRC check failed)

◆ SDMMC_ERROR_CMD_RSP_TIMEOUT

#define SDMMC_ERROR_CMD_RSP_TIMEOUT   0x00000004U

Command response timeout

◆ SDMMC_ERROR_COM_CRC_FAILED

#define SDMMC_ERROR_COM_CRC_FAILED   0x00001000U

CRC check of the previous command failed

◆ SDMMC_ERROR_DATA_CRC_FAIL

#define SDMMC_ERROR_DATA_CRC_FAIL   0x00000002U

Data block sent/received (CRC check failed)

◆ SDMMC_ERROR_DATA_TIMEOUT

#define SDMMC_ERROR_DATA_TIMEOUT   0x00000008U

Data timeout

◆ SDMMC_ERROR_DMA

#define SDMMC_ERROR_DMA   0x40000000U

Error while DMA transfer

◆ SDMMC_ERROR_ERASE_RESET

#define SDMMC_ERROR_ERASE_RESET   0x00400000U

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

◆ SDMMC_ERROR_ERASE_SEQ_ERR

#define SDMMC_ERROR_ERASE_SEQ_ERR   0x00000100U

An error in the sequence of erase command occurs

◆ SDMMC_ERROR_GENERAL_UNKNOWN_ERR

#define SDMMC_ERROR_GENERAL_UNKNOWN_ERR   0x00010000U

General or unknown error

◆ SDMMC_ERROR_ILLEGAL_CMD

#define SDMMC_ERROR_ILLEGAL_CMD   0x00002000U

Command is not legal for the card state

◆ SDMMC_ERROR_INVALID_PARAMETER

#define SDMMC_ERROR_INVALID_PARAMETER   0x08000000U

the used parameter is not valid

◆ SDMMC_ERROR_INVALID_VOLTRANGE

#define SDMMC_ERROR_INVALID_VOLTRANGE   0x01000000U

Error in case of invalid voltage range

◆ SDMMC_ERROR_LOCK_UNLOCK_FAILED

#define SDMMC_ERROR_LOCK_UNLOCK_FAILED   0x00000800U

Sequence or password error has been detected in unlock command or if there was an attempt to access a locked card

◆ SDMMC_ERROR_NONE

#define SDMMC_ERROR_NONE   0x00000000U

No error

◆ SDMMC_ERROR_REQUEST_NOT_APPLICABLE

#define SDMMC_ERROR_REQUEST_NOT_APPLICABLE   0x04000000U

Error when command request is not applicable

◆ SDMMC_ERROR_RX_OVERRUN

#define SDMMC_ERROR_RX_OVERRUN   0x00000020U

Receive FIFO overrun

◆ SDMMC_ERROR_STREAM_READ_UNDERRUN

#define SDMMC_ERROR_STREAM_READ_UNDERRUN   0x00020000U

The card could not sustain data reading in stream rmode

◆ SDMMC_ERROR_STREAM_WRITE_OVERRUN

#define SDMMC_ERROR_STREAM_WRITE_OVERRUN   0x00040000U

The card could not sustain data programming in stream mode

◆ SDMMC_ERROR_TIMEOUT

#define SDMMC_ERROR_TIMEOUT   0x80000000U

Timeout error

◆ SDMMC_ERROR_TX_UNDERRUN

#define SDMMC_ERROR_TX_UNDERRUN   0x00000010U

Transmit FIFO underrun

◆ SDMMC_ERROR_UNSUPPORTED_FEATURE

#define SDMMC_ERROR_UNSUPPORTED_FEATURE   0x10000000U

Error when feature is not insupported

◆ SDMMC_ERROR_WP_ERASE_SKIP

#define SDMMC_ERROR_WP_ERASE_SKIP   0x00100000U

Only partial address space was erased

◆ SDMMC_ERROR_WRITE_PROT_VIOLATION

#define SDMMC_ERROR_WRITE_PROT_VIOLATION   0x00000400U

Attempt to program a write protect block