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.
Dependents: Nucleo_Sensors_Demo m2x-temp_ethernet_demo m2x-MEMS_ACKme_Wifi_demo m2x_MEMS_Ublox_Cellular_demo ... more
Fork of Nucleo_Sensor_Shield by
HTS221 Class Reference
Class representing a HTS221 sensor component. More...
#include <hts221.h>
| Public Member Functions | |
| HTS221 (DevI2C &i2c) | |
| Constructor. | |
| int | GetTemperature (float *pfData) | 
| Read HTS221 output register, and calculate the temperature. | |
| int | GetHumidity (float *pfData) | 
| Read HTS221 output register, and calculate the humidity. | |
| void | Init () | 
| Set HTS221 Initialization. | |
| uint8_t | ReadID (void) | 
| Read ID address of HTS221. | |
Detailed Description
Class representing a HTS221 sensor component.
Definition at line 48 of file hts221.h.
Constructor & Destructor Documentation
Member Function Documentation
| int GetHumidity | ( | float * | pfData ) | 
Read HTS221 output register, and calculate the humidity.
- Parameters:
- 
  pfData : Data out pointer 
- Return values:
- 
  None 
Definition at line 117 of file hts221.cpp.
| int GetTemperature | ( | float * | pfData ) | 
Read HTS221 output register, and calculate the temperature.
- Parameters:
- 
  pfData : Data out pointer 
- Return values:
- 
  None 
Definition at line 64 of file hts221.cpp.
| void Init | ( | ) | 
Set HTS221 Initialization.
- Parameters:
- 
  InitStruct,: it contains the configuration setting for the HTS221. 
- Return values:
- 
  None 
Definition at line 196 of file hts221.cpp.
| uint8_t ReadID | ( | void | ) | 
Read ID address of HTS221.
- Parameters:
- 
  Device ID address 
- Return values:
- 
  ID name 
Definition at line 178 of file hts221.cpp.
Generated on Tue Jul 12 2022 14:47:53 by
 1.7.2
 1.7.2 
    