STM32_EVAL_SDIO_SD_Private_Defines
[STM32_EVAL_SDIO_SD]

Defines

#define NULL   0
 SDIO Static flags, TimeOut, FIFO Address.
#define SD_0TO7BITS   ((uint32_t)0x000000FF)
#define SD_16TO23BITS   ((uint32_t)0x00FF0000)
#define SD_24TO31BITS   ((uint32_t)0xFF000000)
#define SD_8TO15BITS   ((uint32_t)0x0000FF00)
#define SD_ALLZERO   ((uint32_t)0x00000000)
#define SD_CARD_LOCKED   ((uint32_t)0x02000000)
#define SD_CCCC_ERASE   ((uint32_t)0x00000020)
#define SD_CCCC_LOCK_UNLOCK   ((uint32_t)0x00000080)
 Command Class Supported.
#define SD_CCCC_WRITE_PROT   ((uint32_t)0x00000040)
#define SD_CHECK_PATTERN   ((uint32_t)0x000001AA)
#define SD_DATATIMEOUT   ((uint32_t)0x000FFFFF)
#define SD_HALFFIFO   ((uint32_t)0x00000008)
#define SD_HALFFIFOBYTES   ((uint32_t)0x00000020)
#define SD_HIGH_CAPACITY   ((uint32_t)0x40000000)
#define SD_MAX_DATA_LENGTH   ((uint32_t)0x01FFFFFF)
#define SD_MAX_VOLT_TRIAL   ((uint32_t)0x0000FFFF)
#define SD_OCR_ADDR_MISALIGNED   ((uint32_t)0x40000000)
#define SD_OCR_ADDR_OUT_OF_RANGE   ((uint32_t)0x80000000)
 Mask for errors Card Status R1 (OCR Register).
#define SD_OCR_AKE_SEQ_ERROR   ((uint32_t)0x00000008)
#define SD_OCR_BAD_ERASE_PARAM   ((uint32_t)0x08000000)
#define SD_OCR_BLOCK_LEN_ERR   ((uint32_t)0x20000000)
#define SD_OCR_CARD_ECC_DISABLED   ((uint32_t)0x00004000)
#define SD_OCR_CARD_ECC_FAILED   ((uint32_t)0x00200000)
#define SD_OCR_CC_ERROR   ((uint32_t)0x00100000)
#define SD_OCR_CID_CSD_OVERWRIETE   ((uint32_t)0x00010000)
#define SD_OCR_COM_CRC_FAILED   ((uint32_t)0x00800000)
#define SD_OCR_ERASE_RESET   ((uint32_t)0x00002000)
#define SD_OCR_ERASE_SEQ_ERR   ((uint32_t)0x10000000)
#define SD_OCR_ERRORBITS   ((uint32_t)0xFDFFE008)
#define SD_OCR_GENERAL_UNKNOWN_ERROR   ((uint32_t)0x00080000)
#define SD_OCR_ILLEGAL_CMD   ((uint32_t)0x00400000)
#define SD_OCR_LOCK_UNLOCK_FAILED   ((uint32_t)0x01000000)
#define SD_OCR_STREAM_READ_UNDERRUN   ((uint32_t)0x00040000)
#define SD_OCR_STREAM_WRITE_OVERRUN   ((uint32_t)0x00020000)
#define SD_OCR_WP_ERASE_SKIP   ((uint32_t)0x00008000)
#define SD_OCR_WRITE_PROT_VIOLATION   ((uint32_t)0x04000000)
#define SD_R6_COM_CRC_FAILED   ((uint32_t)0x00008000)
#define SD_R6_GENERAL_UNKNOWN_ERROR   ((uint32_t)0x00002000)
 Masks for R6 Response.
#define SD_R6_ILLEGAL_CMD   ((uint32_t)0x00004000)
#define SD_SINGLE_BUS_SUPPORT   ((uint32_t)0x00010000)
#define SD_STD_CAPACITY   ((uint32_t)0x00000000)
#define SD_VOLTAGE_WINDOW_SD   ((uint32_t)0x80100000)
#define SD_WIDE_BUS_SUPPORT   ((uint32_t)0x00040000)
#define SDIO_CMD0TIMEOUT   ((uint32_t)0x00010000)
#define SDIO_SEND_IF_COND   ((uint32_t)0x00000008)
 Following commands are SD Card Specific commands.
#define SDIO_STATIC_FLAGS   ((uint32_t)0x000005FF)

Define Documentation

#define NULL   0

SDIO Static flags, TimeOut, FIFO Address.

Definition at line 80 of file stm32_eval_sdio_sd.c.

Referenced by SD_ReadBlock(), SD_ReadMultiBlocks(), SD_SendStatus(), SD_WriteBlock(), and SD_WriteMultiBlocks().

#define SD_0TO7BITS   ((uint32_t)0x000000FF)

Definition at line 128 of file stm32_eval_sdio_sd.c.

Referenced by FindSCR(), and SD_SendSDStatus().

#define SD_16TO23BITS   ((uint32_t)0x00FF0000)

Definition at line 130 of file stm32_eval_sdio_sd.c.

Referenced by FindSCR(), and SD_SendSDStatus().

#define SD_24TO31BITS   ((uint32_t)0xFF000000)

Definition at line 131 of file stm32_eval_sdio_sd.c.

Referenced by FindSCR(), and SD_SendSDStatus().

#define SD_8TO15BITS   ((uint32_t)0x0000FF00)

Definition at line 129 of file stm32_eval_sdio_sd.c.

Referenced by FindSCR(), and SD_SendSDStatus().

#define SD_ALLZERO   ((uint32_t)0x00000000)

Definition at line 121 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), CmdResp6Error(), IsCardProgramming(), and SDEnWideBus().

#define SD_CARD_LOCKED   ((uint32_t)0x02000000)
#define SD_CCCC_ERASE   ((uint32_t)0x00000020)

Definition at line 142 of file stm32_eval_sdio_sd.c.

Referenced by SD_Erase().

#define SD_CCCC_LOCK_UNLOCK   ((uint32_t)0x00000080)

Command Class Supported.

Definition at line 140 of file stm32_eval_sdio_sd.c.

#define SD_CCCC_WRITE_PROT   ((uint32_t)0x00000040)

Definition at line 141 of file stm32_eval_sdio_sd.c.

#define SD_CHECK_PATTERN   ((uint32_t)0x000001AA)

Definition at line 118 of file stm32_eval_sdio_sd.c.

Referenced by SD_PowerON().

#define SD_DATATIMEOUT   ((uint32_t)0x000FFFFF)
#define SD_HALFFIFO   ((uint32_t)0x00000008)

Definition at line 134 of file stm32_eval_sdio_sd.c.

Referenced by SD_ProcessIRQSrc(), SD_ReadMultiBlocks(), and SD_WriteMultiBlocks().

#define SD_HALFFIFOBYTES   ((uint32_t)0x00000020)

Definition at line 135 of file stm32_eval_sdio_sd.c.

Referenced by SD_ProcessIRQSrc(), and SD_WriteMultiBlocks().

#define SD_HIGH_CAPACITY   ((uint32_t)0x40000000)

Definition at line 116 of file stm32_eval_sdio_sd.c.

Referenced by SD_PowerON().

#define SD_MAX_DATA_LENGTH   ((uint32_t)0x01FFFFFF)

Definition at line 132 of file stm32_eval_sdio_sd.c.

Referenced by SD_ReadMultiBlocks(), and SD_WriteMultiBlocks().

#define SD_MAX_VOLT_TRIAL   ((uint32_t)0x0000FFFF)

Definition at line 120 of file stm32_eval_sdio_sd.c.

Referenced by SD_PowerON().

#define SD_OCR_ADDR_MISALIGNED   ((uint32_t)0x40000000)

Definition at line 88 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_ADDR_OUT_OF_RANGE   ((uint32_t)0x80000000)

Mask for errors Card Status R1 (OCR Register).

Definition at line 87 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_AKE_SEQ_ERROR   ((uint32_t)0x00000008)

Definition at line 105 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_BAD_ERASE_PARAM   ((uint32_t)0x08000000)

Definition at line 91 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_BLOCK_LEN_ERR   ((uint32_t)0x20000000)

Definition at line 89 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_CARD_ECC_DISABLED   ((uint32_t)0x00004000)

Definition at line 103 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_CARD_ECC_FAILED   ((uint32_t)0x00200000)

Definition at line 96 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_CC_ERROR   ((uint32_t)0x00100000)

Definition at line 97 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_CID_CSD_OVERWRIETE   ((uint32_t)0x00010000)

Definition at line 101 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_COM_CRC_FAILED   ((uint32_t)0x00800000)

Definition at line 94 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_ERASE_RESET   ((uint32_t)0x00002000)

Definition at line 104 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_ERASE_SEQ_ERR   ((uint32_t)0x10000000)

Definition at line 90 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_ERRORBITS   ((uint32_t)0xFDFFE008)

Definition at line 106 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_GENERAL_UNKNOWN_ERROR   ((uint32_t)0x00080000)

Definition at line 98 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_ILLEGAL_CMD   ((uint32_t)0x00400000)

Definition at line 95 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_LOCK_UNLOCK_FAILED   ((uint32_t)0x01000000)

Definition at line 93 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_STREAM_READ_UNDERRUN   ((uint32_t)0x00040000)

Definition at line 99 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_STREAM_WRITE_OVERRUN   ((uint32_t)0x00020000)

Definition at line 100 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_WP_ERASE_SKIP   ((uint32_t)0x00008000)

Definition at line 102 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_OCR_WRITE_PROT_VIOLATION   ((uint32_t)0x04000000)

Definition at line 92 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp1Error(), and IsCardProgramming().

#define SD_R6_COM_CRC_FAILED   ((uint32_t)0x00008000)

Definition at line 113 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp6Error().

#define SD_R6_GENERAL_UNKNOWN_ERROR   ((uint32_t)0x00002000)

Masks for R6 Response.

Definition at line 111 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp6Error().

#define SD_R6_ILLEGAL_CMD   ((uint32_t)0x00004000)

Definition at line 112 of file stm32_eval_sdio_sd.c.

Referenced by CmdResp6Error().

#define SD_SINGLE_BUS_SUPPORT   ((uint32_t)0x00010000)

Definition at line 124 of file stm32_eval_sdio_sd.c.

Referenced by SDEnWideBus().

#define SD_STD_CAPACITY   ((uint32_t)0x00000000)

Definition at line 117 of file stm32_eval_sdio_sd.c.

Referenced by SD_PowerON().

#define SD_VOLTAGE_WINDOW_SD   ((uint32_t)0x80100000)

Definition at line 115 of file stm32_eval_sdio_sd.c.

Referenced by SD_PowerON().

#define SD_WIDE_BUS_SUPPORT   ((uint32_t)0x00040000)

Definition at line 123 of file stm32_eval_sdio_sd.c.

Referenced by SDEnWideBus().

#define SDIO_CMD0TIMEOUT   ((uint32_t)0x00010000)

Definition at line 82 of file stm32_eval_sdio_sd.c.

Referenced by CmdError(), and CmdResp7Error().

#define SDIO_SEND_IF_COND   ((uint32_t)0x00000008)

Following commands are SD Card Specific commands.

SDIO_APP_CMD should be sent before sending these commands.

Definition at line 148 of file stm32_eval_sdio_sd.c.

Referenced by SD_PowerON().

#define SDIO_STATIC_FLAGS   ((uint32_t)0x000005FF)
STM32F10x Standard Peripherals Library: Footer

 

 

 

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