STM32_EVAL_SDIO_SD_Exported_Types
[STM32_EVAL_SDIO_SD]

Data Structures

struct  SD_CardInfo
 SD Card information. More...
struct  SD_CID
 Card Identification Data: CID Register. More...
struct  SD_CSD
 Card Specific Data: CSD Register. More...

Enumerations

enum  SD_Error {
  SD_CMD_CRC_FAIL = (1), SD_DATA_CRC_FAIL = (2), SD_CMD_RSP_TIMEOUT = (3), SD_DATA_TIMEOUT = (4),
  SD_TX_UNDERRUN = (5), SD_RX_OVERRUN = (6), SD_START_BIT_ERR = (7), SD_CMD_OUT_OF_RANGE = (8),
  SD_ADDR_MISALIGNED = (9), SD_BLOCK_LEN_ERR = (10), SD_ERASE_SEQ_ERR = (11), SD_BAD_ERASE_PARAM = (12),
  SD_WRITE_PROT_VIOLATION = (13), SD_LOCK_UNLOCK_FAILED = (14), SD_COM_CRC_FAILED = (15), SD_ILLEGAL_CMD = (16),
  SD_CARD_ECC_FAILED = (17), SD_CC_ERROR = (18), SD_GENERAL_UNKNOWN_ERROR = (19), SD_STREAM_READ_UNDERRUN = (20),
  SD_STREAM_WRITE_OVERRUN = (21), SD_CID_CSD_OVERWRITE = (22), SD_WP_ERASE_SKIP = (23), SD_CARD_ECC_DISABLED = (24),
  SD_ERASE_RESET = (25), SD_AKE_SEQ_ERROR = (26), SD_INVALID_VOLTRANGE = (27), SD_ADDR_OUT_OF_RANGE = (28),
  SD_SWITCH_ERROR = (29), SD_SDIO_DISABLED = (30), SD_SDIO_FUNCTION_BUSY = (31), SD_SDIO_FUNCTION_FAILED = (32),
  SD_SDIO_UNKNOWN_FUNCTION = (33), SD_INTERNAL_ERROR, SD_NOT_CONFIGURED, SD_REQUEST_PENDING,
  SD_REQUEST_NOT_APPLICABLE, SD_INVALID_PARAMETER, SD_UNSUPPORTED_FEATURE, SD_UNSUPPORTED_HW,
  SD_ERROR, SD_OK, SD_RESPONSE_NO_ERROR = (0x00), SD_IN_IDLE_STATE = (0x01),
  SD_ERASE_RESET = (0x02), SD_ILLEGAL_COMMAND = (0x04), SD_COM_CRC_ERROR = (0x08), SD_ERASE_SEQUENCE_ERROR = (0x10),
  SD_ADDRESS_ERROR = (0x20), SD_PARAMETER_ERROR = (0x40), SD_RESPONSE_FAILURE = (0xFF), SD_DATA_OK = (0x05),
  SD_DATA_CRC_ERROR = (0x0B), SD_DATA_WRITE_ERROR = (0x0D), SD_DATA_OTHER_ERROR = (0xFF)
}
enum  SDCardState {
  SD_CARD_READY = ((uint32_t)0x00000001), SD_CARD_IDENTIFICATION = ((uint32_t)0x00000002), SD_CARD_STANDBY = ((uint32_t)0x00000003), SD_CARD_TRANSFER = ((uint32_t)0x00000004),
  SD_CARD_SENDING = ((uint32_t)0x00000005), SD_CARD_RECEIVING = ((uint32_t)0x00000006), SD_CARD_PROGRAMMING = ((uint32_t)0x00000007), SD_CARD_DISCONNECTED = ((uint32_t)0x00000008),
  SD_CARD_ERROR = ((uint32_t)0x000000FF)
}
 

SD Card States.

More...
enum  SDTransferState { SD_TRANSFER_OK = 0, SD_TRANSFER_BUSY = 1, SD_TRANSFER_ERROR }
 

SDIO Transfer state.

More...

Enumeration Type Documentation

enum SD_Error
Enumerator:
SD_CMD_CRC_FAIL 

SDIO specific error defines.

Command response received (but CRC check failed)

SD_DATA_CRC_FAIL 

Data bock sent/received (CRC check Failed)

SD_CMD_RSP_TIMEOUT 

Command response timeout

SD_DATA_TIMEOUT 

Data time out

SD_TX_UNDERRUN 

Transmit FIFO under-run

SD_RX_OVERRUN 

Receive FIFO over-run

SD_START_BIT_ERR 

Start bit not detected on all data signals in widE bus mode

SD_CMD_OUT_OF_RANGE 

CMD's argument was out of range.

SD_ADDR_MISALIGNED 

Misaligned address

SD_BLOCK_LEN_ERR 

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

SD_ERASE_SEQ_ERR 

An error in the sequence of erase command occurs.

SD_BAD_ERASE_PARAM 

An Invalid selection for erase groups

SD_WRITE_PROT_VIOLATION 

Attempt to program a write protect block

SD_LOCK_UNLOCK_FAILED 

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

SD_COM_CRC_FAILED 

CRC check of the previous command failed

SD_ILLEGAL_CMD 

Command is not legal for the card state

SD_CARD_ECC_FAILED 

Card internal ECC was applied but failed to correct the data

SD_CC_ERROR 

Internal card controller error

SD_GENERAL_UNKNOWN_ERROR 

General or Unknown error

SD_STREAM_READ_UNDERRUN 

The card could not sustain data transfer in stream read operation.

SD_STREAM_WRITE_OVERRUN 

The card could not sustain data programming in stream mode

SD_CID_CSD_OVERWRITE 

CID/CSD overwrite error

SD_WP_ERASE_SKIP 

only partial address space was erased

SD_CARD_ECC_DISABLED 

Command has been executed without using internal ECC

SD_ERASE_RESET 

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

SD_AKE_SEQ_ERROR 

Error in sequence of authentication.

SD_INVALID_VOLTRANGE 
SD_ADDR_OUT_OF_RANGE 
SD_SWITCH_ERROR 
SD_SDIO_DISABLED 
SD_SDIO_FUNCTION_BUSY 
SD_SDIO_FUNCTION_FAILED 
SD_SDIO_UNKNOWN_FUNCTION 
SD_INTERNAL_ERROR 

Standard error defines.

SD_NOT_CONFIGURED 
SD_REQUEST_PENDING 
SD_REQUEST_NOT_APPLICABLE 
SD_INVALID_PARAMETER 
SD_UNSUPPORTED_FEATURE 
SD_UNSUPPORTED_HW 
SD_ERROR 
SD_OK 
SD_RESPONSE_NO_ERROR 

SD reponses and error flags.

SD_IN_IDLE_STATE 
SD_ERASE_RESET 
SD_ILLEGAL_COMMAND 
SD_COM_CRC_ERROR 
SD_ERASE_SEQUENCE_ERROR 
SD_ADDRESS_ERROR 
SD_PARAMETER_ERROR 
SD_RESPONSE_FAILURE 
SD_DATA_OK 

Data response error.

SD_DATA_CRC_ERROR 
SD_DATA_WRITE_ERROR 
SD_DATA_OTHER_ERROR 

Definition at line 52 of file stm32_eval_sdio_sd.h.

SD Card States.

Enumerator:
SD_CARD_READY 
SD_CARD_IDENTIFICATION 
SD_CARD_STANDBY 
SD_CARD_TRANSFER 
SD_CARD_SENDING 
SD_CARD_RECEIVING 
SD_CARD_PROGRAMMING 
SD_CARD_DISCONNECTED 
SD_CARD_ERROR 

Definition at line 118 of file stm32_eval_sdio_sd.h.

SDIO Transfer state.

Enumerator:
SD_TRANSFER_OK 
SD_TRANSFER_BUSY 
SD_TRANSFER_ERROR 

Definition at line 108 of file stm32_eval_sdio_sd.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32