STM32_EVAL_SDIO_SD_Exported_Constants
[STM32_EVAL_SDIO_SD]

Defines

#define SD_CMD_ALL_SEND_CID   ((uint8_t)2)
#define SD_CMD_APP_CMD   ((uint8_t)55)
#define SD_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6)
 Following commands are SD Card Specific commands.
#define SD_CMD_CLR_WRITE_PROT   ((uint8_t)29)
#define SD_CMD_ERASE   ((uint8_t)38)
#define SD_CMD_ERASE_GRP_END   ((uint8_t)36)
#define SD_CMD_ERASE_GRP_START   ((uint8_t)35)
#define SD_CMD_FAST_IO   ((uint8_t)39)
#define SD_CMD_GEN_CMD   ((uint8_t)56)
#define SD_CMD_GO_IDLE_STATE   ((uint8_t)0)
 SDIO Commands Index.
#define SD_CMD_GO_INACTIVE_STATE   ((uint8_t)15)
#define SD_CMD_GO_IRQ_STATE   ((uint8_t)40)
#define SD_CMD_HS_BUSTEST_READ   ((uint8_t)14)
#define SD_CMD_HS_BUSTEST_WRITE   ((uint8_t)19)
#define SD_CMD_HS_SEND_EXT_CSD   ((uint8_t)8)
#define SD_CMD_HS_SWITCH   ((uint8_t)6)
#define SD_CMD_LOCK_UNLOCK   ((uint8_t)42)
#define SD_CMD_NO_CMD   ((uint8_t)64)
#define SD_CMD_PROG_CID   ((uint8_t)26)
#define SD_CMD_PROG_CSD   ((uint8_t)27)
#define SD_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11)
#define SD_CMD_READ_MULT_BLOCK   ((uint8_t)18)
#define SD_CMD_READ_SINGLE_BLOCK   ((uint8_t)17)
#define SD_CMD_SD_APP_CHANGE_SECURE_AREA   ((uint8_t)49)
#define SD_CMD_SD_APP_GET_CER_RES1   ((uint8_t)48)
#define SD_CMD_SD_APP_GET_CER_RN2   ((uint8_t)46)
#define SD_CMD_SD_APP_GET_MID   ((uint8_t)44)
#define SD_CMD_SD_APP_GET_MKB   ((uint8_t)43)
 Following commands are SD Card Specific security commands.
#define SD_CMD_SD_APP_OP_COND   ((uint8_t)41)
#define SD_CMD_SD_APP_SECURE_ERASE   ((uint8_t)38)
#define SD_CMD_SD_APP_SECURE_READ_MULTIPLE_BLOCK   ((uint8_t)18)
#define SD_CMD_SD_APP_SECURE_WRITE_MKB   ((uint8_t)48)
#define SD_CMD_SD_APP_SECURE_WRITE_MULTIPLE_BLOCK   ((uint8_t)25)
#define SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22)
#define SD_CMD_SD_APP_SEND_SCR   ((uint8_t)51)
#define SD_CMD_SD_APP_SET_CER_RES2   ((uint8_t)47)
#define SD_CMD_SD_APP_SET_CER_RN1   ((uint8_t)45)
#define SD_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42)
#define SD_CMD_SD_APP_STAUS   ((uint8_t)13)
#define SD_CMD_SD_ERASE_GRP_END   ((uint8_t)33)
#define SD_CMD_SD_ERASE_GRP_START   ((uint8_t)32)
#define SD_CMD_SDIO_RW_DIRECT   ((uint8_t)52)
#define SD_CMD_SDIO_RW_EXTENDED   ((uint8_t)53)
#define SD_CMD_SDIO_SEN_OP_COND   ((uint8_t)5)
#define SD_CMD_SEL_DESEL_CARD   ((uint8_t)7)
#define SD_CMD_SEND_CID   ((uint8_t)10)
#define SD_CMD_SEND_CSD   ((uint8_t)9)
#define SD_CMD_SEND_OP_COND   ((uint8_t)1)
#define SD_CMD_SEND_STATUS   ((uint8_t)13)
#define SD_CMD_SEND_WRITE_PROT   ((uint8_t)30)
#define SD_CMD_SET_BLOCK_COUNT   ((uint8_t)23)
#define SD_CMD_SET_BLOCKLEN   ((uint8_t)16)
#define SD_CMD_SET_DSR   ((uint8_t)4)
#define SD_CMD_SET_REL_ADDR   ((uint8_t)3)
#define SD_CMD_SET_WRITE_PROT   ((uint8_t)28)
#define SD_CMD_STOP_TRANSMISSION   ((uint8_t)12)
#define SD_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20)
#define SD_CMD_WRITE_MULT_BLOCK   ((uint8_t)25)
#define SD_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24)
#define SD_DMA_MODE   ((uint32_t)0x00000000)
#define SD_INTERRUPT_MODE   ((uint32_t)0x00000001)
#define SD_NOT_PRESENT   ((uint8_t)0x00)
#define SD_POLLING_MODE   ((uint32_t)0x00000002)
#define SD_PRESENT   ((uint8_t)0x01)
 SD detection on its memory slot.
#define SDIO_HIGH_CAPACITY_MMC_CARD   ((uint32_t)0x00000007)
#define SDIO_HIGH_CAPACITY_SD_CARD   ((uint32_t)0x00000002)
#define SDIO_HIGH_SPEED_MULTIMEDIA_CARD   ((uint32_t)0x00000005)
#define SDIO_MULTIMEDIA_CARD   ((uint32_t)0x00000003)
#define SDIO_SECURE_DIGITAL_IO_CARD   ((uint32_t)0x00000004)
#define SDIO_SECURE_DIGITAL_IO_COMBO_CARD   ((uint32_t)0x00000006)
#define SDIO_STD_CAPACITY_SD_CARD_V1_1   ((uint32_t)0x00000000)
 Supported SD Memory Cards.
#define SDIO_STD_CAPACITY_SD_CARD_V2_0   ((uint32_t)0x00000001)

Define Documentation

#define SD_CMD_ALL_SEND_CID   ((uint8_t)2)

Definition at line 219 of file stm32_eval_sdio_sd.h.

Referenced by SD_InitializeCards().

#define SD_CMD_APP_CMD   ((uint8_t)55)
#define SD_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6)

Following commands are SD Card Specific commands.

SDIO_APP_CMD should be sent before sending these commands. For SD Card only

Definition at line 268 of file stm32_eval_sdio_sd.h.

Referenced by SDEnWideBus().

#define SD_CMD_CLR_WRITE_PROT   ((uint8_t)29)

Definition at line 244 of file stm32_eval_sdio_sd.h.

#define SD_CMD_ERASE   ((uint8_t)38)

Definition at line 256 of file stm32_eval_sdio_sd.h.

Referenced by SD_Erase().

#define SD_CMD_ERASE_GRP_END   ((uint8_t)36)

To set the address of the last write block of the continuous range to be erased. (For MMC card only spec 3.31)

Definition at line 253 of file stm32_eval_sdio_sd.h.

#define SD_CMD_ERASE_GRP_START   ((uint8_t)35)

To set the address of the first write block to be erased. (For MMC card only spec 3.31)

Definition at line 250 of file stm32_eval_sdio_sd.h.

#define SD_CMD_FAST_IO   ((uint8_t)39)

SD Card doesn't support it

Definition at line 257 of file stm32_eval_sdio_sd.h.

#define SD_CMD_GEN_CMD   ((uint8_t)56)

Definition at line 261 of file stm32_eval_sdio_sd.h.

#define SD_CMD_GO_IDLE_STATE   ((uint8_t)0)

SDIO Commands Index.

Definition at line 217 of file stm32_eval_sdio_sd.h.

Referenced by SD_GoIdleState(), and SD_PowerON().

#define SD_CMD_GO_INACTIVE_STATE   ((uint8_t)15)

Definition at line 232 of file stm32_eval_sdio_sd.h.

#define SD_CMD_GO_IRQ_STATE   ((uint8_t)40)

SD Card doesn't support it

Definition at line 258 of file stm32_eval_sdio_sd.h.

#define SD_CMD_HS_BUSTEST_READ   ((uint8_t)14)

Definition at line 231 of file stm32_eval_sdio_sd.h.

#define SD_CMD_HS_BUSTEST_WRITE   ((uint8_t)19)

Definition at line 236 of file stm32_eval_sdio_sd.h.

#define SD_CMD_HS_SEND_EXT_CSD   ((uint8_t)8)

Definition at line 225 of file stm32_eval_sdio_sd.h.

#define SD_CMD_HS_SWITCH   ((uint8_t)6)

Definition at line 223 of file stm32_eval_sdio_sd.h.

#define SD_CMD_LOCK_UNLOCK   ((uint8_t)42)

Definition at line 259 of file stm32_eval_sdio_sd.h.

#define SD_CMD_NO_CMD   ((uint8_t)64)

Definition at line 262 of file stm32_eval_sdio_sd.h.

#define SD_CMD_PROG_CID   ((uint8_t)26)

reserved for manufacturers

Definition at line 241 of file stm32_eval_sdio_sd.h.

#define SD_CMD_PROG_CSD   ((uint8_t)27)

Definition at line 242 of file stm32_eval_sdio_sd.h.

#define SD_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11)

SD Card doesn't support it

Definition at line 228 of file stm32_eval_sdio_sd.h.

#define SD_CMD_READ_MULT_BLOCK   ((uint8_t)18)

Definition at line 235 of file stm32_eval_sdio_sd.h.

Referenced by SD_ReadMultiBlocks().

#define SD_CMD_READ_SINGLE_BLOCK   ((uint8_t)17)

Definition at line 234 of file stm32_eval_sdio_sd.h.

Referenced by SD_ReadBlock(), and SD_ReadMultiBlocks().

#define SD_CMD_SD_APP_CHANGE_SECURE_AREA   ((uint8_t)49)

For SD Card only

Definition at line 290 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_GET_CER_RES1   ((uint8_t)48)

For SD Card only

Definition at line 286 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_GET_CER_RN2   ((uint8_t)46)

For SD Card only

Definition at line 284 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_GET_MID   ((uint8_t)44)

For SD Card only

Definition at line 282 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_GET_MKB   ((uint8_t)43)

Following commands are SD Card Specific security commands.

SDIO_APP_CMD should be sent before sending these commands. For SD Card only

Definition at line 281 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_OP_COND   ((uint8_t)41)

For SD Card only

Definition at line 271 of file stm32_eval_sdio_sd.h.

Referenced by SD_PowerON().

#define SD_CMD_SD_APP_SECURE_ERASE   ((uint8_t)38)

For SD Card only

Definition at line 289 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SECURE_READ_MULTIPLE_BLOCK   ((uint8_t)18)

For SD Card only

Definition at line 287 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SECURE_WRITE_MKB   ((uint8_t)48)

For SD Card only

Definition at line 291 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SECURE_WRITE_MULTIPLE_BLOCK   ((uint8_t)25)

For SD Card only

Definition at line 288 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22)

For SD Card only

Definition at line 270 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SEND_SCR   ((uint8_t)51)

For SD Card only

Definition at line 273 of file stm32_eval_sdio_sd.h.

Referenced by FindSCR().

#define SD_CMD_SD_APP_SET_CER_RES2   ((uint8_t)47)

For SD Card only

Definition at line 285 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SET_CER_RN1   ((uint8_t)45)

For SD Card only

Definition at line 283 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42)

For SD Card only

Definition at line 272 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SD_APP_STAUS   ((uint8_t)13)

For SD Card only

Definition at line 269 of file stm32_eval_sdio_sd.h.

Referenced by SD_SendSDStatus().

#define SD_CMD_SD_ERASE_GRP_END   ((uint8_t)33)

To set the address of the last write block of the continuous range to be erased. (For SD card only)

Definition at line 248 of file stm32_eval_sdio_sd.h.

Referenced by SD_Erase().

#define SD_CMD_SD_ERASE_GRP_START   ((uint8_t)32)

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

Definition at line 246 of file stm32_eval_sdio_sd.h.

Referenced by SD_Erase().

#define SD_CMD_SDIO_RW_DIRECT   ((uint8_t)52)

For SD I/O Card only

Definition at line 274 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SDIO_RW_EXTENDED   ((uint8_t)53)

For SD I/O Card only

Definition at line 275 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SDIO_SEN_OP_COND   ((uint8_t)5)

Definition at line 222 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SEL_DESEL_CARD   ((uint8_t)7)

Definition at line 224 of file stm32_eval_sdio_sd.h.

Referenced by SD_SelectDeselect().

#define SD_CMD_SEND_CID   ((uint8_t)10)

Definition at line 227 of file stm32_eval_sdio_sd.h.

Referenced by SD_GetCIDRegister().

#define SD_CMD_SEND_CSD   ((uint8_t)9)

Definition at line 226 of file stm32_eval_sdio_sd.h.

Referenced by SD_GetCSDRegister(), and SD_InitializeCards().

#define SD_CMD_SEND_OP_COND   ((uint8_t)1)

Definition at line 218 of file stm32_eval_sdio_sd.h.

Referenced by SD_GoIdleState().

#define SD_CMD_SEND_STATUS   ((uint8_t)13)
#define SD_CMD_SEND_WRITE_PROT   ((uint8_t)30)

Definition at line 245 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SET_BLOCK_COUNT   ((uint8_t)23)

SD Card doesn't support it

Definition at line 238 of file stm32_eval_sdio_sd.h.

Referenced by SD_WriteMultiBlocks().

#define SD_CMD_SET_BLOCKLEN   ((uint8_t)16)
#define SD_CMD_SET_DSR   ((uint8_t)4)

Definition at line 221 of file stm32_eval_sdio_sd.h.

#define SD_CMD_SET_REL_ADDR   ((uint8_t)3)

SDIO_SEND_REL_ADDR for SD Card

Definition at line 220 of file stm32_eval_sdio_sd.h.

Referenced by SD_InitializeCards().

#define SD_CMD_SET_WRITE_PROT   ((uint8_t)28)

Definition at line 243 of file stm32_eval_sdio_sd.h.

#define SD_CMD_STOP_TRANSMISSION   ((uint8_t)12)

Definition at line 229 of file stm32_eval_sdio_sd.h.

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

#define SD_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20)

SD Card doesn't support it

Definition at line 237 of file stm32_eval_sdio_sd.h.

#define SD_CMD_WRITE_MULT_BLOCK   ((uint8_t)25)

Definition at line 240 of file stm32_eval_sdio_sd.h.

Referenced by SD_WriteMultiBlocks().

#define SD_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24)

Definition at line 239 of file stm32_eval_sdio_sd.h.

Referenced by SD_WriteBlock(), and SD_WriteMultiBlocks().

#define SD_DMA_MODE   ((uint32_t)0x00000000)
#define SD_INTERRUPT_MODE   ((uint32_t)0x00000001)
#define SD_NOT_PRESENT   ((uint8_t)0x00)

Definition at line 301 of file stm32_eval_sdio_sd.h.

Referenced by SD_Detect().

#define SD_POLLING_MODE   ((uint32_t)0x00000002)
#define SD_PRESENT   ((uint8_t)0x01)

SD detection on its memory slot.

Definition at line 300 of file stm32_eval_sdio_sd.h.

Referenced by SD_Detect(), and SD_GetState().

#define SDIO_HIGH_CAPACITY_MMC_CARD   ((uint32_t)0x00000007)

Definition at line 313 of file stm32_eval_sdio_sd.h.

#define SDIO_HIGH_CAPACITY_SD_CARD   ((uint32_t)0x00000002)
#define SDIO_HIGH_SPEED_MULTIMEDIA_CARD   ((uint32_t)0x00000005)

Definition at line 311 of file stm32_eval_sdio_sd.h.

#define SDIO_MULTIMEDIA_CARD   ((uint32_t)0x00000003)

Definition at line 309 of file stm32_eval_sdio_sd.h.

Referenced by SD_EnableWideBusOperation().

#define SDIO_SECURE_DIGITAL_IO_CARD   ((uint32_t)0x00000004)

Definition at line 310 of file stm32_eval_sdio_sd.h.

Referenced by SD_InitializeCards().

#define SDIO_SECURE_DIGITAL_IO_COMBO_CARD   ((uint32_t)0x00000006)

Definition at line 312 of file stm32_eval_sdio_sd.h.

Referenced by SD_InitializeCards().

#define SDIO_STD_CAPACITY_SD_CARD_V1_1   ((uint32_t)0x00000000)
#define SDIO_STD_CAPACITY_SD_CARD_V2_0   ((uint32_t)0x00000001)
STM32F10x Standard Peripherals Library: Footer

 

 

 

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