STIMA
3
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
b
c
d
e
g
h
i
l
m
n
p
r
s
t
u
v
w
Functions
Variables
b
c
d
e
g
h
i
l
m
n
p
r
s
t
u
v
w
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Functions
c
e
g
i
l
m
o
p
r
s
t
Variables
a
c
d
e
h
i
j
l
n
o
p
r
s
t
w
Enumerations
Enumerator
e
i
l
o
r
s
t
Macros
b
c
d
e
f
g
i
j
l
m
n
o
r
s
t
u
v
w
y
•
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Modules
Pages
platformio
stima_v3
digitecoboot_ihex
pff
src
diskio.h
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
9
extern
"C"
{
10
#endif
11
12
#include "integer.h"
13
14
15
/* Status of Disk Functions */
16
typedef
BYTE DSTATUS;
17
18
19
/* Results of Disk Functions */
20
typedef
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
31
DSTATUS disk_initialize (
void
);
32
DRESULT disk_readp (BYTE* buff, DWORD sector, UINT offser, UINT count);
33
DRESULT disk_writep (
const
BYTE* buff, DWORD sc);
34
35
#define STA_NOINIT 0x01
/* Drive not initialized */
36
#define STA_NODISK 0x02
/* No medium in the drive */
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif
/* _DISKIO_DEFINED */
Generated by
1.9.1