summaryrefslogtreecommitdiffstats
path: root/ipecamera/private.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-10-09 17:53:27 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-10-09 17:53:27 +0200
commit252524d32fea5fa63e49f500a1641a619946c036 (patch)
tree35bb37206fcd334d98b2937071d508de7008a467 /ipecamera/private.h
parent63ef59492469c08e8d3c7d8a186e4a765eae87b0 (diff)
downloadipecamera-252524d32fea5fa63e49f500a1641a619946c036.tar.gz
ipecamera-252524d32fea5fa63e49f500a1641a619946c036.tar.bz2
ipecamera-252524d32fea5fa63e49f500a1641a619946c036.tar.xz
ipecamera-252524d32fea5fa63e49f500a1641a619946c036.zip
Support both UFO4 and UFO5 frame formats
Diffstat (limited to 'ipecamera/private.h')
-rw-r--r--ipecamera/private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipecamera/private.h b/ipecamera/private.h
index a200b75..f5300a2 100644
--- a/ipecamera/private.h
+++ b/ipecamera/private.h
@@ -18,7 +18,9 @@
#define IPECAMERA_NOFRAME_PREPROC_SLEEP 100
#define IPECAMERA_MAX_LINES 1088
+#define IPECAMERA_EXPECTED_STATUS_4 0x08409FFFF
#define IPECAMERA_EXPECTED_STATUS 0x08449FFFF
+
#define IPECAMERA_END_OF_SEQUENCE 0x1F001001
#define IPECAMERA_MAX_CHANNELS 16
@@ -84,6 +86,7 @@ struct ipecamera_s {
pcilib_register_t exposure_reg;
pcilib_register_t flip_reg;
+ pcilib_register_t firmware_version_reg;
pcilib_register_t adc_resolution_reg;
pcilib_register_t output_mode_reg;
@@ -116,6 +119,7 @@ struct ipecamera_s {
size_t image_size; /**< Size of a single image in bytes */
size_t max_frames; /**< Maximal number of frames what may be buffered in camera DDR memory */
+ int firmware; /**< Firmware version */
int cmosis_outputs; /**< Number of active cmosis outputs: 4 or 16 */
int width, height;