12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef _DISKIO_DEFINED
- #define _DISKIO_DEFINED
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "integer.h"
- #include "../DataflashManager.h"
- typedef BYTE DSTATUS;
- typedef enum {
- RES_OK = 0,
- RES_ERROR,
- RES_WRPRT,
- RES_NOTRDY,
- RES_PARERR
- } DRESULT;
- DSTATUS disk_initialize (BYTE);
- DSTATUS disk_status (BYTE);
- DRESULT disk_read (BYTE, BYTE*, DWORD, BYTE);
- #if _READONLY == 0
- DRESULT disk_write (BYTE, const BYTE*, DWORD, BYTE);
- #endif
- DRESULT disk_ioctl (BYTE, BYTE, void*);
- #define STA_NOINIT 0x01
- #define STA_NODISK 0x02
- #define STA_PROTECT 0x04
- #define CTRL_SYNC 0
- #ifdef __cplusplus
- }
- #endif
- #endif
|