NetBurner 3.1
file/fwerr.h
1 /*NB_REVISION*/
2 
3 #ifndef _FW_ERR_H_
4 #define _FW_ERR_H_
5 
6 /****************************************************************************
7  *
8  * Copyright (c) 2003 by HCC Embedded
9  *
10  * This software is copyrighted by and is the sole property of
11  * HCC. All rights, title, ownership, or other interests
12  * in the software remain the property of HCC. This
13  * software may only be used in accordance with the corresponding
14  * license agreement. Any unauthorized use, duplication, transmission,
15  * distribution, or disclosure of this software is expressly forbidden.
16  *
17  * This Copyright notice may not be removed or modified without prior
18  * written consent of HCC.
19  *
20  * HCC reserves the right to modify this software without notice.
21  *
22  * HCC Embedded
23  * Budapest 1132
24  * Victor Hugo Utca 11-15
25  * Hungary
26  *
27  * Tel: +36 (1) 450 1302
28  * Fax: +36 (1) 450 1303
29  * http: www.hcc-embedded.com
30  * email: info@hcc-embedded.com
31  *
32  ***************************************************************************/
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39  /****************************************************************************
40  *
41  * FW errorcodes
42  *
43  ***************************************************************************/
44 
45  enum
46  {
47  /* 0 */ FW_NO_ERROR,
48  /* 1 */ FW_ERR_INVALIDDRIVE,
49  /* 2 */ FW_ERR_NOTFORMATTED,
50  /* 3 */ FW_ERR_INVALIDDIR,
51  /* 4 */ FW_ERR_INVALIDNAME,
52  /* 5 */ FW_ERR_NOTFOUND,
53  /* 6 */ FW_ERR_DUPLICATED,
54  /* 7 */ FW_ERR_NOMOREENTRY,
55  /* 8 */ FW_ERR_NOTOPEN,
56  /* 9 */ FW_ERR_EOF,
57  /* 10 */ FW_ERR_RESERVED,
58  /* 11 */ FW_ERR_NOTUSEABLE,
59  /* 12 */ FW_ERR_LOCKED,
60  /* 13 */ FW_ERR_ACCESSDENIED,
61  /* 14 */ FW_ERR_NOTEMPTY,
62  /* 15 */ FW_ERR_INITFUNC,
63  /* 16 */ FW_ERR_CARDREMOVED,
64  /* 17 */ FW_ERR_ONDRIVE,
65  /* 18 */ FW_ERR_INVALIDSECTOR,
66  /* 19 */ FW_ERR_READ,
67  /* 20 */ FW_ERR_WRITE,
68  /* 21 */ FW_ERR_INVALIDMEDIA,
69  /* 22 */ FW_ERR_BUSY,
70  /* 23 */ FW_ERR_WRITEPROTECT,
71  /* 24 */ FW_ERR_INVFATTYPE,
72  /* 25 */ FW_ERR_MEDIATOOSMALL,
73  /* 26 */ FW_ERR_MEDIATOOLARGE,
74  /* 27 */ FW_ERR_NOTSUPPSECTORSIZE,
75  /* 28 */ FW_ERR_UNKNOWN,
76  /* 29 */ FW_ERR_DRVALREADYMNT,
77  /* 30 */ FW_ERR_TOOLONGNAME,
78  /* 31 */ FW_ERR_NOTFORREAD
79  };
80 
81  /****************************************************************************
82  *
83  * FS FAT errorcodes
84  *
85  ***************************************************************************/
86 
87 #define F_NO_ERROR FW_NO_ERROR
88 #define F_ERR_INVALIDDRIVE FW_ERR_INVALIDDRIVE
89 #define F_ERR_NOTFORMATTED FW_ERR_NOTFORMATTED
90 #define F_ERR_INVALIDDIR FW_ERR_INVALIDDIR
91 #define F_ERR_INVALIDNAME FW_ERR_INVALIDNAME
92 #define F_ERR_NOTFOUND FW_ERR_NOTFOUND
93 #define F_ERR_DUPLICATED FW_ERR_DUPLICATED
94 #define F_ERR_NOMOREENTRY FW_ERR_NOMOREENTRY
95 #define F_ERR_NOTOPEN FW_ERR_NOTOPEN
96 #define F_ERR_EOF FW_ERR_EOF
97 #define F_ERR_RESERVED FW_ERR_RESERVED
98 #define F_ERR_NOTUSEABLE FW_ERR_NOTUSEABLE
99 #define F_ERR_LOCKED FW_ERR_LOCKED
100 #define F_ERR_ACCESSDENIED FW_ERR_ACCESSDENIED
101 #define F_ERR_NOTEMPTY FW_ERR_NOTEMPTY
102 #define F_ERR_INITFUNC FW_ERR_INITFUNC
103 #define F_ERR_CARDREMOVED FW_ERR_CARDREMOVED
104 #define F_ERR_ONDRIVE FW_ERR_ONDRIVE
105 #define F_ERR_INVALIDSECTOR FW_ERR_INVALIDSECTOR
106 #define F_ERR_READ FW_ERR_READ
107 #define F_ERR_WRITE FW_ERR_WRITE
108 #define F_ERR_INVALIDMEDIA FW_ERR_INVALIDMEDIA
109 #define F_ERR_BUSY FW_ERR_BUSY
110 #define F_ERR_WRITEPROTECT FW_ERR_WRITEPROTECT
111 #define F_ERR_INVFATTYPE FW_ERR_INVFATTYPE
112 #define F_ERR_MEDIATOOSMALL FW_ERR_MEDIATOOSMALL
113 #define F_ERR_MEDIATOOLARGE FW_ERR_MEDIATOOLARGE
114 #define F_ERR_NOTSUPPSECTORSIZE FW_ERR_NOTSUPPSECTORSIZE
115 
116  /****************************************************************************
117  *
118  * FS STD errorcodes
119  *
120  ***************************************************************************/
121 
122 #define FS_NOERR FW_NO_ERROR
123 #define FS_INVALIDDRIVE FW_ERR_INVALIDDRIVE
124 #define FS_INVALIDDIR FW_ERR_INVALIDDIR
125 #define FS_INVALIDNAME FW_ERR_INVALIDNAME
126 #define FS_NOMOREENTRY FW_ERR_NOMOREENTRY
127 #define FS_DRIVEERROR FW_ERR_ONDRIVE
128 #define FS_DUPLICATED FW_ERR_DUPLICATED
129 #define FS_NOTFOUND FW_ERR_NOTFOUND
130 #define FS_NOTEMPTY FW_ERR_NOTEMPTY
131 #define FS_NOTUSEABLE FW_ERR_NOTUSEABLE
132 #define FS_NOTFORREAD FW_ERR_NOTFORREAD
133 #define FS_NOTOPEN FW_ERR_NOTOPEN
134 #define FS_BUSY FW_ERR_BUSY
135 #define FS_NOTFORMATTED FW_ERR_NOTFORMATTED
136 #define FS_NOPERMISSION FW_ERR_ACCESSDENIED
137 #define FS_DRVALREADYMNT FW_ERR_DRVALREADYMNT
138 #define FS_TOOLONGNAME FW_ERR_TOOLONGNAME
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif /* _FWERR_H_ */