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
RangeSensor Class Reference
An abstract class for range sensors. More...
#include <RangeSensor.h>
Inherits GenericSensor.
Inherited by VL6180X.
| Public Member Functions | |
| virtual int | GetRange (int32_t *piData)=0 | 
| Get current range [mm]. | |
| virtual int | Init ()=0 | 
| Initialization of sensor. | |
| virtual int | ReadID ()=0 | 
| Get ID of sensor. | |
Detailed Description
An abstract class for range sensors.
Definition at line 49 of file RangeSensor.h.
Member Function Documentation
| virtual int GetRange | ( | int32_t * | piData ) |  [pure virtual] | 
Get current range [mm].
- Parameters:
- 
  [out] piData Pointer to where to store range to 
- Returns:
- 0 in case of success, an error code otherwise
Implemented in VL6180X.
| virtual int Init | ( | ) |  [pure virtual, inherited] | 
Initialization of sensor.
- Parameters:
- 
  [out] ptr Pointer to device specific initalization structure 
- Returns:
- 0 in case of success, an error code otherwise
Implemented in VL6180X.
| virtual int ReadID | ( | ) |  [pure virtual, inherited] | 
Get ID of sensor.
- Parameters:
- 
  [out] id Pointer to where to store the ID to 
- Returns:
- 0 in case of success, an error code otherwise
Generated on Wed Jul 13 2022 03:00:34 by
 1.7.2
 1.7.2 
    