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 namespace PFFS { 00010 00011 /* Status of Disk Functions */ 00012 typedef BYTE DSTATUS; 00013 00014 /* Results of Disk Functions */ 00015 typedef enum { 00016 RES_OK = 0, /* 0: Function succeeded */ 00017 RES_ERROR, /* 1: Disk error */ 00018 RES_NOTRDY, /* 2: Not ready */ 00019 RES_PARERR /* 3: Invalid parameter */ 00020 } DRESULT; 00021 00022 /*---------------------------------------*/ 00023 /* Prototypes for disk control functions */ 00024 00025 DSTATUS disk_initialize (void); 00026 DRESULT disk_readp (BYTE*, DWORD, WORD, WORD); 00027 DRESULT disk_writep (const BYTE*, DWORD); 00028 00029 #define STA_NOINIT 0x01 /* Drive not initialized */ 00030 #define STA_NODISK 0x02 /* No medium in the drive */ 00031 00032 /* Card type flags (CardType) */ 00033 #define CT_MMC 0x01 /* MMC ver 3 */ 00034 #define CT_SD1 0x02 /* SD ver 1 */ 00035 #define CT_SD2 0x04 /* SD ver 2 */ 00036 #define CT_SDC (CT_SD1|CT_SD2) /* SD */ 00037 #define CT_BLOCK 0x08 /* Block addressing */ 00038 00039 } // namespace PFFS 00040 00041 #define _DISKIO 00042 #endif 00043 00044 00045
Generated on Tue Jul 12 2022 21:03:50 by
1.7.2