![]() |
NUC472_NUC442_BSP V3.03.005
The Board Support Package for NUC472/NUC442
|
NUC472/NUC442 SD driver header file. More...
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | SD_info_t |
struct | disk_data_t |
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 |
#define | SD_ENABLE_INT(u32IntMask) |
Enable specified interrupt. More... | |
#define | SD_DISABLE_INT(u32IntMask) |
Disable specified interrupt. More... | |
#define | SD_GET_INT_FLAG(u32IntMask) |
Get specified interrupt flag/status. More... | |
#define | SD_CLR_INT_FLAG(u32IntMask) |
Clear specified interrupt flag/status. More... | |
#define | SD_IS_CARD_PRESENT(u32CardNum) |
Check SD Card inserted or removed. More... | |
#define | SD_GET_CARD_CAPACITY(u32CardNum) |
Get SD Card capacity. More... | |
Typedefs | |
typedef struct SD_info_t | SD_INFO_T |
typedef struct disk_data_t | DISK_DATA_T |
Functions | |
void | SD_Open (uint32_t u32CardDetSrc) |
This function use to reset SD function and select card detection source and pin. More... | |
void | SD_Probe (uint32_t u32CardNum) |
This function use to initial SD card. More... | |
uint32_t | SD_Read (uint32_t u32CardNum, uint8_t *pu8BufAddr, uint32_t u32StartSec, uint32_t u32SecCount) |
This function use to read data from SD card. More... | |
uint32_t | SD_Write (uint32_t u32CardNum, uint8_t *pu8BufAddr, uint32_t u32StartSec, uint32_t u32SecCount) |
This function use to write data to SD card. More... | |
NUC472/NUC442 SD driver header file.
Definition in file sd.h.