summaryrefslogtreecommitdiff
path: root/include/accelgyro.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r--include/accelgyro.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h
index 0d00116ed6..a8724a43ee 100644
--- a/include/accelgyro.h
+++ b/include/accelgyro.h
@@ -165,6 +165,18 @@ struct als_calibration_t {
int16_t offset;
};
+/* RGB ALS Calibration Data */
+struct rgb_calibration_t {
+ /*
+ * Each channel has a scaling factor for normalization, representing
+ * a value between 0 and 2 (1 is translated as 1 << 15)
+ */
+ uint16_t scale;
+
+ /* Any offset to add to raw channel data */
+ int16_t offset;
+};
+
#define SENSOR_APPLY_SCALE(_input, _scale) \
(((_input) * (_scale)) / MOTION_SENSE_DEFAULT_SCALE)