From d306da6a22d6f3dab9a3c3384896f6b29948e492 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 11 Mar 2011 17:01:28 +0100 Subject: Add some more properties for IPE camera --- src/cameras/ipe.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/cameras/ipe.c') 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); -- cgit v1.2.3