New

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_IKS01A1 by ST

Revision:
92:d1c67d482bad
Parent:
88:7b8d3316d753
--- a/Components/hts221/hts221_class.h	Thu Mar 23 13:05:15 2017 +0000
+++ b/Components/hts221/hts221_class.h	Fri Mar 24 10:57:29 2017 +0100
@@ -53,17 +53,17 @@
 	/** Constructor
 	 * @param[in] i2c device I2C to be used for communication
 	 */
-        HTS221(DevI2C &i2c) : HumiditySensor(), TempSensor(), dev_i2c(i2c) {
+    HTS221(DevI2C &i2c) : HumiditySensor(), TempSensor(), dev_i2c(i2c) {
 		T0_degC = T1_degC = H0_rh = H1_rh = 0.0;
 		T0_out = T1_out = H0_T0_out = H1_T0_out = 0;
 	}
 	
 	/** Destructor
 	 */
-        virtual ~HTS221() {}
+    virtual ~HTS221() {}
 	
 	/*** Interface Methods ***/
-	virtual int Init(void *init_struct) {
+	virtual int init(void *init_struct) {
 		return HTS221_Init((HUM_TEMP_InitTypeDef*)init_struct);
 	}
 
@@ -75,7 +75,7 @@
 		return HTS221_Power_OFF();
 	}
 
-	virtual int ReadID(uint8_t *ht_id) {
+	virtual int read_id(uint8_t *ht_id) {
 		return HTS221_ReadID(ht_id);
 	}
 
@@ -87,11 +87,11 @@
 		return HTS221_RebootCmd();
 	}
 
-	virtual int GetHumidity(float *pfData) {
+	virtual int get_humidity(float *pfData) {
 		return HTS221_GetHumidity(pfData);
 	}
 
-	virtual int GetTemperature(float *pfData) {
+	virtual int get_temperature(float *pfData) {
 		return HTS221_GetTemperature(pfData);
 	}