Library for supporting the Nucleo Sensor Shield.

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 Daniel Griffin

Embed: (wiki syntax)

« Back to documentation index

HTS221 Class Reference

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

HTS221 ( DevI2C i2c )

Constructor.

Parameters:

Definition at line 54 of file hts221.h.


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:
DeviceID address
Return values:
IDname

Definition at line 178 of file hts221.cpp.