Skip to main contentModule cmd
Source - ext_csd
- EXT_CSD byte offsets the driver currently consumes. Full register is
512 bytes; only document the ones we read.
- Command
- SD/MMC command definitions
- DataDirection
- Direction of the data phase that follows a command, if any.
- CMD0
- CMD0: GO_IDLE_STATE — Reset all cards to idle
- CMD2
- CMD2: ALL_SEND_CID — Request CID from all cards
- CMD5
- CMD5: IO_SEND_OP_COND (SDIO)
- CMD3_SD
- CMD3: SEND_RELATIVE_ADDR (SD) or SET_RELATIVE_ADDR (MMC)
- CMD8_MMC
- CMD8 (MMC): SEND_EXT_CSD — read the 512-byte extended CSD register.
- CMD11
- CMD11: VOLTAGE_SWITCH — switch the bus to 1.8 V signaling.
- CMD12
- CMD12: STOP_TRANSMISSION — Stop read/write
- CMD19
- CMD19 (SD): SEND_TUNING_BLOCK — request a 64-byte tuning pattern.
- CMD21
- CMD21 (MMC): SEND_TUNING_BLOCK_HS200 — request the HS200 tuning
pattern.
- CMD38
- CMD38: ERASE
- CMD58
- CMD58: READ_OCR — Read OCR register
- MMC_TUNING_BLOCK_SIZE_4BIT
- Tuning block size for MMC CMD21 over a 4-bit bus.
- MMC_TUNING_BLOCK_SIZE_8BIT
- Tuning block size for MMC CMD21 over an 8-bit bus.
- SD_TUNING_BLOCK_SIZE
- Tuning block size for SD CMD19 (always 64 bytes).
- cmd1
- CMD1: SEND_OP_COND (MMC)
- cmd4
- CMD4: SET_DSR — Program driver stage register
- cmd6
- CMD6: SWITCH_FUNC — Switch card function
- cmd7
- CMD7: SELECT/DESELECT CARD
- cmd8
- CMD8: SEND_IF_COND — Send interface condition (SD)
- cmd9
- CMD9: SEND_CSD — Get CSD register
- cmd3_mmc
- CMD3 MMC variant: arg contains the desired RCA
- cmd6_high_speed
- CMD6 helper: switch function group 1 to high speed (50 MHz, function 1).
- cmd6_mmc_switch
- CMD6 (MMC): SWITCH — modify a single byte of EXT_CSD.
- cmd6_sd_access_mode
- CMD6 helper: select SD access mode function in group 1.
- cmd10
- CMD10: SEND_CID — Get CID register
- cmd13
- CMD13: SEND_STATUS
- cmd16
- CMD16: SET_BLOCKLEN
- cmd17
- CMD17: READ_SINGLE_BLOCK
- cmd18
- CMD18: READ_MULTIPLE_BLOCK
- cmd24
- CMD24: WRITE_BLOCK
- cmd25
- CMD25: WRITE_MULTIPLE_BLOCK
- cmd32
- CMD32: ERASE_WR_BLK_START
- cmd33
- CMD33: ERASE_WR_BLK_END
- cmd41
- CMD41: SD_SEND_OP_COND — Send operating condition (SD only)
- cmd52
- CMD52: IO_RW_DIRECT
- cmd53
- CMD53: IO_RW_EXTENDED
- cmd55
- CMD55: APP_CMD — Next command is application-specific
- cmd41_with_s18r
- CMD41 variant that can request SD 1.8 V signaling through S18R.