Defines | Enumerations
SDIO Enumerated Data Types
SDIO

Defines

#define CSL_SDIO_EVENT_ERROR
 Error type as received by the SDIO controller on response for a command.
#define CSL_SDIO_CMD_TOUT_CRC_ERROR
 Error type for command response timeout and CRC error.
#define CSL_SDIO_DATA_TOUT_CRC_ERROR
 Error type for data timeout and CRC error.

Enumerations

enum  CSL_SdioInstId {
  CSL_SDIO_INST0,
  CSL_SDIO_INST1,
  CSL_SDIO_INST_INV
}
 Hardware Instance Id to select SDIO controller registers. More...
enum  CSL_SdioRespType {
  CSL_SDIO_RESPTYPE_NO,
  CSL_SDIO_RESPTYPE_R1,
  CSL_SDIO_RESPTYPE_R2,
  CSL_SDIO_RESPTYPE_R3,
  CSL_SDIO_RESPTYPE_R4,
  CSL_SDIO_RESPTYPE_R5,
  CSL_SDIO_RESPTYPE_R6
}
 Response type from SDIO card. More...
enum  CSL_SdioRespBusy {
  CSL_SDIO_RESPBUSY_NO,
  CSL_SDIO_RESPBUSY_YES
}
 Response busy signal from the card. More...
enum  CSL_SdioCardType {
  CSL_SDIO_CARD_NONE = 0,
  CSL_SDIO_IO_CARD,
  CSL_SDIO_COMBO_CARD,
  CSL_SDIO_INVALID_CARD
}
 Type of card that is inserted. More...
enum  CSL_SdioCardRespEvent {
  CSL_SDIO_EVENT_EOFCMD = (1U << 2U),
  CSL_SDIO_EVENT_READ = (1U << 10U),
  CSL_SDIO_EVENT_WRITE = (1U << 9U),
  CSL_SDIO_EVENT_ERROR_CMDCRC = (1U << 7U),
  CSL_SDIO_EVENT_ERROR_DATACRC = ((1U << 6U)|(1 << 5U)),
  CSL_SDIO_EVENT_ERROR_CMDTIMEOUT = ((1U) << (4U)),
  CSL_SDIO_EVENT_ERROR_DATATIMEOUT = ((1U) << (3U)),
  CSL_SDIO_EVENT_CARD_EXITBUSY = ((1U) << (1U)),
  CSL_SDIO_EVENT_BLOCK_XFERRED = 1U
}
 SDIO event responses. More...
enum  CSL_SdioEventType {
  CSL_SDIO_EDATDNE_INTERRUPT,
  CSL_SDIO_EBSYDNE_INTERRUPT,
  CSL_SDIO_ERSPDNE_INTERRUPT,
  CSL_SDIO_ETOUTRD_INTERRUPT,
  CSL_SDIO_ETOUTRS_INTERRUPT,
  CSL_SDIO_ECRCWR_INTERRUPT,
  CSL_SDIO_ECRCRD_INTERRUPT,
  CSL_SDIO_ECRCRS_INTERRUPT,
  CSL_SDIO_RSV_BIT,
  CSL_SDIO_EDXRDY_INTERRUPT,
  CSL_SDIO_EDRRDY_INTERRUPT,
  CSL_SDIO_EDATED_INTERRUPT,
  CSL_SDIO_ETRNDNE_INTERRUPT,
  CSL_SDIO_MMCIM_ALL_INTERRUPT,
  CSL_SDIO_READWAIT_INTERRUPT,
  CSL_SDIO_CARD_INTERRUPT,
  CSL_SDIO_SDIOIEN_ALL_INTERRUPT
}
 Enum variable for the selection of SDIO events. More...
enum  CSL_SdioIntrStatus {
  CSL_SDIO_READWAIT_INTR_ENABLE,
  CSL_SDIO_READWAIT_INTR_DISABLE,
  CSL_SDIO_CARD_INTR_ENABLE,
  CSL_SDIO_CARD_INTR_DISABLE,
  CSL_SDIO_ALL_INTR_ENABLE,
  CSL_SDIO_ALL_INTR_DISABLE
}
 Enum variable for the selection of SDIO interrupt status. More...
enum  CSL_SdioEndianMode {
  CSL_SDIO_ENDIAN_LITTLE = 0U,
  CSL_SDIO_ENDIAN_BIG = 1U
}
 SDIO endianness. More...

Define Documentation

#define CSL_SDIO_CMD_TOUT_CRC_ERROR
#define CSL_SDIO_DATA_TOUT_CRC_ERROR
Value:

Error type for data timeout and CRC error.

Referenced by SDIO_readBlocks(), and SDIO_readBytes().

#define CSL_SDIO_EVENT_ERROR
Value:

Error type as received by the SDIO controller on response for a command.

Referenced by SDIO_detectCard(), SDIO_writeBlocks(), and SDIO_writeBytes().


Enumeration Type Documentation

SDIO event responses.

Enumerator:
CSL_SDIO_EVENT_EOFCMD 

for commands with response, an end of Command + Response; for commands without response, an end of Command

CSL_SDIO_EVENT_READ 

data available with controller for reading

CSL_SDIO_EVENT_WRITE 

data required by controller for writing

CSL_SDIO_EVENT_ERROR_CMDCRC 

Error detected in the CRC during command response phase

CSL_SDIO_EVENT_ERROR_DATACRC 

Error detected in the CRC during data transfer

CSL_SDIO_EVENT_ERROR_CMDTIMEOUT 

Timeout detected during command - response phase

CSL_SDIO_EVENT_ERROR_DATATIMEOUT 

Timeout detected during data transfer

CSL_SDIO_EVENT_CARD_EXITBUSY 

Card has exited busy state

CSL_SDIO_EVENT_BLOCK_XFERRED 

block transfer done

Type of card that is inserted.

Enumerator:
CSL_SDIO_CARD_NONE 

No card detected

CSL_SDIO_IO_CARD 

SD IO only card is detected - No memory

CSL_SDIO_COMBO_CARD 

SDIO combo card is detected - both IO and memory

CSL_SDIO_INVALID_CARD 

SDIO card inserted is as invalid/unusable card

SDIO endianness.

This enum holds the values to set endianness of the SDIO controller

Enumerator:
CSL_SDIO_ENDIAN_LITTLE 

Little endian mode configuration

CSL_SDIO_ENDIAN_BIG 

Big endian mode configuration

Enum variable for the selection of SDIO events.

Enumerator:
CSL_SDIO_EDATDNE_INTERRUPT 

Data done (DATDNE) interrupt enable.

CSL_SDIO_EBSYDNE_INTERRUPT 

Busy done (BSYDNE) interrupt enable.

CSL_SDIO_ERSPDNE_INTERRUPT 

Command/response done (RSPDNE) interrupt enable.

CSL_SDIO_ETOUTRD_INTERRUPT 

Read-data time-out event (TOUTRD) interrupt enable.

CSL_SDIO_ETOUTRS_INTERRUPT 

Response time-out event (TOUTRS) interrupt enable.

CSL_SDIO_ECRCWR_INTERRUPT 

Write-data CRC error (CRCWR) interrupt enable.

CSL_SDIO_ECRCRD_INTERRUPT 

Read-data CRC error (CRCRD) interrupt enable.

CSL_SDIO_ECRCRS_INTERRUPT 

Response CRC error (CRCRS) interrupt enable.

CSL_SDIO_RSV_BIT 

this bit is reserved.

CSL_SDIO_EDXRDY_INTERRUPT 

Data transmit register (MMCDXR) ready interrupt enable.

CSL_SDIO_EDRRDY_INTERRUPT 

Data receive register ready (DRRDY) interrupt enable.

CSL_SDIO_EDATED_INTERRUPT 

DAT3 edge detect (DATED) interrupt enable.

CSL_SDIO_ETRNDNE_INTERRUPT 

Transfer done (TRNDNE) interrupt enable.

CSL_SDIO_MMCIM_ALL_INTERRUPT 

All interrupts in MMCIM register

CSL_SDIO_READWAIT_INTERRUPT 

SDIO read wait interrupt

CSL_SDIO_CARD_INTERRUPT 

SDIO card interrupt

CSL_SDIO_SDIOIEN_ALL_INTERRUPT 

All interrupts in SDIOIEN register

Hardware Instance Id to select SDIO controller registers.

Enumerator:
CSL_SDIO_INST0 

SDIO instance number 0

CSL_SDIO_INST1 

SDIO instance number 1

Enum variable for the selection of SDIO interrupt status.

Enumerator:
CSL_SDIO_READWAIT_INTR_ENABLE 

Enable SDIO read wait interrupt

CSL_SDIO_READWAIT_INTR_DISABLE 

Disable SDIO read wait interrupt

CSL_SDIO_CARD_INTR_ENABLE 

Enable SDIO card interrupt

CSL_SDIO_CARD_INTR_DISABLE 

Disable SDIO card interrupt

CSL_SDIO_ALL_INTR_ENABLE 

Enable both read wit and SDIO card interrupts

CSL_SDIO_ALL_INTR_DISABLE 

Disable both read wit and SDIO card interrupts

Response busy signal from the card.

Enumerator:
CSL_SDIO_RESPBUSY_NO 

No busy signal during the response

CSL_SDIO_RESPBUSY_YES 

Busy signal during the response

Response type from SDIO card.

Depending on the command value sent to the card, the card responds with different response values.The type of response is defined in the structure.

Enumerator:
CSL_SDIO_RESPTYPE_NO 

Command response is None

CSL_SDIO_RESPTYPE_R1 

Command response is R1

CSL_SDIO_RESPTYPE_R2 

Command response is R2

CSL_SDIO_RESPTYPE_R3 

Command response is R3

CSL_SDIO_RESPTYPE_R4 

Command response is R4

CSL_SDIO_RESPTYPE_R5 

Command response is R5

CSL_SDIO_RESPTYPE_R6 

Command response is R6