diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-04-18 10:59:11 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-04-18 10:59:11 +0200 |
commit | fcffc9f40c32c863b85cbee3e7d6f51b5b6cdc41 (patch) | |
tree | c3cde2be2da7b19acae6a8cc48edddcd696af510 /src/uca-cam.h | |
parent | ecb5c3617140852dbd57cc3a77a5fe3dfaf2ed6f (diff) | |
download | libuca-fcffc9f40c32c863b85cbee3e7d6f51b5b6cdc41.tar.gz libuca-fcffc9f40c32c863b85cbee3e7d6f51b5b6cdc41.tar.bz2 libuca-fcffc9f40c32c863b85cbee3e7d6f51b5b6cdc41.tar.xz libuca-fcffc9f40c32c863b85cbee3e7d6f51b5b6cdc41.zip |
Implement correct trigger modes
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r-- | src/uca-cam.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -140,6 +140,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. * * Register such a callback function with uca_cam_register_callback() to @@ -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. */ @@ -224,6 +233,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 */ |