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.
Dependencies: X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1-f2df by
TempSensor Class Reference
An abstract class for Temperature sensors. More...
#include <TempSensor.h>
Inherits GenericSensor.
Inherited by HTS221, and LPS25H.
Public Member Functions | |
virtual int | GetTemperature (float *pfData)=0 |
Get current temperature in degrees Celsius [°C]. | |
virtual int | GetFahrenheit (float *pfData) |
Get current temperature in degrees Fahrenheit [°F]. | |
virtual int | Init (void *ptr)=0 |
Initialization of sensor. | |
virtual int | ReadID (uint8_t *id)=0 |
Get ID of sensor. |
Detailed Description
An abstract class for Temperature sensors.
Definition at line 49 of file TempSensor.h.
Member Function Documentation
virtual int GetFahrenheit | ( | float * | pfData ) | [virtual] |
Get current temperature in degrees Fahrenheit [°F].
- Parameters:
-
[out] pfData Pointer to where to store temperature to
- Returns:
- 0 in case of success, an error code otherwise
Definition at line 64 of file TempSensor.h.
virtual int GetTemperature | ( | float * | pfData ) | [pure virtual] |
virtual int Init | ( | void * | ptr ) | [pure virtual, inherited] |
Generated on Tue Jul 12 2022 18:59:34 by
