From fcffc9f40c32c863b85cbee3e7d6f51b5b6cdc41 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 18 Apr 2011 10:59:11 +0200 Subject: Implement correct trigger modes --- src/uca-cam.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/uca-cam.h') diff --git a/src/uca-cam.h b/src/uca-cam.h index f12bb12..e582066 100644 --- a/src/uca-cam.h +++ b/src/uca-cam.h @@ -139,6 +139,14 @@ typedef uint32_t (*uca_cam_start_recording) (struct uca_camera *cam); */ typedef uint32_t (*uca_cam_stop_recording) (struct uca_camera *cam); +/** + * Send a software trigger signal to start a sensor read-out. + * + * This method is only useful when UCA_PROP_TRIGGER_MODE is set to + * UCA_TRIGGER_SOFTWARE. + */ +typedef uint32_t (*uca_cam_trigger) (struct uca_camera *cam); + /** * Function pointer to a grab callback. * @@ -187,6 +195,7 @@ typedef uint32_t (*uca_cam_register_callback) (struct uca_camera *cam, uca_cam_g typedef uint32_t (*uca_cam_grab) (struct uca_camera *cam, char *buffer, void *meta_data); + /** * Represents a camera abstraction, that concrete cameras must implement. */ @@ -223,6 +232,12 @@ typedef struct uca_camera { */ uca_cam_stop_recording stop_recording; + /** + * Method to issue a software trigger signal. + * \see uca_cam_trigger + */ + uca_cam_trigger trigger; + /** * Method to grab a frame. * \see uca_cam_grab -- cgit v1.2.3