summaryrefslogtreecommitdiffstats
path: root/src/cameras/ipe.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-11 17:01:28 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-11 17:01:28 +0100
commitd306da6a22d6f3dab9a3c3384896f6b29948e492 (patch)
tree8c60aff26903d12fbd1cda549b69112f5b2c03c3 /src/cameras/ipe.c
parentfcd098454e67f027f9a305da41952f11717df2d4 (diff)
downloaduca-d306da6a22d6f3dab9a3c3384896f6b29948e492.tar.gz
uca-d306da6a22d6f3dab9a3c3384896f6b29948e492.tar.bz2
uca-d306da6a22d6f3dab9a3c3384896f6b29948e492.tar.xz
uca-d306da6a22d6f3dab9a3c3384896f6b29948e492.zip
Add some more properties for IPE camera
Diffstat (limited to 'src/cameras/ipe.c')
-rw-r--r--src/cameras/ipe.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c
index 89f4e9a..a2308ad 100644
--- a/src/cameras/ipe.c
+++ b/src/cameras/ipe.c
@@ -26,9 +26,21 @@ static uint32_t uca_ipe_get_property(struct uca_camera_t *cam, enum uca_property
switch (property) {
case UCA_PROP_NAME:
- strcpy((char *) data, "IPE PCIe");
+ strcpy((char *) data, "IPE PCIe based on CMOSIS CMV2000");
break;
+ case UCA_PROP_WIDTH:
+ set_void(data, uint32_t, 2048);
+ break;
+
+ case UCA_PROP_HEIGHT:
+ set_void(data, uint32_t, 1088);
+ break;
+
+ case UCA_PROP_EXPOSURE:
+ pcilib_read_register(handle, NULL, "exp_time", &value);
+ set_void(data, uint32_t, (uint32_t) value);
+
case UCA_PROP_TEMPERATURE_SENSOR:
pcilib_read_register(handle, NULL, "cmosis_temperature", &value);
set_void(data, uint32_t, (uint32_t) value);