| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

Modules | Macros
SD Exported Constants
NUC472/NUC442 Device Driver » SD Driver
Collaboration diagram for SD Exported Constants:

## Modules
| SD Exported Type Defines

## Macros
#define | SD_CARD 0
#define | SD_ERR_ID 0xFFFF0100
#define | SD_TIMEOUT (SD_ERR_ID|0x01)
#define | SD_NO_MEMORY (SD_ERR_ID|0x02)
#define | Successful 0
#define | Fail 1
#define | SD_TYPE_UNKNOWN 0
#define | SD_TYPE_SD_HIGH 1
#define | SD_TYPE_SD_LOW 2
#define | SD_TYPE_MMC 3
#define | SD_TYPE_EMMC 4
#define | SD_NO_SD_CARD (SD_ERR_ID|0x10)
#define | SD_ERR_DEVICE (SD_ERR_ID|0x11)
#define | SD_INIT_TIMEOUT (SD_ERR_ID|0x12)
#define | SD_SELECT_ERROR (SD_ERR_ID|0x13)
#define | SD_WRITE_PROTECT (SD_ERR_ID|0x14)
#define | SD_INIT_ERROR (SD_ERR_ID|0x15)
#define | SD_CRC7_ERROR (SD_ERR_ID|0x16)
#define | SD_CRC16_ERROR (SD_ERR_ID|0x17)
#define | SD_CRC_ERROR (SD_ERR_ID|0x18)
#define | SD_CMD8_ERROR (SD_ERR_ID|0x19)
#define | SD_FREQ 12000
#define | SDHC_FREQ 12000
#define | STOR_STRING_LEN 32
#define | SD_PORT0
#define | SD_PORT1
#define | CardDetect_From_GPIO
#define | CardDetect_From_DAT3

## Detailed Description

## Macro Definition Documentation

## ◆ CardDetect_From_DAT3

#define CardDetect_From_DAT3

Card detection pin is DAT3

Definition at line 68 of file sd.h.

## ◆ CardDetect_From_GPIO

#define CardDetect_From_GPIO

Card detection pin is GPIO

Definition at line 67 of file sd.h.

## ◆ Fail

#define Fail 1

Definition at line 38 of file sd.h.

## ◆ SD_CARD

#define SD_CARD 0

Definition at line 30 of file sd.h.

## ◆ SD_CMD8_ERROR

#define SD_CMD8_ERROR (SD_ERR_ID|0x19)

Definition at line 57 of file sd.h.

## ◆ SD_CRC16_ERROR

#define SD_CRC16_ERROR (SD_ERR_ID|0x17)

Definition at line 55 of file sd.h.

## ◆ SD_CRC7_ERROR

#define SD_CRC7_ERROR (SD_ERR_ID|0x16)

Definition at line 54 of file sd.h.

## ◆ SD_CRC_ERROR

#define SD_CRC_ERROR (SD_ERR_ID|0x18)

Definition at line 56 of file sd.h.

## ◆ SD_ERR_DEVICE

#define SD_ERR_DEVICE (SD_ERR_ID|0x11)

Definition at line 49 of file sd.h.

## ◆ SD_ERR_ID

#define SD_ERR_ID 0xFFFF0100

Definition at line 31 of file sd.h.

## ◆ SD_FREQ

#define SD_FREQ 12000

Definition at line 59 of file sd.h.

## ◆ SD_INIT_ERROR

#define SD_INIT_ERROR (SD_ERR_ID|0x15)

Definition at line 53 of file sd.h.

## ◆ SD_INIT_TIMEOUT

#define SD_INIT_TIMEOUT (SD_ERR_ID|0x12)

Definition at line 50 of file sd.h.

## ◆ SD_NO_MEMORY

#define SD_NO_MEMORY (SD_ERR_ID|0x02)

Definition at line 34 of file sd.h.

## ◆ SD_NO_SD_CARD

#define SD_NO_SD_CARD (SD_ERR_ID|0x10)

Definition at line 48 of file sd.h.

## ◆ SD_PORT0

#define SD_PORT0

Card select SD0

Definition at line 64 of file sd.h.

## ◆ SD_PORT1

#define SD_PORT1

Card select SD1

Definition at line 65 of file sd.h.

## ◆ SD_SELECT_ERROR

#define SD_SELECT_ERROR (SD_ERR_ID|0x13)

Definition at line 51 of file sd.h.

## ◆ SD_TIMEOUT

#define SD_TIMEOUT (SD_ERR_ID|0x01)

Definition at line 33 of file sd.h.

## ◆ SD_TYPE_EMMC

#define SD_TYPE_EMMC 4

Definition at line 45 of file sd.h.

## ◆ SD_TYPE_MMC

#define SD_TYPE_MMC 3

Definition at line 44 of file sd.h.

## ◆ SD_TYPE_SD_HIGH

#define SD_TYPE_SD_HIGH 1

Definition at line 42 of file sd.h.

## ◆ SD_TYPE_SD_LOW

#define SD_TYPE_SD_LOW 2

Definition at line 43 of file sd.h.

## ◆ SD_TYPE_UNKNOWN

#define SD_TYPE_UNKNOWN 0

Definition at line 41 of file sd.h.

## ◆ SD_WRITE_PROTECT

#define SD_WRITE_PROTECT (SD_ERR_ID|0x14)

Definition at line 52 of file sd.h.

## ◆ SDHC_FREQ

#define SDHC_FREQ 12000

Definition at line 60 of file sd.h.

## ◆ STOR_STRING_LEN

#define STOR_STRING_LEN 32

Definition at line 62 of file sd.h.

## ◆ Successful

#define Successful 0

Definition at line 37 of file sd.h.