diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-10-19 11:37:06 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-10-19 11:37:06 +0200 |
commit | f4447a4d02d21c4820d8e469b27f308326f77922 (patch) | |
tree | e90c69b7e72795c86dac7b2fd8304c4587111464 /src/cameras | |
parent | d18b6e21b82b4d64e1c0bf1b7526271ded38318e (diff) | |
parent | cb66db4b221e516153763735f1994206aa20abe4 (diff) | |
download | libuca-f4447a4d02d21c4820d8e469b27f308326f77922.tar.gz libuca-f4447a4d02d21c4820d8e469b27f308326f77922.tar.bz2 libuca-f4447a4d02d21c4820d8e469b27f308326f77922.tar.xz libuca-f4447a4d02d21c4820d8e469b27f308326f77922.zip |
Merge pending changes
Diffstat (limited to 'src/cameras')
-rw-r--r-- | src/cameras/ipe.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c index c398350..78d2c98 100644 --- a/src/cameras/ipe.c +++ b/src/cameras/ipe.c @@ -16,6 +16,17 @@ static void uca_ipe_handle_error(const char *format, ...) static uint32_t uca_ipe_set_property(struct uca_camera_priv *cam, enum uca_property_ids property, void *data) { + pcilib_t *handle = GET_HANDLE(cam); + pcilib_register_value_t value = *((pcilib_register_value_t *) data); + + switch (property) { + case UCA_PROP_EXPOSURE: + pcilib_write_register(handle, NULL, "exp_time", value); + break; + + default: + return UCA_ERR_CAMERA | UCA_ERR_PROP | UCA_ERR_INVALID; + } return UCA_NO_ERROR; } |