Dataflow Runtime API  3.1.1.0
Public Types | List of all members
imt::base::hal::stm32f769::peripherals::SDMMCUtils::CmdIndex Struct Reference

SDMMC Commands Index. More...

#include <Imt.Base.HAL.STM32F769/Peripherals/SDMMCUtils.h>

Public Types

enum  Id {
  GO_IDLE_STATE = 0U , SEND_OP_COND = 1U , ALL_SEND_CID = 2U , SET_REL_ADDR = 3U ,
  SET_DSR = 4U , SEN_OP_COND = 5U , HS_SWITCH = 6U , SEL_DESEL_CARD = 7U ,
  HS_SEND_EXT_CSD = 8U , SEND_CSD = 9U , SEND_CID = 10U , READ_DAT_UNTIL_STOP = 11U ,
  STOP_TRANSMISSION = 12U , SEND_STATUS = 13U , HS_BUSTEST_READ = 14U , GO_INACTIVE_STATE = 15U ,
  SET_BLOCKLEN = 16U , READ_SINGLE_BLOCK = 17U , READ_MULT_BLOCK = 18U , HS_BUSTEST_WRITE = 19U ,
  WRITE_DAT_UNTIL_STOP = 20U , SET_BLOCK_COUNT = 23U , WRITE_SINGLE_BLOCK = 24U , WRITE_MULT_BLOCK = 25U ,
  PROG_CID = 26U , PROG_CSD = 27U , SET_WRITE_PROT = 28U , CLR_WRITE_PROT = 29U ,
  SEND_WRITE_PROT = 30U , SD_ERASE_GRP_START = 32U , SD_ERASE_GRP_END = 33U , ERASE_GRP_START = 35U ,
  ERASE_GRP_END = 36U , ERASE = 38U , FAST_IO = 39U , GO_IRQ_STATE = 40U ,
  LOCK_UNLOCK = 42U , APP_CMD = 55U , GEN_CMD = 56U , NO_CMD = 64U
}
 

Detailed Description

SDMMC Commands Index.


@brief SDMMC Command Control structure

Member Enumeration Documentation

◆ Id

Enumerator
GO_IDLE_STATE 

Resets the SD memory card.

SEND_OP_COND 

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

ALL_SEND_CID 

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

SET_REL_ADDR 

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

SET_DSR 

Programs the DSR of all cards.

SEN_OP_COND 

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.

HS_SWITCH 

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

SEL_DESEL_CARD 

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

HS_SEND_EXT_CSD 

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

SEND_CSD 

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

SEND_CID 

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

READ_DAT_UNTIL_STOP 

SD card doesn't support it.

STOP_TRANSMISSION 

Forces the card to stop transmission.

SEND_STATUS 

Addressed card sends its status register.

HS_BUSTEST_READ 

Reserved.

GO_INACTIVE_STATE 

Sends an addressed card into the inactive state.

SET_BLOCKLEN 

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.

READ_SINGLE_BLOCK 

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.

READ_MULT_BLOCK 

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

HS_BUSTEST_WRITE 

64 bytes tuning pattern is sent for SDR50 and SDR104.

WRITE_DAT_UNTIL_STOP 

Speed class control command.

SET_BLOCK_COUNT 

Specify block count for CMD18 and CMD25.

WRITE_SINGLE_BLOCK 

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.

WRITE_MULT_BLOCK 

Continuously writes blocks of data until a STOP_TRANSMISSION follows.

PROG_CID 

Reserved for manufacturers.

PROG_CSD 

Programming of the programmable bits of the CSD.

SET_WRITE_PROT 

Sets the write protection bit of the addressed group.

CLR_WRITE_PROT 

Clears the write protection bit of the addressed group.

SEND_WRITE_PROT 

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

SD_ERASE_GRP_START 

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

SD_ERASE_GRP_END 

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

ERASE_GRP_START 

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

ERASE_GRP_END 

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).

ERASE 

Reserved for SD security applications.

FAST_IO 

SD card doesn't support it (Reserved).

GO_IRQ_STATE 

SD card doesn't support it (Reserved).

LOCK_UNLOCK 

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

APP_CMD 

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

GEN_CMD 

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.

NO_CMD 

No command.


The documentation for this struct was generated from the following file: