Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Check_VL6180XA1_ToF
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.h
- Revision:
- 38:18abb7f7dcb2
- Parent:
- 35:407b0b127eb8
- Child:
- 41:2e00362bdb8e
--- a/Components/VL6180X/vl6180x_class.h Fri Nov 27 08:47:30 2015 +0000
+++ b/Components/VL6180X/vl6180x_class.h Thu Dec 03 09:45:40 2015 +0000
@@ -93,7 +93,7 @@
/* Classes -------------------------------------------------------------------*/
/** Class representing a VL6180X sensor component
*/
-class VL6180X : public RangeSensor, public LightSensor
+class VL6180X : public RangeSensor, public LightSensor
{
public:
/** Constructor 1
@@ -276,7 +276,7 @@
* @param void
* @return 0 on success, @a #CALIBRATION_WARNING if failed
*/
- int Init()
+ virtual int Init()
{
return VL6180x_InitData(Device);
}
@@ -434,7 +434,7 @@
* @param pRange_mm Pointer to range distance
* @return 0 on success
*/
- int GetRange(int32_t *piData)
+ virtual int GetRange(int32_t *piData)
{
return VL6180x_RangeGetResult(Device, piData);
}
@@ -1035,7 +1035,7 @@
* @param *piData The pointer to variable to write in the measure in Lux
* @return 0 On success
*/
- int GetLight(uint32_t *piData)
+ virtual int GetLight(uint32_t *piData)
{
return VL6180x_AlsGetLux(Device, piData);
}
@@ -1132,7 +1132,7 @@
int _DMax_InitData(VL6180xDev_t dev);
/* Read function of the ID device */
- int ReadID();
+ virtual int ReadID();
/* Write and read functions from I2C */
int VL6180x_WrByte(VL6180xDev_t dev, uint16_t index, uint8_t data);
