- Main Page
- Modules
- Data Structures
- Files

Defines
MMC/SD Symbols Defined
MMCSD

## Defines
#define | CSL_MMCSD_STUFF_BITS (0x0000)
#define | CSL_SD_HC_ECHO_PATTERN (0xAAu)
#define | CSL_SD_HC_VHS_ECHO (0x100u)
#define | CSL_MMCSD_SHIFT_MAX (16)
#define | CSL_MMCSD_MASK_MAX (0xFFFF)
#define | CSL_MMCSD_ACTIVE (0x0)
#define | CSL_MMCSD_RESET (0x1u)
#define | CSL_MMCSD_RESET_COUNT (0x20u)
#define | CSL_MMCSD_ENABLE (0x1u)
#define | CSL_MMCSD_DISABLE (0x0)
#define | CSL_MMCSD_ISR_TXMT (0x0)
#define | CSL_MMCSD_ISR_RCV (0x1)
#define | CSL_MMCSD_DELAY_TIME (100U)
#define | CSL_MMCSD_RESPONSE_TIMEOUT (0xFFFF)
#define | CSL_MMCSD_DATA_RW_TIMEOUT (0xFFFF)
#define | CSL_MMCSD_CLK_DIV_INIT (124)
#define | CSL_MMCSD_BUSY_STATE (0x01)
#define | CSL_MMCSD_FIFO_EMPTY (0x20)
#define | CSL_MMCSD_CMDDAT_RESET (0x03)
#define | CSL_SD_CARD_DETECTED (0x0120)
#define | CSL_MMC_CARD_DETECTED (0x8000)
#define | CSL_MMCSD_RESP_DONE (0x04)
#define | CSL_MMCSD_BLOCK_LENGTH (512u)
#define | CSL_MMCSD_BLOCK_LEN_MAX (0x0FFFu)
#define | CSL_MMCSD_READ_READY (0x0400)
#define | CSL_MMCSD_WRITE_READY (0x0200)
#define | CSL_MMCSD_DISPATCH_TABLE_SIZE (12U)
#define | CSL_MMCSD_NULL (0)
#define | CSL_MMCSD_RESP_COUNT (8)
#define | CSL_MMC_MAX_CLOCK_RATE (0xFFu)
#define | CSL_MMC_CMD8_ARG (0x1AAu)
#define | CSL_MMC_CMD1_ARG (0x00ff8000u)
#define | CSL_MMC_ACMD41_ARG_HCS (0x40ff8000u)
#define | CSL_MMC_ACMD41_ARG_NOHCS (0x00ff8000u)
#define | CSL_MMC_BUSWIDTH_4BIT (0x00000002u)
#define | CSL_MMC_BUSWIDTH_1BIT (0x00000001u)
#define | CSL_MMSCD_ACMD41_RETRY_COUNT (1000u)
#define | CSL_MMSCD_CMD1_RETRY_COUNT (1000u)
#define | CSL_MMSCD_READ_WRITE_RETRY_COUNT (1000u)
#define | CSL_MMCSD_WRITE_INIT_CMD (0x0210)
#define | CSL_MMCSD_WRITE_BLOCK_CMD (0x2A18)
#define | CSL_MMCSD_READ_BLOCK_CMD (0xA211)
#define | CSL_MMCSD_WRITE_MULTIPLE_BLOCK_CMD (0x2A19u)
#define | CSL_MMCSD_READ_MULTIPLE_BLOCK_CMD (0xA212)
#define | CSL_MMCSD_ALL_SEND_CID_CMD (0x0402)
#define | CSL_MMCSD_CARD_INIT0_CMD (0x4000)
#define | CSL_MMCSD_SDHC_CARD_INIT_CMD (0x0208)
#define | CSL_MMCSD_SD_CARD_INIT_CMD (0x0237)
#define | CSL_MMCSD_MMCS_CARD_INIT_CMD (0x0601)
#define | CSL_MMCSD_SET_BLKLEN_CMD (0x0210)
#define | CSL_MMCSD_STOP_CMD (0x038C)
#define | CSL_MMCSD_CMD_0 (0x0000)
#define | CSL_MMCSD_CMD_1 (0x0601)
#define | CSL_MMCSD_CMD_2 (0x0402)
#define | CSL_MMCSD_CMD_3 (0x0203)
#define | CSL_MMCSD_CMD_6 (0x0206)
#define | CSL_MMCSD_CMD_7 (0x0307)
#define | CSL_MMCSD_CMD_8 (0x0208)
#define | CSL_MMCSD_CMD_9 (0x0409)
#define | CSL_MMCSD_CMD_13 (0x020D)
#define | CSL_MMCSD_ACMD_23 (0x0217)
#define | CSL_MMCSD_CMD_41 (0x0629)
#define | CSL_MMCSD_ACMD_42 (0x022A)
#define | CSL_MMCSD_CMD_55 (0x0237)
#define | CSL_MMCSD_CMD41_RESP (0x80FF8000u)
#define | CSL_MMCSD_CMD1_RESP (0x80FF8000u)
#define | CSL_MMCSD_SDHC_RESP (0x40000000u)
#define | CSL_MMCSD_CARDCHECK_COUNT (3u)
#define | CSL_MMCSD_PAGE_SIZE (512u)
#define | USE_ATA_NO_SWAP (TRUE)

## Define Documentation

#define CSL_MMC_ACMD41_ARG_HCS (0x40ff8000u)

Argument for the MMCSD ACMD41 with HSC bit set

Referenced by MMC_selectCard().

#define CSL_MMC_ACMD41_ARG_NOHCS (0x00ff8000u)

Argument for the MMCSD ACMD41 with HSC bit not set

Referenced by MMC_selectCard().

#define CSL_MMC_BUSWIDTH_1BIT (0x00000001u)

Argument value to set the bus width to 1 bit

#define CSL_MMC_BUSWIDTH_4BIT (0x00000002u)

Argument value to set the bus width to 4 bit

Referenced by SD_getCardCsd().

#define CSL_MMC_CARD_DETECTED (0x8000)

The response for card detection when a MMC Card is detected

#define CSL_MMC_CMD1_ARG (0x00ff8000u)

Argument for the MMCSD CMD1

Referenced by MMC_selectCard().

#define CSL_MMC_CMD8_ARG (0x1AAu)

Argument for the MMCSD CMD8

Referenced by MMC_selectCard().

#define CSL_MMC_MAX_CLOCK_RATE (0xFFu)

Maximum clock rate value accepted by the MMC clock control register

Referenced by MMC_sendOpCond().

#define CSL_MMCSD_ACMD_23 (0x0217)

MMCCMD1 recommended value for Application command 23

Referenced by MMC_setWriteBlkEraseCnt().

#define CSL_MMCSD_ACMD_42 (0x022A)

MMCCMD1 recommended value for application command 42

Referenced by SD_configurePullup().

#define CSL_MMCSD_ACTIVE (0x0)

bit value in PCGCR for activate the mmcsd controller

#define CSL_MMCSD_ALL_SEND_CID_CMD (0x0402)

All send CID command

#define CSL_MMCSD_BLOCK_LEN_MAX (0x0FFFu)

max value of block length for MMCSD

#define CSL_MMCSD_BLOCK_LENGTH (512u)

Number of bytes in block of mmc or Sd card

Referenced by MMC_read(), and MMC_write().

#define CSL_MMCSD_BUSY_STATE (0x01)

This bit is used to check whether the MMCSD is in busy state

Referenced by MMC_read(), and MMC_write().

#define CSL_MMCSD_CARD_INIT0_CMD (0x4000)

init card command

Referenced by MMC_selectCard().

#define CSL_MMCSD_CARDCHECK_COUNT (3u)

Number of cycles required to detect the card type

#define CSL_MMCSD_CLK_DIV_INIT (124)

minimum clock division for which both card can respond

Referenced by MMC_selectCard().

#define CSL_MMCSD_CMD1_RESP (0x80FF8000u)

MMCSD response for CMD1

Referenced by MMC_selectCard().

#define CSL_MMCSD_CMD41_RESP (0x80FF8000u)

MMCSD response for ACMD41

Referenced by MMC_selectCard().

#define CSL_MMCSD_CMD_0 (0x0000)

MMCCMD1 recommended value for command 0

#define CSL_MMCSD_CMD_1 (0x0601)

MMCCMD1 recommended value for command 1

#define CSL_MMCSD_CMD_13 (0x020D)

MMCCMD1 recommended value for command 13

Referenced by MMC_getCardStatus().

#define CSL_MMCSD_CMD_2 (0x0402)

MMCCMD1 recommended value for command 2

Referenced by MMC_sendAllCID(), and SD_sendAllCID().

#define CSL_MMCSD_CMD_3 (0x0203)

MMCCMD1 recommended value for command 3

#define CSL_MMCSD_CMD_41 (0x0629)

MMCCMD1 recommended value for application command 41

Referenced by MMC_selectCard().

#define CSL_MMCSD_CMD_55 (0x0237)

MMCCMD1 recommended value for command 55

Referenced by MMC_setWriteBlkEraseCnt(), SD_configurePullup(), SD_getCardCsd(), and SD_setBusWidth().

#define CSL_MMCSD_CMD_6 (0x0206)

MMCCMD1 recommended value for command 6

Referenced by SD_getCardCsd(), and SD_setBusWidth().

#define CSL_MMCSD_CMD_7 (0x0307)

MMCCMD1 recommended value for command 7

Referenced by MMC_getCardCsd(), and SD_getCardCsd().

#define CSL_MMCSD_CMD_8 (0x0208)

MMCCMD1 recommended value for command 8

#define CSL_MMCSD_CMD_9 (0x0409)

MMCCMD1 recommended value for command 9

Referenced by MMC_getCardCsd(), and SD_getCardCsd().

#define CSL_MMCSD_CMDDAT_RESET (0x03)

These bits are used to check whether the MMCSD is in reset state

#define CSL_MMCSD_DATA_RW_TIMEOUT (0xFFFF)

Time out duration for data read/write

Referenced by MMC_selectCard().

#define CSL_MMCSD_DELAY_TIME (100U)

Time delay

#define CSL_MMCSD_DISABLE (0x0)

hash define value for disabling the particular bit

#define CSL_MMCSD_DISPATCH_TABLE_SIZE (12U)

Size of dispatch table for MMCSD Interrupts

#define CSL_MMCSD_ENABLE (0x1u)

hash define value for enabling the particular bit

#define CSL_MMCSD_FIFO_EMPTY (0x20)

This bit is used to check whether the MMCSD FIFO is empty

Referenced by MMC_read(), and MMC_write().

#define CSL_MMCSD_ISR_RCV (0x1)

ISR function ID for MMCSD0 Receiving the data

#define CSL_MMCSD_ISR_TXMT (0x0)

ISR function ID for MMCSD0 Transmitting the data

#define CSL_MMCSD_MASK_MAX (0xFFFF)

Max Mask value for Uint16 data type variable

Referenced by MMC_getCardCsd(), MMC_read(), MMC_selectCard(), MMC_sendCmd(), MMC_setBlockLength(), MMC_setWriteBlkEraseCnt(), MMC_write(), SD_getCardCsd(), and SD_setBusWidth().

#define CSL_MMCSD_MMCS_CARD_INIT_CMD (0x0601)

select card command for MMC

Referenced by MMC_selectCard().

#define CSL_MMCSD_NULL (0)

Macro to compare the NULL values

#define CSL_MMCSD_PAGE_SIZE (512u)

MMCSD Sector size in bytes

Referenced by MMC_issueReadCommand(), MMC_readNSectors(), MMC_readWriteControl(), MMC_writeNSectors(), and MMC_writeSector().

#define CSL_MMCSD_READ_BLOCK_CMD (0xA211)

Read single block command

Referenced by MMC_read().

#define CSL_MMCSD_READ_MULTIPLE_BLOCK_CMD (0xA212)

Read multiple block command

Referenced by MMC_read().

#define CSL_MMCSD_READ_READY (0x0400)

Bits that are used to check whether data can be read from the card

Referenced by MMC_read().

#define CSL_MMCSD_RESET (0x1u)

reset mmcsd bit field

#define CSL_MMCSD_RESET_COUNT (0x20u)

reset count for mmcsd

Referenced by MMC_init().

#define CSL_MMCSD_RESP_COUNT (8)

Number of repsonse register avaialable

#define CSL_MMCSD_RESP_DONE (0x04)

This bit is used to check whether the MMCSD has responded to a command

#define CSL_MMCSD_RESPONSE_TIMEOUT (0xFFFF)

Time out duration for response

Referenced by MMC_selectCard().

#define CSL_MMCSD_SD_CARD_INIT_CMD (0x0237)

select card command for SD

Referenced by MMC_selectCard().

#define CSL_MMCSD_SDHC_CARD_INIT_CMD (0x0208)

select card command for SD HC

Referenced by MMC_selectCard().

#define CSL_MMCSD_SDHC_RESP (0x40000000u)

MMCSD response for SDHC card

Referenced by MMC_selectCard().

#define CSL_MMCSD_SET_BLKLEN_CMD (0x0210)

Set block length command

Referenced by MMC_setBlockLength().

#define CSL_MMCSD_SHIFT_MAX (16)

Max shift value for Uint16 data type variable

Referenced by MMC_getCardCsd(), MMC_getCardStatus(), MMC_getStatus(), MMC_read(), MMC_selectCard(), MMC_sendCmd(), MMC_setBlockLength(), MMC_setWriteBlkEraseCnt(), MMC_write(), SD_getCardCsd(), and SD_setBusWidth().

#define CSL_MMCSD_STOP_CMD (0x038C)

MMCSD stop command

Referenced by MMC_read(), and MMC_write().

#define CSL_MMCSD_STUFF_BITS (0x0000)

stuff bits value for 16 bit variable

Referenced by MMC_deselectCard(), MMC_read(), MMC_selectCard(), MMC_sendAllCID(), MMC_sendGoIdle(), MMC_setRca(), MMC_stop(), MMC_write(), SD_sendAllCID(), and SD_sendRca().

#define CSL_MMCSD_WRITE_BLOCK_CMD (0x2A18)

Write block command

Referenced by MMC_write().

#define CSL_MMCSD_WRITE_INIT_CMD (0x0210)

Write initialize command

#define CSL_MMCSD_WRITE_MULTIPLE_BLOCK_CMD (0x2A19u)

Write multiple block command

Referenced by MMC_write().

#define CSL_MMCSD_WRITE_READY (0x0200)

Bits that are used to check whether data can be written to the card

Referenced by MMC_write().

#define CSL_MMSCD_ACMD41_RETRY_COUNT (1000u)

Number of cycles ACMD41 will be repeated during card indentification

Referenced by MMC_selectCard().

#define CSL_MMSCD_CMD1_RETRY_COUNT (1000u)

Number of cycles CMD1 will be repeated during card indentification

Referenced by MMC_selectCard().

#define CSL_MMSCD_READ_WRITE_RETRY_COUNT (1000u)

Number of cycles read/write re-issue will be repeated during data txfers

Referenced by MMC_read(), and MMC_write().

#define CSL_SD_CARD_DETECTED (0x0120)

The response for card detection when SD Card is detected

#define CSL_SD_HC_ECHO_PATTERN (0xAAu)

Card Echo pattern for SD high capacity card

Referenced by MMC_selectCard().

#define CSL_SD_HC_VHS_ECHO (0x100u)

Card VHS bit response value for CMD8

Referenced by MMC_selectCard().

#define USE_ATA_NO_SWAP (TRUE)

Macro to enable the control of MMCSD word swap using 'ATA_No_Swap'