Initial release. Mbed library for VL53L1CB
HumiditySensor Class Reference
An abstract class for Humidity sensors. More...
#include <HumiditySensor.h>
Inherits Component.
Public Member Functions | |
virtual int | get_humidity (float *pf_data)=0 |
Get current humidity [%]. | |
virtual | ~HumiditySensor () |
Destructor. | |
virtual int | init (void *init)=0 |
Initializing the component. | |
virtual int | read_id (uint8_t *id)=0 |
Getting the ID of the component. |
Detailed Description
An abstract class for Humidity sensors.
Definition at line 56 of file HumiditySensor.h.
Constructor & Destructor Documentation
virtual ~HumiditySensor | ( | ) | [virtual] |
Destructor.
Definition at line 69 of file HumiditySensor.h.
Member Function Documentation
virtual int get_humidity | ( | float * | pf_data ) | [pure virtual] |
Get current humidity [%].
- Parameters:
-
[out] pf_data Pointer to where to store humidity to
- Returns:
- 0 in case of success, an error code otherwise
virtual int init | ( | void * | init ) | [pure virtual, inherited] |
Initializing the component.
- Parameters:
-
[in] init pointer to device specific initalization structure.
- Return values:
-
0 in case of success, an error code otherwise.
Implemented in VL53L1X.
virtual int read_id | ( | uint8_t * | id ) | [pure virtual, inherited] |
Getting the ID of the component.
- Parameters:
-
[out] id pointer to an allocated variable to store the ID into.
- Return values:
-
0 in case of success, an error code otherwise.
Implemented in VL53L1X.
Generated on Tue Jul 12 2022 20:07:15 by 1.7.2