LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
hostemu.h
Go to the documentation of this file.
1
/*
2
hostemu.h
3
DOSFS Embedded FAT-Compatible Filesystem
4
Host-Side Emulation Code
5
(C) 2005 Lewin A.R.W. Edwards (sysadm@zws.com)
6
*/
7
8
#ifndef _HOSTEMU_H
9
#define _HOSTEMU_H
10
11
#include <sys/types.h>
12
13
// Override media sector functions
14
#define DFS_ReadSector(unit,buffer,sector,count) DFS_HostReadSector(buffer,sector,count)
15
#define DFS_WriteSector(unit,buffer,sector,count) DFS_HostWriteSector(buffer,sector,count)
16
17
18
/*
19
Attach emulation to a host-side disk image file
20
Returns 0 OK, nonzero for any error
21
*/
22
int
DFS_HostAttach
(
char
*imagefile);
23
24
/*
25
Read sector from image
26
Returns 0 OK, nonzero for any error
27
*/
28
int
DFS_HostReadSector
(uint8_t *buffer,
uint32_t
sector,
uint32_t
count);
29
30
/*
31
Write sector to image
32
Returns 0 OK, nonzero for any error
33
*/
34
int
DFS_HostWriteSector
(uint8_t *buffer,
uint32_t
sector,
uint32_t
count);
35
36
37
#endif // _HOSTEMU_H
applications
lpc18xx_43xx
examples
43xx_dualcore
lwip
lwip_httpserver
dos_fs
hostemu.h
Generated on Fri Nov 16 2012 13:36:34 for LPCOpen Platform by
1.8.2