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.
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.h
- Revision:
- 28:7c9031e96c22
- Parent:
- 27:22c6f69967d9
- Child:
- 30:75bf50276881
--- a/Components/VL6180X/vl6180x_class.h Wed Nov 04 17:17:35 2015 +0100 +++ b/Components/VL6180X/vl6180x_class.h Thu Nov 05 17:20:03 2015 +0100 @@ -123,7 +123,7 @@ /** Destructor */ //virtual ~VL6180X(){} - /* FIXME warning: VL6180X class inherits from GenericSensor, RangeSensor and LightSensor, that haven`t a destructor. + /* warning: VL6180X class inherits from GenericSensor, RangeSensor and LightSensor, that haven`t a destructor. The warning should request to introduce a virtual destructor to make sure to delete the object */ /* turns on the sensor */ @@ -277,13 +277,10 @@ return VL6180x_AlsSetAnalogueGain(Device, gain); } - int AlsSetThresholds(lux_t low, lux_t high) - { - return VL6180x_AlsSetThresholds(Device, low, high); - } + int AlsSetThresholds(uint16_t lux_threshold_low, uint16_t lux_threshold_high); int AlsGetInterruptStatus(uint8_t *pIntStatus) - { + { return VL6180x_AlsGetInterruptStatus(Device, pIntStatus); } @@ -473,7 +470,7 @@ int VL6180x_AlsSetIntegrationPeriod(VL6180xDev_t dev, uint16_t period_ms); int VL6180x_AlsSetInterMeasurementPeriod(VL6180xDev_t dev, uint16_t intermeasurement_period_ms); int VL6180x_AlsSetAnalogueGain(VL6180xDev_t dev, uint8_t gain); - int VL6180x_AlsSetThresholds(VL6180xDev_t dev, lux_t low, lux_t high); + int VL6180x_AlsSetThresholds(VL6180xDev_t dev, uint16_t low, uint16_t high); int VL6180x_AlsGetInterruptStatus(VL6180xDev_t dev, uint8_t *pIntStatus); int VL6180x_StaticInit(VL6180xDev_t dev); int VL6180x_RangeWaitDeviceReady(VL6180xDev_t dev, int MaxLoop );