summaryrefslogtreecommitdiffstats
path: root/ipecamera/private.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-07-24 23:15:47 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-07-24 23:15:47 +0200
commit94051a28c0cd484e47b115f4251fa42d0edba7e5 (patch)
tree318dcfac5f232058e3a019018301abbed23eeae7 /ipecamera/private.h
parent587863fb5bc46f225c3b192ca4c2f63e0be8613b (diff)
downloadpcitool-94051a28c0cd484e47b115f4251fa42d0edba7e5.tar.gz
pcitool-94051a28c0cd484e47b115f4251fa42d0edba7e5.tar.bz2
pcitool-94051a28c0cd484e47b115f4251fa42d0edba7e5.tar.xz
pcitool-94051a28c0cd484e47b115f4251fa42d0edba7e5.zip
Support 12-bit modes
Diffstat (limited to 'ipecamera/private.h')
-rw-r--r--ipecamera/private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ipecamera/private.h b/ipecamera/private.h
index a0fb4e4..2851515 100644
--- a/ipecamera/private.h
+++ b/ipecamera/private.h
@@ -31,6 +31,12 @@
#define IPECAMERA_IDLE 0x1E1
#define IPECAMERA_START_INTERNAL_STIMULI 0x1F1
+#define IPECAMERA_MODE_16_CHAN_IO 0
+#define IPECAMERA_MODE_4_CHAN_IO 2
+
+#define IPECAMERA_MODE_12_BIT_ADC 2
+#define IPECAMERA_MODE_11_BIT_ADC 1
+#define IPECAMERA_MODE_10_BIT_ADC 0
typedef uint32_t ipecamera_payload_t;
@@ -78,6 +84,9 @@ struct ipecamera_s {
pcilib_register_t exposure_reg;
pcilib_register_t flip_reg;
+ pcilib_register_t adc_resolution_reg;
+ pcilib_register_t output_mode_reg;
+
int started; /**< Camera is in grabbing mode (start function is called) */
int streaming; /**< Camera is in streaming mode (we are within stream call) */
int parse_data; /**< Indicates if some processing of the data is required, otherwise only rawdata_callback will be called */
@@ -103,6 +112,7 @@ struct ipecamera_s {
size_t image_size; /**< Size of a single image in bytes */
+ int cmosis_outputs;
int width, height;