HAL MMC Constants

MMC Transfer Timeout definition

group MMC_Transfer_Timeout

Defines

HAL_MMC_DATA_MAX_TIMEOUT 0xFFFFFFFFU

MMC data timeout

HAL_MMC_STOP_XFER_MAX_TIMEOUT 500U

MMC erase timeout 500ms

HAL_MMC_ERASE_MAX_TIMEOUT 63000U

MMC max erase timeout 63s

MMC Error Codes definition

group MMC_Error_Codes

Defines

HAL_MMC_ERROR_NONE SDMMC_ERROR_NONE

No error

HAL_MMC_ERROR_DATA_CRC_FAIL SDMMC_ERROR_DATA_CRC_FAIL

Data block sent/received (CRC check failed)

HAL_MMC_ERROR_CMD_RSP_TIMEOUT SDMMC_ERROR_CMD_RSP_TIMEOUT

Command response timeout

HAL_MMC_ERROR_DATA_TIMEOUT SDMMC_ERROR_DATA_TIMEOUT

Data timeout

HAL_MMC_ERROR_TX_UNDERRUN SDMMC_ERROR_TX_UNDERRUN

Transmit FIFO underrun

HAL_MMC_ERROR_RX_OVERRUN SDMMC_ERROR_RX_OVERRUN

Receive FIFO overrun

HAL_MMC_ERROR_INVALID_VOLTRANGE SDMMC_ERROR_INVALID_VOLTRANGE

Error in case of invalid voltage range

HAL_MMC_ERROR_ADDR_OUT_OF_RANGE SDMMC_ERROR_ADDR_OUT_OF_RANGE

Error when addressed block is out of range

HAL_MMC_ERROR_REQUEST_NOT_APPLICABLE SDMMC_ERROR_REQUEST_NOT_APPLICABLE

Error when command request is not applicable

HAL_MMC_ERROR_UNSUPPORTED_FEATURE SDMMC_ERROR_UNSUPPORTED_FEATURE

Error when feature is not insupported

HAL_MMC_ERROR_DMA SDMMC_ERROR_DMA

Error while DMA transfer

HAL_MMC_RPMB_OPERATION_OK 0x0000U

MMC Card Rpmb operation OK

HAL_MMC_RPMB_GENERAL_FAILURE 0x0001U

MMC Card Rpmb general failure

HAL_MMC_RPMB_AUTHENTIFICATION_FAILURE 0x0002U

MMC Card Rpmb authentication failure (MAC comparison not matching, MAC calculation failure)

HAL_MMC_RPMB_COUNTER_FAILURE 0x0003U

MMC Card Rpmb counter failure (Counter not matching in comparison, counter incrementing failure)

HAL_MMC_RPMB_ADDRESS_FAILURE 0x0004U

MMC Card Rpmb address failure (Address out of range, wrong address alignment)

HAL_MMC_RPMB_WRITE_FAILURE 0x0005U

MMC Card Rpmb write failure (data/counter/result failure)

HAL_MMC_RPMB_READ_FAILURE 0x0006U

MMC Card Rpmb read failure (data/counter/result failure)

HAL_MMC_RPMB_AUTHENTIFICATION_KEY_NOT_PROGRAMMED 0x0007U

MMC Card Rpmb authentication key not yet programmed

HAL_MMC_RPMB_WRITE_COUNTER_EXPIRED 0x0080U

MMC Card Rpmb write counter has expired