Enumerated Types

group group_sd_host_enums

Enums

enum cy_en_sd_host_cmd_type_t

cy_en_sd_host_cmd_type_t: SD command types.

Values:

enumerator CY_SD_HOST_CMD_NORMAL

Other commands.

enumerator CY_SD_HOST_CMD_SUSPEND

CMD52 for writing “Bus Suspend” in CCCR.

enumerator CY_SD_HOST_CMD_RESUME

CMD52 for writing “Function Select” in CCCR.

enumerator CY_SD_HOST_CMD_ABORT

CMD12, CMD52 for writing “I/O Abort” in CCCR.

enum cy_en_sd_host_auto_cmd_t

cy_en_sd_host_auto_cmd_t: SD Host auto command enable selection.

Values:

enumerator CY_SD_HOST_AUTO_CMD_NONE

Auto command disable.

enumerator CY_SD_HOST_AUTO_CMD_12

Auto command 12 enable.

enumerator CY_SD_HOST_AUTO_CMD_23

Auto command 23 enable.

enumerator CY_SD_HOST_AUTO_CMD_AUTO

Auto command Auto enable.

enum cy_en_sd_host_reset_t

cy_en_sd_host_reset_t: SD Host reset types.

Values:

enumerator CY_SD_HOST_RESET_DATALINE

Reset the data circuit only.

enumerator CY_SD_HOST_RESET_CMD_LINE

Reset the command circuit only.

enumerator CY_SD_HOST_RESET_ALL

Reset the whole SD Host controller.

enum cy_en_sd_host_adma_error_t

cy_en_sd_host_adma_error_t: SD Host error interrupt types.

Values:

enumerator CY_SD_HOST_ADMA_ST_STOP

Stop DMA - The SYS_ADR register points to a location next to the error descriptor.

enumerator CY_SD_HOST_ADMA_ST_FDS

Fetch Descriptor - The SYS_ADR register points to the error descriptor.

enumerator CY_SD_HOST_ADMA_ST_TFR

Transfer Data - SYS_ADR register points to a location next to the error descriptor.

enumerator CY_SD_HOST_ADMA_LEN_ERR

The ADMA Length Mismatch error.

enum cy_en_sd_host_auto_cmd_status_t

cy_en_sd_host_auto_cmd_status_t: Auto CMD Status error codes.

Values:

enumerator CY_SD_HOST_AUTO_CMD12_NOT_EXEC

Auto CMD12 Not Executed.

enumerator CY_SD_HOST_AUTO_CMD_TOUT_ERR

Auto CMD Timeout Error.

enumerator CY_SD_HOST_AUTO_CMD_CRC_ERR

Auto CMD CRC Error.

enumerator CY_SD_HOST_AUTO_CMD_EBIT_ERR

Auto CMD End Bit Error.

enumerator CY_SD_HOST_AUTO_CMD_IDX_ERR

Auto CMD Index Error.

enumerator CY_SD_HOST_AUTO_CMD_RESP_ERR

Auto CMD Response Error.

enumerator CY_SD_HOST_CMD_NOT_ISSUED_AUTO_CMD12

Command Not Issued By Auto CMD12 Error.

enum cy_en_sd_host_status_t

cy_en_sd_host_status_t: SD host error codes.

Values:

enumerator CY_SD_HOST_SUCCESS

Successful.

enumerator CY_SD_HOST_ERROR

Non-specific error code.

enumerator CY_SD_HOST_ERROR_INVALID_PARAMETER

The provided parameter is not valid.

enumerator CY_SD_HOST_ERROR_OPERATION_IN_PROGRESS

A conflicting or requested operation is still in progress.

enumerator CY_SD_HOST_ERROR_UNINITIALIZED

The module (or part of it) was not initialized properly.

enumerator CY_SD_HOST_ERROR_TIMEOUT

A Time Out error occurred.

enumerator CY_SD_HOST_OPERATION_INPROGRESS

The indicator for operation in progress.

enumerator CY_SD_HOST_ERROR_UNUSABLE_CARD

The card is unusable.

enumerator CY_SD_HOST_ERROR_DISCONNECTED

The card is disconnected.

enum cy_en_sd_host_bus_width_t

cy_en_sd_host_bus_width_t: The widths of the data bus.

Values:

enumerator CY_SD_HOST_BUS_WIDTH_1_BIT

The 1-bit mode data transfer width.

enumerator CY_SD_HOST_BUS_WIDTH_4_BIT

The 4-bit mode data transfer width.

enumerator CY_SD_HOST_BUS_WIDTH_8_BIT

The 8-bit mode data transfer width.

enum cy_en_sd_host_bus_speed_mode_t

cy_en_sd_host_bus_speed_mode_t: The bus speed modes.

Values:

enumerator CY_SD_HOST_BUS_SPEED_DEFAULT

Default Speed mode: 3.3V signaling at 25 MHz SDClk.

enumerator CY_SD_HOST_BUS_SPEED_HIGHSPEED

High Speed mode: 3.3V signaling at 50 MHz SDClk.

enumerator CY_SD_HOST_BUS_SPEED_SDR12_5

SDR12: UHS-I (1.8V signaling) at 25 MHz SDClk (12.5 MB/sec).

enumerator CY_SD_HOST_BUS_SPEED_SDR25

SDR25: UHS-I (1.8V signaling) at 50 MHz SDClk (25 MB/sec).

enumerator CY_SD_HOST_BUS_SPEED_SDR50

SDR50: UHS-I (1.8V signaling) at 100 MHz SDClk (50 MB/sec).

enumerator CY_SD_HOST_BUS_SPEED_EMMC_LEGACY

Backwards Compatibility with legacy MMC card (26MB/sec max).

enumerator CY_SD_HOST_BUS_SPEED_EMMC_HIGHSPEED_SDR

eMMC High speed SDR (52MB/sec max)

enum cy_en_sd_host_io_voltage_t

cy_en_sd_host_io_voltage_t: The SD bus voltage select.

Values:

enumerator CY_SD_HOST_IO_VOLT_3_3V

3.3V.

enumerator CY_SD_HOST_IO_VOLT_1_8V

1.8V.

enum cy_en_sd_host_erase_type_t

cy_en_sd_host_erase_type_t: Erase type.

Values:

enumerator CY_SD_HOST_ERASE_ERASE

The ERASE operation.

enumerator CY_SD_HOST_ERASE_DISCARD

The DISCARD operation.

enumerator CY_SD_HOST_ERASE_FULE

The Full User Area Logical Erase (FULE) operation.

enumerator CY_SD_HOST_ERASE_SECURE

The secure purge according to Secure Removal Type in EXT_CSD on the erase groups identified by the startAddr&endAddr parameters and any copies of those erase groups.

enumerator CY_SD_HOST_ERASE_SECURE_TRIM_STEP_2

The secure purge operation on the write blocks according to Secure Removal Type in EXT_CSD and copies of those write blocks that were previously identified using Cy_SD_Host_Erase with CY_SD_HOST_ERASE_SECURE_TRIM_STEP_1.

enumerator CY_SD_HOST_ERASE_SECURE_TRIM_STEP_1

Mark the write blocks, indicated by the startAddr&endAddr parameters, for secure erase.

enumerator CY_SD_HOST_ERASE_TRIM

Trim the write blocks identified by the startAddr&endAddr parameters.

The controller can perform the actual erase at convenient time.

enum cy_en_sd_host_card_type_t

cy_en_sd_host_card_type_t: Card type.

Values:

enumerator CY_SD_HOST_SD

The Secure Digital card (SD).

enumerator CY_SD_HOST_SDIO

The CD Input Output card (SDIO).

enumerator CY_SD_HOST_EMMC

The Embedded Multimedia card (eMMC).

enumerator CY_SD_HOST_COMBO

The Combo card (SD + SDIO).

enumerator CY_SD_HOST_UNUSABLE

The unusable or not supported.

enumerator CY_SD_HOST_NOT_EMMC

The card is not eMMC.

enum cy_en_sd_host_card_capacity_t

cy_en_sd_host_card_capacity_t: The card capacity type.

Values:

enumerator CY_SD_HOST_SDSC

SDSC - Secure Digital Standard Capacity (up to 2 GB).

enumerator CY_SD_HOST_SDHC

SDHC - Secure Digital High Capacity (up to 32 GB).

enumerator CY_SD_HOST_EMMC_LESS_2G

The eMMC block addressing for less than 2GB.

enumerator CY_SD_HOST_EMMC_GREATER_2G

The eMMC block addressing for greater than 2GB.

enumerator CY_SD_HOST_SDXC

SDXC - Secure Digital Extended Capacity (up to 2 TB).

enumerator CY_SD_HOST_UNSUPPORTED

Not supported.

enum cy_en_sd_host_response_type_t

cy_en_sd_host_response_type_t: SDHC response types.

Values:

enumerator CY_SD_HOST_RESPONSE_NONE

No Response.

enumerator CY_SD_HOST_RESPONSE_LEN_136

Response Length 136.

enumerator CY_SD_HOST_RESPONSE_LEN_48

Response Length 48.

enumerator CY_SD_HOST_RESPONSE_LEN_48B

Response Length 48.

Check Busy after response.

enum cy_en_sd_host_dma_type_t

cy_en_sd_host_dma_type_t: The DMA type enum.

Values:

enumerator CY_SD_HOST_DMA_SDMA

SDMA mode.

enumerator CY_SD_HOST_DMA_ADMA2

ADMA2 mode.

enumerator CY_SD_HOST_DMA_ADMA2_ADMA3

ADMA2-ADMA3 mode.

enum cy_en_sd_host_write_protect_t

cy_en_sd_host_write_protect_t: Write Protect type enum.

Values:

enumerator CY_SD_HOST_PERMANENT

The permanent write protect.

enumerator CY_SD_HOST_ENABLE_TEMPORARY

The temporary write protect.

enumerator CY_SD_HOST_DISABLE_TEMPORARY

Clear the temporary write protect.