hostemu.h
来自「好用的FAT文件系统,兼容FAT12/16/32」· C头文件 代码 · 共 38 行
H
38 行
/*
hostemu.h
DOSFS Embedded FAT-Compatible Filesystem
Host-Side Emulation Code
(C) 2005 Lewin A.R.W. Edwards (sysadm@zws.com)
*/
#ifndef _HOSTEMU_H
#define _HOSTEMU_H
#include <sys/types.h>
// Override media sector functions
#define DFS_ReadSector(unit,buffer,sector,count) DFS_HostReadSector(buffer,sector,count)
#define DFS_WriteSector(unit,buffer,sector,count) DFS_HostWriteSector(buffer,sector,count)
/*
Attach emulation to a host-side disk image file
Returns 0 OK, nonzero for any error
*/
int DFS_HostAttach(char *imagefile);
/*
Read sector from image
Returns 0 OK, nonzero for any error
*/
int DFS_HostReadSector(uint8_t *buffer, uint32_t sector, uint32_t count);
/*
Write sector to image
Returns 0 OK, nonzero for any error
*/
int DFS_HostWriteSector(uint8_t *buffer, uint32_t sector, uint32_t count);
#endif // _HOSTEMU_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?