SAMV71 Xplained Ultra Software Package 1.5

SD/MMC Return Codes
[SD/MMC General defines]

Collaboration diagram for SD/MMC Return Codes:

Defines

#define SDMMC_SUCCESS   SDMMC_OK
#define SDMMC_ERROR_LOCKED   SDMMC_LOCKED
#define SDMMC_ERROR   SDMMC_ERR
#define SDMMC_ERROR_NORESPONSE   SDMMC_NO_RESPONSE
#define SDMMC_ERROR_NOT_INITIALIZED   SDMMC_NOT_INITIALIZED
#define SDMMC_ERROR_BUSY   SDMMC_BUSY
#define SDMMC_ERROR_PARAM   SDMMC_PARAM
#define SDMMC_ERROR_STATE   SDMMC_STATE
#define SDMMC_ERROR_USER_CANCEL   SDMMC_USER_CANCEL
#define SDMMC_ERROR_NOT_SUPPORT   SDMMC_NOT_SUPPORTED

Enumerations

enum  eSDMMC_RC {
  SDMMC_OK = 0, SDMMC_LOCKED = 1, SDMMC_BUSY = 2, SDMMC_NO_RESPONSE = 3,
  SDMMC_CHANGED, SDMMC_ERR, SDMMC_ERR_IO, SDMMC_ERR_RESP,
  SDMMC_NOT_INITIALIZED, SDMMC_PARAM, SDMMC_STATE, SDMMC_USER_CANCEL,
  SDMMC_NOT_SUPPORTED
}

Detailed Description

Here lists the SD/MMC driver return codes.


Define Documentation

#define SDMMC_ERROR   SDMMC_ERR

There was an error with the SD driver.

Definition at line 151 of file sdmmc_cmd.h.

#define SDMMC_ERROR_BUSY   SDMMC_BUSY

The SD card is busy.

Definition at line 157 of file sdmmc_cmd.h.

#define SDMMC_ERROR_LOCKED   SDMMC_LOCKED

The driver is locked.

Definition at line 149 of file sdmmc_cmd.h.

#define SDMMC_ERROR_NORESPONSE   SDMMC_NO_RESPONSE

The SD card did not answer the command.

Definition at line 153 of file sdmmc_cmd.h.

#define SDMMC_ERROR_NOT_INITIALIZED   SDMMC_NOT_INITIALIZED

The SD card is not initialized.

Definition at line 155 of file sdmmc_cmd.h.

#define SDMMC_ERROR_NOT_SUPPORT   SDMMC_NOT_SUPPORTED

The operation is not supported.

Definition at line 165 of file sdmmc_cmd.h.

#define SDMMC_ERROR_PARAM   SDMMC_PARAM

The input parameter error

Definition at line 159 of file sdmmc_cmd.h.

#define SDMMC_ERROR_STATE   SDMMC_STATE

Invalid state

Definition at line 161 of file sdmmc_cmd.h.

#define SDMMC_ERROR_USER_CANCEL   SDMMC_USER_CANCEL

User canceled

Definition at line 163 of file sdmmc_cmd.h.

#define SDMMC_SUCCESS   SDMMC_OK

No error

Definition at line 147 of file sdmmc_cmd.h.


Enumeration Type Documentation

enum eSDMMC_RC

SD/MMC Return codes

Enumerator:
SDMMC_OK 

Operation OK

SDMMC_LOCKED 

Failed because driver locked

SDMMC_BUSY 

Failed because driver busy

SDMMC_NO_RESPONSE 

Failed because card not respond

SDMMC_CHANGED 

Setting param changed due to limitation

SDMMC_ERR 

Failed with general error

SDMMC_ERR_IO 

Failed because of IO error

SDMMC_ERR_RESP 

Error reported in response code

SDMMC_NOT_INITIALIZED 

Fail to initialize

SDMMC_PARAM 

Parameter error

SDMMC_STATE 

State error

SDMMC_USER_CANCEL 

Canceled by user

SDMMC_NOT_SUPPORTED 

Command(Operation) not supported

Definition at line 130 of file sdmmc_cmd.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines