source: uKadecot/trunk/pfatfs/diskio.h@ 101

Last change on this file since 101 was 101, checked in by coas-nagasima, 9 years ago

TOPPERS/uKadecotのソースコードを追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/plain
File size: 1.0 KB
RevLine 
[101]1/*-----------------------------------------------------------------------
2/ PFF - Low level disk interface modlue include file (C)ChaN, 2014
3/-----------------------------------------------------------------------*/
4
5#ifndef _DISKIO_DEFINED
6#define _DISKIO_DEFINED
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include "integer.h"
13
14
15/* Status of Disk Functions */
16typedef BYTE DSTATUS;
17
18
19/* Results of Disk Functions */
20typedef enum {
21 RES_OK = 0, /* 0: Function succeeded */
22 RES_ERROR, /* 1: Disk error */
23 RES_NOTRDY, /* 2: Not ready */
24 RES_PARERR /* 3: Invalid parameter */
25} DRESULT;
26
27
28/*---------------------------------------*/
29/* Prototypes for disk control functions */
30
31DSTATUS disk_initialize (void);
32DSTATUS disk_get_status (void);
33DRESULT disk_readp (BYTE* buff, DWORD sector, UINT offset, UINT count);
34DRESULT disk_writep (const BYTE* buff, DWORD sc);
35
36#define STA_NOINIT 0x01 /* Drive not initialized */
37#define STA_NODISK 0x02 /* No medium in the drive */
38
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* _DISKIO_DEFINED */
Note: See TracBrowser for help on using the repository browser.