Code petit robot
Dependencies: X_NUCLEO_COMMON X_NUCLEO_IHM01A1 mbed
GenericSensor Class Reference
An abstract class for Generic sensors. More...
#include <GenericSensor.h>
Inherited by LightSensor, and RangeSensor.
Public Member Functions | |
virtual int | Init ()=0 |
Initialization of sensor. | |
virtual int | ReadID ()=0 |
Get ID of sensor. |
Detailed Description
An abstract class for Generic sensors.
Definition at line 49 of file GenericSensor.h.
Member Function Documentation
virtual int Init | ( | ) | [pure virtual] |
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] |
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 Thu Jul 14 2022 09:04:19 by 1.7.2