Official interfaces for ST components.

Dependents:   X_NUCLEO_IKS01A1 mDot_X_NUCLEO_IKS01A1 53L0A1 X_NUCLEO_IKS01A1 ... more

Fork of ST_INTERFACES by Davide Aliprandi

This library contains all abstract classes which together constitute the common API to which all existing and future ST components will adhere to.

Files at this revision

API Documentation at this revision

Comitter:
mapellil
Date:
Tue Nov 29 17:43:48 2016 +0000
Parent:
1:a7810e7acf8d
Child:
3:b1bb477e115e
Commit message:
Changed Light and Range API names

Changed in this revision

Sensors/LightSensor.h Show annotated file Show diff for this revision Revisions of this file
Sensors/RangeSensor.h Show annotated file Show diff for this revision Revisions of this file
--- a/Sensors/LightSensor.h	Tue Sep 27 11:28:52 2016 +0000
+++ b/Sensors/LightSensor.h	Tue Nov 29 17:43:48 2016 +0000
@@ -54,7 +54,7 @@
      * @param[out]  piData Pointer to where to store light to
      * @return      0 in case of success, an error code otherwise
      */
-    virtual int GetLight(uint32_t *piData) = 0;
+    virtual int GetLux(uint32_t *piData) = 0;
 };
 
 #endif /* __LIGHT_SENSOR_CLASS_H */
--- a/Sensors/RangeSensor.h	Tue Sep 27 11:28:52 2016 +0000
+++ b/Sensors/RangeSensor.h	Tue Nov 29 17:43:48 2016 +0000
@@ -54,7 +54,7 @@
      * @param[out]  piData Pointer to where to store range to
      * @return      0 in case of success, an error code otherwise
      */
-    virtual int GetRange(int32_t *piData) = 0;
+    virtual int GetDistance(uint32_t *piData) = 0;
 };
 
 #endif /* __RANGE_SENSOR_CLASS_H */