STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
SD Exported Constants

Macros

#define SD_CMD_GO_IDLE_STATE   ((uint8_t)0U)
 SD Commands Index. More...
 
#define SD_CMD_SEND_OP_COND   ((uint8_t)1U)
 
#define SD_CMD_ALL_SEND_CID   ((uint8_t)2U)
 
#define SD_CMD_SET_REL_ADDR   ((uint8_t)3U)
 
#define SD_CMD_SET_DSR   ((uint8_t)4U)
 
#define SD_CMD_SDMMC_SEN_OP_COND   ((uint8_t)5U)
 
#define SD_CMD_HS_SWITCH   ((uint8_t)6U)
 
#define SD_CMD_SEL_DESEL_CARD   ((uint8_t)7U)
 
#define SD_CMD_HS_SEND_EXT_CSD   ((uint8_t)8U)
 
#define SD_CMD_SEND_CSD   ((uint8_t)9U)
 
#define SD_CMD_SEND_CID   ((uint8_t)10U)
 
#define SD_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11U)
 
#define SD_CMD_STOP_TRANSMISSION   ((uint8_t)12U)
 
#define SD_CMD_SEND_STATUS   ((uint8_t)13U)
 
#define SD_CMD_HS_BUSTEST_READ   ((uint8_t)14U)
 
#define SD_CMD_GO_INACTIVE_STATE   ((uint8_t)15U)
 
#define SD_CMD_SET_BLOCKLEN   ((uint8_t)16U)
 
#define SD_CMD_READ_SINGLE_BLOCK   ((uint8_t)17U)
 
#define SD_CMD_READ_MULT_BLOCK   ((uint8_t)18U)
 
#define SD_CMD_HS_BUSTEST_WRITE   ((uint8_t)19U)
 
#define SD_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20U)
 
#define SD_CMD_SET_BLOCK_COUNT   ((uint8_t)23U)
 
#define SD_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24U)
 
#define SD_CMD_WRITE_MULT_BLOCK   ((uint8_t)25U)
 
#define SD_CMD_PROG_CID   ((uint8_t)26U)
 
#define SD_CMD_PROG_CSD   ((uint8_t)27U)
 
#define SD_CMD_SET_WRITE_PROT   ((uint8_t)28U)
 
#define SD_CMD_CLR_WRITE_PROT   ((uint8_t)29U)
 
#define SD_CMD_SEND_WRITE_PROT   ((uint8_t)30U)
 
#define SD_CMD_SD_ERASE_GRP_START   ((uint8_t)32U)
 
#define SD_CMD_SD_ERASE_GRP_END   ((uint8_t)33U)
 
#define SD_CMD_ERASE_GRP_START   ((uint8_t)35U)
 
#define SD_CMD_ERASE_GRP_END   ((uint8_t)36U)
 
#define SD_CMD_ERASE   ((uint8_t)38U)
 
#define SD_CMD_FAST_IO   ((uint8_t)39U)
 
#define SD_CMD_GO_IRQ_STATE   ((uint8_t)40U)
 
#define SD_CMD_LOCK_UNLOCK   ((uint8_t)42U)
 
#define SD_CMD_APP_CMD   ((uint8_t)55U)
 
#define SD_CMD_GEN_CMD   ((uint8_t)56U)
 
#define SD_CMD_NO_CMD   ((uint8_t)64U)
 
#define SD_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6U)
 Following commands are SD Card Specific commands. SDMMC_APP_CMD should be sent before sending these commands. More...
 
#define SD_CMD_SD_APP_STATUS   ((uint8_t)13U)
 
#define SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22U)
 
#define SD_CMD_SD_APP_OP_COND   ((uint8_t)41U)
 
#define SD_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42U)
 
#define SD_CMD_SD_APP_SEND_SCR   ((uint8_t)51U)
 
#define SD_CMD_SDMMC_RW_DIRECT   ((uint8_t)52U)
 
#define SD_CMD_SDMMC_RW_EXTENDED   ((uint8_t)53U)
 
#define SD_CMD_SD_APP_GET_MKB   ((uint8_t)43U)
 Following commands are SD Card Specific security commands. SD_CMD_APP_CMD should be sent before sending these commands. More...
 
#define SD_CMD_SD_APP_GET_MID   ((uint8_t)44U)
 
#define SD_CMD_SD_APP_SET_CER_RN1   ((uint8_t)45U)
 
#define SD_CMD_SD_APP_GET_CER_RN2   ((uint8_t)46U)
 
#define SD_CMD_SD_APP_SET_CER_RES2   ((uint8_t)47U)
 
#define SD_CMD_SD_APP_GET_CER_RES1   ((uint8_t)48U)
 
#define SD_CMD_SD_APP_SECURE_READ_MULTIPLE_BLOCK   ((uint8_t)18U)
 
#define SD_CMD_SD_APP_SECURE_WRITE_MULTIPLE_BLOCK   ((uint8_t)25U)
 
#define SD_CMD_SD_APP_SECURE_ERASE   ((uint8_t)38U)
 
#define SD_CMD_SD_APP_CHANGE_SECURE_AREA   ((uint8_t)49U)
 
#define SD_CMD_SD_APP_SECURE_WRITE_MKB   ((uint8_t)48U)
 
#define STD_CAPACITY_SD_CARD_V1_1   ((uint32_t)0x00000000U)
 Supported SD Memory Cards. More...
 
#define STD_CAPACITY_SD_CARD_V2_0   ((uint32_t)0x00000001U)
 
#define HIGH_CAPACITY_SD_CARD   ((uint32_t)0x00000002U)
 
#define MULTIMEDIA_CARD   ((uint32_t)0x00000003U)
 
#define SECURE_DIGITAL_IO_CARD   ((uint32_t)0x00000004U)
 
#define HIGH_SPEED_MULTIMEDIA_CARD   ((uint32_t)0x00000005U)
 
#define SECURE_DIGITAL_IO_COMBO_CARD   ((uint32_t)0x00000006U)
 
#define HIGH_CAPACITY_MMC_CARD   ((uint32_t)0x00000007U)
 

Detailed Description

Macro Definition Documentation

#define HIGH_CAPACITY_MMC_CARD   ((uint32_t)0x00000007U)

Definition at line 440 of file stm32f7xx_hal_sd.h.

#define HIGH_CAPACITY_SD_CARD   ((uint32_t)0x00000002U)

Definition at line 435 of file stm32f7xx_hal_sd.h.

#define HIGH_SPEED_MULTIMEDIA_CARD   ((uint32_t)0x00000005U)

Definition at line 438 of file stm32f7xx_hal_sd.h.

#define MULTIMEDIA_CARD   ((uint32_t)0x00000003U)

Definition at line 436 of file stm32f7xx_hal_sd.h.

#define SD_CMD_ALL_SEND_CID   ((uint8_t)2U)

Asks any card connected to the host to send the CID numbers on the CMD line.

Definition at line 332 of file stm32f7xx_hal_sd.h.

#define SD_CMD_APP_CMD   ((uint8_t)55U)

Indicates to the card that the next command is an application specific command rather than a standard command.

Definition at line 387 of file stm32f7xx_hal_sd.h.

#define SD_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6U)

Following commands are SD Card Specific commands. SDMMC_APP_CMD should be sent before sending these commands.

(ACMD6) Defines the data bus width to be used for data transfer. The allowed data bus widths are given in SCR register.

Definition at line 399 of file stm32f7xx_hal_sd.h.

#define SD_CMD_CLR_WRITE_PROT   ((uint8_t)29U)

Clears the write protection bit of the addressed group.

Definition at line 371 of file stm32f7xx_hal_sd.h.

#define SD_CMD_ERASE   ((uint8_t)38U)

Reserved for SD security applications.

Definition at line 381 of file stm32f7xx_hal_sd.h.

#define SD_CMD_ERASE_GRP_END   ((uint8_t)36U)

Sets the address of the last write block of the continuous range to be erased. Reserved for each command system set by switch function command (CMD6).

Definition at line 378 of file stm32f7xx_hal_sd.h.

#define SD_CMD_ERASE_GRP_START   ((uint8_t)35U)

Sets the address of the first write block to be erased. Reserved for each command system set by switch function command (CMD6).

Definition at line 375 of file stm32f7xx_hal_sd.h.

#define SD_CMD_FAST_IO   ((uint8_t)39U)

SD card doesn't support it (Reserved).

Definition at line 382 of file stm32f7xx_hal_sd.h.

#define SD_CMD_GEN_CMD   ((uint8_t)56U)

Used either to transfer a data block to the card or to get a data block from the card for general purpose/application specific commands.

Definition at line 390 of file stm32f7xx_hal_sd.h.

#define SD_CMD_GO_IDLE_STATE   ((uint8_t)0U)

SD Commands Index.

Resets the SD memory card.

Definition at line 330 of file stm32f7xx_hal_sd.h.

#define SD_CMD_GO_INACTIVE_STATE   ((uint8_t)15U)

Sends an addressed card into the inactive state.

Definition at line 349 of file stm32f7xx_hal_sd.h.

#define SD_CMD_GO_IRQ_STATE   ((uint8_t)40U)

SD card doesn't support it (Reserved).

Definition at line 383 of file stm32f7xx_hal_sd.h.

#define SD_CMD_HS_BUSTEST_READ   ((uint8_t)14U)

Definition at line 348 of file stm32f7xx_hal_sd.h.

#define SD_CMD_HS_BUSTEST_WRITE   ((uint8_t)19U)

64 bytes tuning pattern is sent for SDR50 and SDR104.

Definition at line 361 of file stm32f7xx_hal_sd.h.

#define SD_CMD_HS_SEND_EXT_CSD   ((uint8_t)8U)

Sends SD Memory Card interface condition, which includes host supply voltage information and asks the card whether card supports voltage.

Definition at line 340 of file stm32f7xx_hal_sd.h.

#define SD_CMD_HS_SWITCH   ((uint8_t)6U)

Checks switchable function (mode 0) and switch card function (mode 1).

Definition at line 338 of file stm32f7xx_hal_sd.h.

#define SD_CMD_LOCK_UNLOCK   ((uint8_t)42U)

Sets/resets the password or lock/unlock the card. The size of the data block is set by the SET_BLOCK_LEN command.

Definition at line 384 of file stm32f7xx_hal_sd.h.

#define SD_CMD_NO_CMD   ((uint8_t)64U)

Definition at line 393 of file stm32f7xx_hal_sd.h.

#define SD_CMD_PROG_CID   ((uint8_t)26U)

Reserved for manufacturers.

Definition at line 368 of file stm32f7xx_hal_sd.h.

#define SD_CMD_PROG_CSD   ((uint8_t)27U)

Programming of the programmable bits of the CSD.

Definition at line 369 of file stm32f7xx_hal_sd.h.

#define SD_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11U)

SD card doesn't support it.

Definition at line 345 of file stm32f7xx_hal_sd.h.

#define SD_CMD_READ_MULT_BLOCK   ((uint8_t)18U)

Continuously transfers data blocks from card to host until interrupted by STOP_TRANSMISSION command.

Definition at line 358 of file stm32f7xx_hal_sd.h.

#define SD_CMD_READ_SINGLE_BLOCK   ((uint8_t)17U)

Reads single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC.

Definition at line 355 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_CHANGE_SECURE_AREA   ((uint8_t)49U)

For SD card only

Definition at line 427 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_GET_CER_RES1   ((uint8_t)48U)

For SD card only

Definition at line 423 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_GET_CER_RN2   ((uint8_t)46U)

For SD card only

Definition at line 421 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_GET_MID   ((uint8_t)44U)

For SD card only

Definition at line 419 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_GET_MKB   ((uint8_t)43U)

Following commands are SD Card Specific security commands. SD_CMD_APP_CMD should be sent before sending these commands.

For SD card only

Definition at line 418 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_OP_COND   ((uint8_t)41U)

(ACMD41) Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.

Definition at line 406 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SECURE_ERASE   ((uint8_t)38U)

For SD card only

Definition at line 426 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SECURE_READ_MULTIPLE_BLOCK   ((uint8_t)18U)

For SD card only

Definition at line 424 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SECURE_WRITE_MKB   ((uint8_t)48U)

For SD card only

Definition at line 428 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SECURE_WRITE_MULTIPLE_BLOCK   ((uint8_t)25U)

For SD card only

Definition at line 425 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22U)

(ACMD22) Sends the number of the written (without errors) write blocks. Responds with 32bit+CRC data block.

Definition at line 403 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SEND_SCR   ((uint8_t)51U)

Reads the SD Configuration Register (SCR).

Definition at line 410 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SET_CER_RES2   ((uint8_t)47U)

For SD card only

Definition at line 422 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SET_CER_RN1   ((uint8_t)45U)

For SD card only

Definition at line 420 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42U)

(ACMD42) Connects/Disconnects the 50 KOhm pull-up resistor on CD/DAT3 (pin 1) of the card.

Definition at line 409 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_APP_STATUS   ((uint8_t)13U)

(ACMD13) Sends the SD status.

Definition at line 402 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_ERASE_GRP_END   ((uint8_t)33U)

Sets the address of the last write block of the continuous range to be erased.

Definition at line 374 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SD_ERASE_GRP_START   ((uint8_t)32U)

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

Definition at line 373 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SDMMC_RW_DIRECT   ((uint8_t)52U)

For SD I/O card only, reserved for security specification.

Definition at line 411 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SDMMC_RW_EXTENDED   ((uint8_t)53U)

For SD I/O card only, reserved for security specification.

Definition at line 412 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SDMMC_SEN_OP_COND   ((uint8_t)5U)

Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.

Definition at line 335 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SEL_DESEL_CARD   ((uint8_t)7U)

Selects the card by its own relative address and gets deselected by any other address

Definition at line 339 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SEND_CID   ((uint8_t)10U)

Addressed card sends its card identification (CID) on the CMD line.

Definition at line 344 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SEND_CSD   ((uint8_t)9U)

Addressed card sends its card specific data (CSD) on the CMD line.

Definition at line 343 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SEND_OP_COND   ((uint8_t)1U)

Sends host capacity support information and activates the card's initialization process.

Definition at line 331 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SEND_STATUS   ((uint8_t)13U)

Addressed card sends its status register.

Definition at line 347 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SEND_WRITE_PROT   ((uint8_t)30U)

Asks the card to send the status of the write protection bits.

Definition at line 372 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SET_BLOCK_COUNT   ((uint8_t)23U)

Specify block count for CMD18 and CMD25.

Definition at line 363 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SET_BLOCKLEN   ((uint8_t)16U)

Sets the block length (in bytes for SDSC) for all following block commands (read, write, lock). Default block length is fixed to 512 Bytes. Not effective for SDHS and SDXC.

Definition at line 350 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SET_DSR   ((uint8_t)4U)

Programs the DSR of all cards.

Definition at line 334 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SET_REL_ADDR   ((uint8_t)3U)

Asks the card to publish a new relative address (RCA).

Definition at line 333 of file stm32f7xx_hal_sd.h.

#define SD_CMD_SET_WRITE_PROT   ((uint8_t)28U)

Sets the write protection bit of the addressed group.

Definition at line 370 of file stm32f7xx_hal_sd.h.

#define SD_CMD_STOP_TRANSMISSION   ((uint8_t)12U)

Forces the card to stop transmission.

Definition at line 346 of file stm32f7xx_hal_sd.h.

#define SD_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20U)

Speed class control command.

Definition at line 362 of file stm32f7xx_hal_sd.h.

#define SD_CMD_WRITE_MULT_BLOCK   ((uint8_t)25U)

Continuously writes blocks of data until a STOP_TRANSMISSION follows.

Definition at line 367 of file stm32f7xx_hal_sd.h.

#define SD_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24U)

Writes single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC.

Definition at line 364 of file stm32f7xx_hal_sd.h.

#define SECURE_DIGITAL_IO_CARD   ((uint32_t)0x00000004U)

Definition at line 437 of file stm32f7xx_hal_sd.h.

#define SECURE_DIGITAL_IO_COMBO_CARD   ((uint32_t)0x00000006U)

Definition at line 439 of file stm32f7xx_hal_sd.h.

#define STD_CAPACITY_SD_CARD_V1_1   ((uint32_t)0x00000000U)

Supported SD Memory Cards.

Definition at line 433 of file stm32f7xx_hal_sd.h.

#define STD_CAPACITY_SD_CARD_V2_0   ((uint32_t)0x00000001U)

Definition at line 434 of file stm32f7xx_hal_sd.h.