summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca.c')
-rw-r--r--src/uca.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/uca.c b/src/uca.c
index ec8ad07..191092c 100644
--- a/src/uca.c
+++ b/src/uca.c
@@ -86,6 +86,7 @@ static struct uca_property property_map[UCA_PROP_LAST+1] = {
{ "Gain.ADC.Step", uca_na, uca_uint32t, uca_read },
{ "Grabber.Timeout", uca_s, uca_uint32t, uca_readwrite },
{ "Grabber.Synchronous", uca_bool, uca_uint32t, uca_readwrite },
+ { "Grabber.Auto", uca_bool, uca_uint32t, uca_readwrite },
{ "Mode.Timestamp", uca_na, uca_uint32t, uca_readwrite },
{ "Mode.Scan", uca_na, uca_uint32t, uca_readwrite },
{ "Mode.Hotpixel", uca_na, uca_uint32t, uca_readwrite },
@@ -331,3 +332,13 @@ uint32_t uca_cam_grab(struct uca_camera *cam, char *buffer, void *meta_data)
return priv->grab(priv, buffer, meta_data);
}
+uint32_t uca_cam_readout(struct uca_camera *cam)
+{
+ struct uca_camera_priv *priv = cam->priv;
+ if (priv->state == UCA_CAM_RECORDING)
+ return UCA_ERR_CAMERA | UCA_ERR_IS_RECORDING;
+ if (priv->readout == NULL)
+ return UCA_ERR_CAMERA | UCA_ERR_NOT_IMPLEMENTED;
+ return priv->readout(priv);
+}
+