aboutsummaryrefslogtreecommitdiffstats
path: root/o3000.h
diff options
context:
space:
mode:
authorPatrick Roth <roth@stettbacher.ch>2021-07-09 07:23:25 +0200
committerPatrick Roth <roth@stettbacher.ch>2021-07-09 07:23:25 +0200
commited2c49b25964da760117c04fe94d02d92ad03cd6 (patch)
tree0be99a4bf80cf4efb5004766308eb7f5eb15e179 /o3000.h
parentRefine comments regarding the relation of o3000_connect(), o3000_disconnect()... (diff)
parentupdate --> upgrade , more checks added (diff)
downloado3000-driver-ed2c49b25964da760117c04fe94d02d92ad03cd6.tar.gz
o3000-driver-ed2c49b25964da760117c04fe94d02d92ad03cd6.zip
Merge branch 'firmware_upgrade' into 'master'HEADmaster
Firmware upgrade See merge request o-3000/driver!1
Diffstat (limited to '')
-rw-r--r--o3000.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/o3000.h b/o3000.h
index 51c8c3b..17aa6a5 100644
--- a/o3000.h
+++ b/o3000.h
@@ -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"