Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
diskio.h
00001 /*----------------------------------------------------------------------- 00002 / PFF - Low level disk interface modlue include file (C)ChaN, 2009 00003 /-----------------------------------------------------------------------*/ 00004 00005 #ifndef _DISKIO 00006 00007 #include "integer.h" 00008 00009 #define STA_NOINIT 0x01 /* Drive not initialized */ 00010 #define STA_NODISK 0x02 /* No medium in the drive */ 00011 00012 /* Card type flags (CardType) */ 00013 #define CT_MMC 0x01 /* MMC ver 3 */ 00014 #define CT_SD1 0x02 /* SD ver 1 */ 00015 #define CT_SD2 0x04 /* SD ver 2 */ 00016 #define CT_SDC (CT_SD1|CT_SD2) /* SD */ 00017 #define CT_BLOCK 0x08 /* Block addressing */ 00018 00019 /* Status of Disk Functions */ 00020 typedef BYTE DSTATUS; 00021 00022 /* Results of Disk Functions */ 00023 typedef enum { 00024 RES_OK = 0, /* 0: Function succeeded */ 00025 RES_ERROR, /* 1: Disk error */ 00026 RES_NOTRDY, /* 2: Not ready */ 00027 RES_PARERR /* 3: Invalid parameter */ 00028 } DRESULT; 00029 00030 /*---------------------------------------*/ 00031 /* Prototypes for disk control functions */ 00032 00033 DSTATUS disk_initialize (void); 00034 DRESULT disk_readp (BYTE*, DWORD, WORD, WORD); 00035 DRESULT disk_writep (const BYTE*, DWORD); 00036 00037 #define _DISKIO 00038 #endif
Generated on Mon Jul 18 2022 15:07:54 by
1.7.2