summaryrefslogtreecommitdiffstats
path: root/src/uca.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-20 17:25:53 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-20 17:25:53 +0200
commit7e1ec3056d1fdb6786c452ba6ed7e978355a98c2 (patch)
tree3e423903d8ad51c115db17f699e071a162447c24 /src/uca.h
parentf3fdc154a50516dc969942594e884cd0be0b29d0 (diff)
downloaduca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.tar.gz
uca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.tar.bz2
uca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.tar.xz
uca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.zip
Add: auto transfer property and readout function
Diffstat (limited to 'src/uca.h')
-rw-r--r--src/uca.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/uca.h b/src/uca.h
index e1e0ae1..03d0f4f 100644
--- a/src/uca.h
+++ b/src/uca.h
@@ -108,6 +108,7 @@ enum uca_property_ids {
/* grabber specific */
UCA_PROP_GRAB_TIMEOUT,
UCA_PROP_GRAB_SYNCHRONOUS,
+ UCA_PROP_GRAB_AUTO,
/* pco.edge specific */
UCA_PROP_TIMESTAMP_MODE,
@@ -295,6 +296,7 @@ extern const char *uca_unit_map[]; /**< maps unit numbers to corresponding
#define UCA_ERR_NOT_RECORDING 0x10000008
#define UCA_ERR_FRAME_TRANSFER 0x10000009
#define UCA_ERR_ALREADY_REGISTERED 0x1000000A
+#define UCA_ERR_NOT_IMPLEMENTED 0x1000000B
struct uca_camera_priv;
/**
@@ -462,6 +464,19 @@ uint32_t uca_cam_register_callback(struct uca_camera *cam, uca_cam_grab_callback
*/
uint32_t uca_cam_grab(struct uca_camera *cam, char *buffer, void *meta_data);
+/**
+ * \brief Initiate read out for recording based cameras like pco.dimax or
+ * Photron SAx
+ *
+ * This function merely starts read out and requires that recording has stopped
+ * with uca_cam_stop_recording. To retrieve the image data, you have still have
+ * to use uca_cam_grab.
+ *
+ * \param[in] cam A uca_camera object
+ * \return Error code
+ */
+uint32_t uca_cam_readout(struct uca_camera *cam);
+
#define uca_set_void(p, type, value) { *((type *) p) = (type) value; }
#ifdef __cplusplus