dos.h

来自「MMC interface and FAT File system」· C头文件 代码 · 共 39 行

H
39
字号
//#########################################################################
// File: dos.h
//
//
//#########################################################################
// Last change: 10.11.2003
//#########################################################################
// holger.klabunde@t-online.de
// http://home.t-online.de/home/holger.klabunde/homepage.htm
//#########################################################################
// Compiler: AVR-GCC 3.2
//#########################################################################

#ifndef __DOS_H
#define __DOS_H

#include "compact.h"
#include "fat.h"
#include "dir.h"

//fopen flags
#define F_READ	1
#define F_WRITE	2

#define F_ERROR	0 // dir/file operation failed
#define F_OK	1 // dir/file operation successfull

extern void InitDOS(void);
extern unsigned char fopen(char *name, unsigned char flag);
extern void fclose(void);
extern unsigned int fread(unsigned char *buf, unsigned int count);
extern unsigned int fwrite(unsigned char *buf, unsigned int count);
extern void fflush(void);

extern unsigned char ReadFileRaw(unsigned long startcluster);
extern unsigned char FindName(char *name);

#endif //__DOS_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?