canonball 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,207 @@
1
+ /******************************************************************************
2
+ * *
3
+ * PROJECT : EOS Digital Software Development Kit EDSDK *
4
+ * NAME : EDSDKErros.h *
5
+ * *
6
+ * Description: ERROR DEFINITION FOR EDSDK *
7
+ * *
8
+ *******************************************************************************
9
+ * *
10
+ * Written and developed by Canon Inc. *
11
+ * Copyright Canon Inc. 2006-2013 All Rights Reserved *
12
+ * *
13
+ ******************************************************************************/
14
+
15
+ #ifndef _EDS_ERRORS_H_
16
+ #define _EDS_ERRORS_H_
17
+
18
+
19
+ /*----------------------------------------------------------------------------*/
20
+
21
+
22
+ /******************************************************************************
23
+ Definition of error Codes
24
+ ******************************************************************************/
25
+ /*-----------------------------------------------------------------------
26
+ ED-SDK Error Code Masks
27
+ ------------------------------------------------------------------------*/
28
+ #define EDS_ISSPECIFIC_MASK 0x80000000L
29
+ #define EDS_COMPONENTID_MASK 0x7F000000L
30
+ #define EDS_RESERVED_MASK 0x00FF0000L
31
+ #define EDS_ERRORID_MASK 0x0000FFFFL
32
+
33
+ /*-----------------------------------------------------------------------
34
+ ED-SDK Base Component IDs
35
+ ------------------------------------------------------------------------*/
36
+ #define EDS_CMP_ID_CLIENT_COMPONENTID 0x01000000L
37
+ #define EDS_CMP_ID_LLSDK_COMPONENTID 0x02000000L
38
+ #define EDS_CMP_ID_HLSDK_COMPONENTID 0x03000000L
39
+
40
+ /*-----------------------------------------------------------------------
41
+ ED-SDK Functin Success Code
42
+ ------------------------------------------------------------------------*/
43
+ #define EDS_ERR_OK 0x00000000L
44
+
45
+ /*-----------------------------------------------------------------------
46
+ ED-SDK Generic Error IDs
47
+ ------------------------------------------------------------------------*/
48
+ /* Miscellaneous errors */
49
+ #define EDS_ERR_UNIMPLEMENTED 0x00000001L
50
+ #define EDS_ERR_INTERNAL_ERROR 0x00000002L
51
+ #define EDS_ERR_MEM_ALLOC_FAILED 0x00000003L
52
+ #define EDS_ERR_MEM_FREE_FAILED 0x00000004L
53
+ #define EDS_ERR_OPERATION_CANCELLED 0x00000005L
54
+ #define EDS_ERR_INCOMPATIBLE_VERSION 0x00000006L
55
+ #define EDS_ERR_NOT_SUPPORTED 0x00000007L
56
+ #define EDS_ERR_UNEXPECTED_EXCEPTION 0x00000008L
57
+ #define EDS_ERR_PROTECTION_VIOLATION 0x00000009L
58
+ #define EDS_ERR_MISSING_SUBCOMPONENT 0x0000000AL
59
+ #define EDS_ERR_SELECTION_UNAVAILABLE 0x0000000BL
60
+
61
+ /* File errors */
62
+ #define EDS_ERR_FILE_IO_ERROR 0x00000020L
63
+ #define EDS_ERR_FILE_TOO_MANY_OPEN 0x00000021L
64
+ #define EDS_ERR_FILE_NOT_FOUND 0x00000022L
65
+ #define EDS_ERR_FILE_OPEN_ERROR 0x00000023L
66
+ #define EDS_ERR_FILE_CLOSE_ERROR 0x00000024L
67
+ #define EDS_ERR_FILE_SEEK_ERROR 0x00000025L
68
+ #define EDS_ERR_FILE_TELL_ERROR 0x00000026L
69
+ #define EDS_ERR_FILE_READ_ERROR 0x00000027L
70
+ #define EDS_ERR_FILE_WRITE_ERROR 0x00000028L
71
+ #define EDS_ERR_FILE_PERMISSION_ERROR 0x00000029L
72
+ #define EDS_ERR_FILE_DISK_FULL_ERROR 0x0000002AL
73
+ #define EDS_ERR_FILE_ALREADY_EXISTS 0x0000002BL
74
+ #define EDS_ERR_FILE_FORMAT_UNRECOGNIZED 0x0000002CL
75
+ #define EDS_ERR_FILE_DATA_CORRUPT 0x0000002DL
76
+ #define EDS_ERR_FILE_NAMING_NA 0x0000002EL
77
+
78
+ /* Directory errors */
79
+ #define EDS_ERR_DIR_NOT_FOUND 0x00000040L
80
+ #define EDS_ERR_DIR_IO_ERROR 0x00000041L
81
+ #define EDS_ERR_DIR_ENTRY_NOT_FOUND 0x00000042L
82
+ #define EDS_ERR_DIR_ENTRY_EXISTS 0x00000043L
83
+ #define EDS_ERR_DIR_NOT_EMPTY 0x00000044L
84
+
85
+ /* Property errors */
86
+ #define EDS_ERR_PROPERTIES_UNAVAILABLE 0x00000050L
87
+ #define EDS_ERR_PROPERTIES_MISMATCH 0x00000051L
88
+ #define EDS_ERR_PROPERTIES_NOT_LOADED 0x00000053L
89
+
90
+ /* Function Parameter errors */
91
+ #define EDS_ERR_INVALID_PARAMETER 0x00000060L
92
+ #define EDS_ERR_INVALID_HANDLE 0x00000061L
93
+ #define EDS_ERR_INVALID_POINTER 0x00000062L
94
+ #define EDS_ERR_INVALID_INDEX 0x00000063L
95
+ #define EDS_ERR_INVALID_LENGTH 0x00000064L
96
+ #define EDS_ERR_INVALID_FN_POINTER 0x00000065L
97
+ #define EDS_ERR_INVALID_SORT_FN 0x00000066L
98
+
99
+ /* Device errors */
100
+ #define EDS_ERR_DEVICE_NOT_FOUND 0x00000080L
101
+ #define EDS_ERR_DEVICE_BUSY 0x00000081L
102
+ #define EDS_ERR_DEVICE_INVALID 0x00000082L
103
+ #define EDS_ERR_DEVICE_EMERGENCY 0x00000083L
104
+ #define EDS_ERR_DEVICE_MEMORY_FULL 0x00000084L
105
+ #define EDS_ERR_DEVICE_INTERNAL_ERROR 0x00000085L
106
+ #define EDS_ERR_DEVICE_INVALID_PARAMETER 0x00000086L
107
+ #define EDS_ERR_DEVICE_NO_DISK 0x00000087L
108
+ #define EDS_ERR_DEVICE_DISK_ERROR 0x00000088L
109
+ #define EDS_ERR_DEVICE_CF_GATE_CHANGED 0x00000089L
110
+ #define EDS_ERR_DEVICE_DIAL_CHANGED 0x0000008AL
111
+ #define EDS_ERR_DEVICE_NOT_INSTALLED 0x0000008BL
112
+ #define EDS_ERR_DEVICE_STAY_AWAKE 0x0000008CL
113
+ #define EDS_ERR_DEVICE_NOT_RELEASED 0x0000008DL
114
+
115
+ /* Stream errors */
116
+ #define EDS_ERR_STREAM_IO_ERROR 0x000000A0L
117
+ #define EDS_ERR_STREAM_NOT_OPEN 0x000000A1L
118
+ #define EDS_ERR_STREAM_ALREADY_OPEN 0x000000A2L
119
+ #define EDS_ERR_STREAM_OPEN_ERROR 0x000000A3L
120
+ #define EDS_ERR_STREAM_CLOSE_ERROR 0x000000A4L
121
+ #define EDS_ERR_STREAM_SEEK_ERROR 0x000000A5L
122
+ #define EDS_ERR_STREAM_TELL_ERROR 0x000000A6L
123
+ #define EDS_ERR_STREAM_READ_ERROR 0x000000A7L
124
+ #define EDS_ERR_STREAM_WRITE_ERROR 0x000000A8L
125
+ #define EDS_ERR_STREAM_PERMISSION_ERROR 0x000000A9L
126
+ #define EDS_ERR_STREAM_COULDNT_BEGIN_THREAD 0x000000AAL
127
+ #define EDS_ERR_STREAM_BAD_OPTIONS 0x000000ABL
128
+ #define EDS_ERR_STREAM_END_OF_STREAM 0x000000ACL
129
+
130
+ /* Communications errors */
131
+ #define EDS_ERR_COMM_PORT_IS_IN_USE 0x000000C0L
132
+ #define EDS_ERR_COMM_DISCONNECTED 0x000000C1L
133
+ #define EDS_ERR_COMM_DEVICE_INCOMPATIBLE 0x000000C2L
134
+ #define EDS_ERR_COMM_BUFFER_FULL 0x000000C3L
135
+ #define EDS_ERR_COMM_USB_BUS_ERR 0x000000C4L
136
+
137
+ /* Lock/Unlock */
138
+ #define EDS_ERR_USB_DEVICE_LOCK_ERROR 0x000000D0L
139
+ #define EDS_ERR_USB_DEVICE_UNLOCK_ERROR 0x000000D1L
140
+
141
+ /* STI/WIA */
142
+ #define EDS_ERR_STI_UNKNOWN_ERROR 0x000000E0L
143
+ #define EDS_ERR_STI_INTERNAL_ERROR 0x000000E1L
144
+ #define EDS_ERR_STI_DEVICE_CREATE_ERROR 0x000000E2L
145
+ #define EDS_ERR_STI_DEVICE_RELEASE_ERROR 0x000000E3L
146
+ #define EDS_ERR_DEVICE_NOT_LAUNCHED 0x000000E4L
147
+
148
+ #define EDS_ERR_ENUM_NA 0x000000F0L
149
+ #define EDS_ERR_INVALID_FN_CALL 0x000000F1L
150
+ #define EDS_ERR_HANDLE_NOT_FOUND 0x000000F2L
151
+ #define EDS_ERR_INVALID_ID 0x000000F3L
152
+ #define EDS_ERR_WAIT_TIMEOUT_ERROR 0x000000F4L
153
+
154
+ /* PTP */
155
+ #define EDS_ERR_SESSION_NOT_OPEN 0x00002003
156
+ #define EDS_ERR_INVALID_TRANSACTIONID 0x00002004
157
+ #define EDS_ERR_INCOMPLETE_TRANSFER 0x00002007
158
+ #define EDS_ERR_INVALID_STRAGEID 0x00002008
159
+ #define EDS_ERR_DEVICEPROP_NOT_SUPPORTED 0x0000200A
160
+ #define EDS_ERR_INVALID_OBJECTFORMATCODE 0x0000200B
161
+ #define EDS_ERR_SELF_TEST_FAILED 0x00002011
162
+ #define EDS_ERR_PARTIAL_DELETION 0x00002012
163
+ #define EDS_ERR_SPECIFICATION_BY_FORMAT_UNSUPPORTED 0x00002014
164
+ #define EDS_ERR_NO_VALID_OBJECTINFO 0x00002015
165
+ #define EDS_ERR_INVALID_CODE_FORMAT 0x00002016
166
+ #define EDS_ERR_UNKNOWN_VENDOR_CODE 0x00002017
167
+ #define EDS_ERR_CAPTURE_ALREADY_TERMINATED 0x00002018
168
+ #define EDS_ERR_INVALID_PARENTOBJECT 0x0000201A
169
+ #define EDS_ERR_INVALID_DEVICEPROP_FORMAT 0x0000201B
170
+ #define EDS_ERR_INVALID_DEVICEPROP_VALUE 0x0000201C
171
+ #define EDS_ERR_SESSION_ALREADY_OPEN 0x0000201E
172
+ #define EDS_ERR_TRANSACTION_CANCELLED 0x0000201F
173
+ #define EDS_ERR_SPECIFICATION_OF_DESTINATION_UNSUPPORTED 0x00002020
174
+ #define EDS_ERR_NOT_CAMERA_SUPPORT_SDK_VERSION 0x00002021
175
+
176
+ /* PTP Vendor */
177
+ #define EDS_ERR_UNKNOWN_COMMAND 0x0000A001
178
+ #define EDS_ERR_OPERATION_REFUSED 0x0000A005
179
+ #define EDS_ERR_LENS_COVER_CLOSE 0x0000A006
180
+ #define EDS_ERR_LOW_BATTERY 0x0000A101
181
+ #define EDS_ERR_OBJECT_NOTREADY 0x0000A102
182
+ #define EDS_ERR_CANNOT_MAKE_OBJECT 0x0000A104
183
+ #define EDS_ERR_MEMORYSTATUS_NOTREADY 0x0000A106
184
+
185
+ /* Take Picture errors */
186
+ #define EDS_ERR_TAKE_PICTURE_AF_NG 0x00008D01L
187
+ #define EDS_ERR_TAKE_PICTURE_RESERVED 0x00008D02L
188
+ #define EDS_ERR_TAKE_PICTURE_MIRROR_UP_NG 0x00008D03L
189
+ #define EDS_ERR_TAKE_PICTURE_SENSOR_CLEANING_NG 0x00008D04L
190
+ #define EDS_ERR_TAKE_PICTURE_SILENCE_NG 0x00008D05L
191
+ #define EDS_ERR_TAKE_PICTURE_NO_CARD_NG 0x00008D06L
192
+ #define EDS_ERR_TAKE_PICTURE_CARD_NG 0x00008D07L
193
+ #define EDS_ERR_TAKE_PICTURE_CARD_PROTECT_NG 0x00008D08L
194
+ #define EDS_ERR_TAKE_PICTURE_MOVIE_CROP_NG 0x00008D09L
195
+ #define EDS_ERR_TAKE_PICTURE_STROBO_CHARGE_NG 0x00008D0AL
196
+ #define EDS_ERR_TAKE_PICTURE_NO_LENS_NG 0x00008D0BL
197
+ #define EDS_ERR_TAKE_PICTURE_SPECIAL_MOVIE_MODE_NG 0x00008D0CL
198
+ #define EDS_ERR_TAKE_PICTURE_LV_REL_PROHIBIT_MODE_NG 0x00008D0DL
199
+
200
+
201
+ #define EDS_ERR_LAST_GENERIC_ERROR_PLUS_ONE 0x000000F5L
202
+
203
+
204
+ /*----------------------------------------------------------------------------*/
205
+
206
+
207
+ #endif /* _EDS_ERRORS_H_ */