summaryrefslogtreecommitdiffstats
path: root/src/cameras/ipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cameras/ipe.c')
-rw-r--r--src/cameras/ipe.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c
index a2308ad..193091a 100644
--- a/src/cameras/ipe.c
+++ b/src/cameras/ipe.c
@@ -46,6 +46,32 @@ static uint32_t uca_ipe_get_property(struct uca_camera_t *cam, enum uca_property
set_void(data, uint32_t, (uint32_t) value);
break;
+ case UCA_PROP_PGA_GAIN:
+ pcilib_read_register(handle, NULL, "pga", &value);
+ set_void(data, uint32_t, (uint32_t) value);
+ break;
+
+ case UCA_PROP_PGA_GAIN_MIN:
+ set_void(data, uint32_t, 0);
+ break;
+
+ case UCA_PROP_PGA_GAIN_MAX:
+ set_void(data, uint32_t, 3);
+ break;
+
+ case UCA_PROP_ADC_GAIN:
+ pcilib_read_register(handle, NULL, "adc_gain", &value);
+ set_void(data, uint32_t, (uint32_t) value);
+ break;
+
+ case UCA_PROP_ADC_GAIN_MIN:
+ set_void(data, uint32_t, 32);
+ break;
+
+ case UCA_PROP_ADC_GAIN_MAX:
+ set_void(data, uint32_t, 55);
+ break;
+
default:
return UCA_ERR_PROP_INVALID;
}