diff options
author | Patrick Roth <roth@stettbacher.ch> | 2021-07-09 07:23:25 +0200 |
---|---|---|
committer | Patrick Roth <roth@stettbacher.ch> | 2021-07-09 07:23:25 +0200 |
commit | ed2c49b25964da760117c04fe94d02d92ad03cd6 (patch) | |
tree | 0be99a4bf80cf4efb5004766308eb7f5eb15e179 /o3000.h | |
parent | Refine comments regarding the relation of o3000_connect(), o3000_disconnect()... (diff) | |
parent | update --> upgrade , more checks added (diff) | |
download | o3000-driver-ed2c49b25964da760117c04fe94d02d92ad03cd6.tar.gz o3000-driver-ed2c49b25964da760117c04fe94d02d92ad03cd6.zip |
Firmware upgrade
See merge request o-3000/driver!1
Diffstat (limited to '')
-rw-r--r-- | o3000.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -53,6 +53,10 @@ #define O3000_ERROR_USB_TRANSFER_TIMEOUT -10 ///< USB transfer timeout
#define O3000_ERROR_USB_EP_HALTED -11 ///< USB endpoint halted
#define O3000_ERROR_LESS_DATA -12 ///< USB received less data than expected
+#define O3000_ERROR_NOT_VALID_ARGUMENT -13 ///< at least one function argument is not valid
+#define O3000_ERROR_SESSION_STILL_OPEN -14 ///< there is at least one session still open
+#define O3000_ERROR_BOOTLOADER_TIMEOUT -15 ///< camera could not start in bootloader mode in given time
+#define O3000_ERROR_USB_INIT_FAILURE -16 ///< failed to initialize the usb
#define O3000_ERROR_OTHER -1000 ///< other (unspecified) error
@@ -88,6 +92,7 @@ int __stdcall o3000_disconnect(int id); int __stdcall o3000_send_xml(int id, const char *msg, int msg_len);
+int __stdcall o3000_firmware_upgrade(unsigned char *data, int data_len);
#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"
|