Version of the IKS01A1 library for this coursework

Dependencies:   X_NUCLEO_COMMON

Fork of X_NUCLEO_IKS01A1 by ST

Revision:
24:92cc9c6e4b2b
Parent:
4:566f2c41dc1d
--- a/Components/hts221/hts221.h	Fri May 29 16:50:56 2015 +0200
+++ b/Components/hts221/hts221.h	Wed Jun 03 14:57:57 2015 +0200
@@ -1,52 +1,52 @@
 /**
-  ******************************************************************************
-  * @file    hts221.h
-  * @author  MEMS Application Team
-  * @version V1.2.0
-  * @date    28-January-2015
-  * @brief   This file contains definitions for the hts221.c 
-  *          firmware driver.
-  ******************************************************************************
-  * @attention
-  *
-  * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
-  *
-  * Redistribution and use in source and binary forms, with or without modification,
-  * are permitted provided that the following conditions are met:
-  *   1. Redistributions of source code must retain the above copyright notice,
-  *      this list of conditions and the following disclaimer.
-  *   2. Redistributions in binary form must reproduce the above copyright notice,
-  *      this list of conditions and the following disclaimer in the documentation
-  *      and/or other materials provided with the distribution.
-  *   3. Neither the name of STMicroelectronics nor the names of its contributors
-  *      may be used to endorse or promote products derived from this software
-  *      without specific prior written permission.
-  *
-  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-  *
-  ******************************************************************************
-  */
-  
+ ******************************************************************************
+ * @file    hts221.h
+ * @author  MEMS Application Team
+ * @version V1.2.0
+ * @date    11-February-2015
+ * @brief   This file contains definitions for the hts221.c
+ *          firmware driver.
+ ******************************************************************************
+ * @attention
+ *
+ * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *   1. Redistributions of source code must retain the above copyright notice,
+ *      this list of conditions and the following disclaimer.
+ *   2. Redistributions in binary form must reproduce the above copyright notice,
+ *      this list of conditions and the following disclaimer in the documentation
+ *      and/or other materials provided with the distribution.
+ *   3. Neither the name of STMicroelectronics nor the names of its contributors
+ *      may be used to endorse or promote products derived from this software
+ *      without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ ******************************************************************************
+ */
+
 
 /* Define to prevent recursive inclusion -------------------------------------*/
 #ifndef __HTS221_H
 #define __HTS221_H
 
 #ifdef __cplusplus
- extern "C" {
+extern "C" {
 #endif
 
 /* Includes ------------------------------------------------------------------*/
-#include "../Common/hum_temp.h"
+#include "hum_temp.h"
 
 /** @addtogroup BSP
   * @{
@@ -54,19 +54,19 @@
 
 /** @addtogroup Components
  * @{
- */  
-  
+ */
+
 /** @addtogroup HTS221
   * @{
   */
-  
+
 /** @defgroup HTS221_Exported_Defines HTS221_Exported_Defines
   * @{
   */
 #ifndef NULL
-  #define NULL      (void *) 0
+#define NULL      (void *) 0
 #endif
-   
+
 /**
   * @brief Device Address
   */
@@ -86,315 +86,315 @@
  * \endcode
 */
 #define HTS221_WHO_AM_I_ADDR                        0x0F
-  
+
 
-   /**
-    * @brief Humidity resolution Register
-    * \code
-    * Read/write
-    * Default value: 0x1B
-    * 7:6 RFU
-    * 5:3 AVGT2-AVGT0: Temperature internal average.
-    *     AVGT2 | AVGT1 | AVGT0 | Nr. Internal Average
-    *   ------------------------------------------------------
-    *      0    |  0    |  0    |     2
-    *      0    |  0    |  1    |     4
-    *      0    |  1    |  0    |     8
-    *      0    |  1    |  1    |     16
-    *      1    |  0    |  0    |     32
-    *      1    |  0    |  1    |     64
-    *      1    |  1    |  0    |     128
-    *      1    |  1    |  1    |     256
-    *
-    * 2:0 AVGH2-AVGH0: Humidity internal average.
-    *     AVGH2 | AVGH1 | AVGH0 | Nr. Internal Average
-    *   ------------------------------------------------------
-    *      0    |  0    |  0    |     4
-    *      0    |  0    |  1    |     8
-    *      0    |  1    |  0    |     16
-    *      0    |  1    |  1    |     32
-    *      1    |  0    |  0    |     64
-    *      1    |  0    |  1    |     128
-    *      1    |  1    |  0    |     256
-    *      1    |  1    |  1    |     512
-    *
-    * \endcode
-    */
+/**
+ * @brief Humidity resolution Register
+ * \code
+ * Read/write
+ * Default value: 0x1B
+ * 7:6 RFU
+ * 5:3 AVGT2-AVGT0: Temperature internal average.
+ *     AVGT2 | AVGT1 | AVGT0 | Nr. Internal Average
+ *   ------------------------------------------------------
+ *      0    |  0    |  0    |     2
+ *      0    |  0    |  1    |     4
+ *      0    |  1    |  0    |     8
+ *      0    |  1    |  1    |     16
+ *      1    |  0    |  0    |     32
+ *      1    |  0    |  1    |     64
+ *      1    |  1    |  0    |     128
+ *      1    |  1    |  1    |     256
+ *
+ * 2:0 AVGH2-AVGH0: Humidity internal average.
+ *     AVGH2 | AVGH1 | AVGH0 | Nr. Internal Average
+ *   ------------------------------------------------------
+ *      0    |  0    |  0    |     4
+ *      0    |  0    |  1    |     8
+ *      0    |  1    |  0    |     16
+ *      0    |  1    |  1    |     32
+ *      1    |  0    |  0    |     64
+ *      1    |  0    |  1    |     128
+ *      1    |  1    |  0    |     256
+ *      1    |  1    |  1    |     512
+ *
+ * \endcode
+ */
 #define HTS221_RES_CONF_ADDR                        0x10
 
 
-    /**
-    * @brief INFO Register  (LSB data)
-    * \code
-    * Read/write
-    * Default value: 0x00
-    * 7:0 INFO7-INFO0: Lower part of the INFO reference
-    *                  used for traceability of the sample.
-    * \endcode
-    */
+/**
+* @brief INFO Register  (LSB data)
+* \code
+* Read/write
+* Default value: 0x00
+* 7:0 INFO7-INFO0: Lower part of the INFO reference
+*                  used for traceability of the sample.
+* \endcode
+*/
 #define HTS221_INFO_L_ADDR                          0x1E
 
 
-    /**
-    * @brief INFO & Calibration Version Register  (LSB data)
-    * \code
-    * Read/write
-    * Default value: 0x00
-    * 7:6 CALVER1:CALVER0
-    * 5:0 INFO13-INFO8: Higher part of the INFO reference
-    *                  used for traceability of the sample.
-    * \endcode
-    */
+/**
+* @brief INFO & Calibration Version Register  (LSB data)
+* \code
+* Read/write
+* Default value: 0x00
+* 7:6 CALVER1:CALVER0
+* 5:0 INFO13-INFO8: Higher part of the INFO reference
+*                  used for traceability of the sample.
+* \endcode
+*/
 #define HTS221_INFO_H_ADDR                          0x1F
 
 
-    /**
-    * @brief Humidity sensor control register 1
-    * \code
-    * Read/write
-    * Default value: 0x00
-    * 7    PD: power down control. 0 - disable; 1 - enable
-    * 6:3  RFU
-    * 2    BDU: block data update. 0 - disable; 1 - enable
-    * 1:0  RFU
-    * \endcode
-    */
+/**
+* @brief Humidity sensor control register 1
+* \code
+* Read/write
+* Default value: 0x00
+* 7    PD: power down control. 0 - disable; 1 - enable
+* 6:3  RFU
+* 2    BDU: block data update. 0 - disable; 1 - enable
+* 1:0  RFU
+* \endcode
+*/
 
 #define HTS221_CTRL_REG1_ADDR                       0x20
 
 
-    /**
-    * @brief Humidity sensor control register 2
-    * \code
-    * Read/write
-    * Default value: 0x00
-    * 7    BOOT:  Reboot memory content. 0: normal mode; 1: reboot memory content
-    * 6:3  Reserved.
-    * 2    Reserved.
-    * 1    Reserved.
-    * 0    ONE_SHOT: One shot enable. 0: waiting for start of conversion; 1: start for a new dataset
-    * \endcode
-    */
+/**
+* @brief Humidity sensor control register 2
+* \code
+* Read/write
+* Default value: 0x00
+* 7    BOOT:  Reboot memory content. 0: normal mode; 1: reboot memory content
+* 6:3  Reserved.
+* 2    Reserved.
+* 1    Reserved.
+* 0    ONE_SHOT: One shot enable. 0: waiting for start of conversion; 1: start for a new dataset
+* \endcode
+*/
 #define HTS221_CTRL_REG2_ADDR                       0x21
 
-     
-     /**
-     * @brief Humidity sensor control register 3
-     * \code
-     * Read/write
-     * Default value: 0x00
-     * [7]   DRDY_H_L: Data Ready output signal active high, low (0: active high -default;1: active low)
-     * [6]   PP_OD: Push-pull / Open Drain selection on pin 3 (DRDY) (0: push-pull - default; 1: open drain)
-     * [5:3] Reserved
-     * [2]   DRDY_EN: Data Ready enable (0: Data Ready disabled - default;1: Data Ready signal available on pin 3)
-     * [1:0] Reserved
-     * \endcode
-     */
+
+/**
+* @brief Humidity sensor control register 3
+* \code
+* Read/write
+* Default value: 0x00
+* [7]   DRDY_H_L: Data Ready output signal active high, low (0: active high -default;1: active low)
+* [6]   PP_OD: Push-pull / Open Drain selection on pin 3 (DRDY) (0: push-pull - default; 1: open drain)
+* [5:3] Reserved
+* [2]   DRDY_EN: Data Ready enable (0: Data Ready disabled - default;1: Data Ready signal available on pin 3)
+* [1:0] Reserved
+* \endcode
+*/
 #define HTS221_CTRL_REG3_ADDR                       0x22
-     
- 
-     /**
-    * @brief  Status Register
-    * \code
-    * Read
-    * Default value: 0x00
-    * 7:2  RFU
-    * 1    H_DA: Humidity data available. 0: new data for Humidity is not yet available; 1: new data for Humidity is available.
-    * 0    T_DA: Temperature data available. 0: new data for temperature is not yet available; 1: new data for temperature is available.
-    * \endcode
-    */
+
+
+/**
+* @brief  Status Register
+* \code
+* Read
+* Default value: 0x00
+* 7:2  RFU
+* 1    H_DA: Humidity data available. 0: new data for Humidity is not yet available; 1: new data for Humidity is available.
+* 0    T_DA: Temperature data available. 0: new data for temperature is not yet available; 1: new data for temperature is available.
+* \endcode
+*/
 #define HTS221_STATUS_REG_ADDR                      0x27
 
 
-    /**
-    * @brief  Humidity data (LSB).
-    * \code
-    * Read
-    * Default value: 0x00.
-    * POUT7 - POUT0: Humidity data LSB (2's complement) => signed 16 bits
-    * RAW Humidity output data: Hout(%)=(HUMIDITY_OUT_H & HUMIDITY_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Humidity data (LSB).
+* \code
+* Read
+* Default value: 0x00.
+* POUT7 - POUT0: Humidity data LSB (2's complement) => signed 16 bits
+* RAW Humidity output data: Hout(%)=(HUMIDITY_OUT_H & HUMIDITY_OUT_L).
+* \endcode
+*/
 #define HTS221_HUMIDITY_OUT_L_ADDR                  0x28
 
 
-    /**
-    * @brief  Humidity data (MSB).
-    * \code
-    * Read
-    * Default value: 0x00.
-    * POUT7 - POUT0: Humidity data LSB (2's complement) => signed 16 bits
-    * RAW Humidity output data: Hout(%)=(HUMIDITY_OUT_H & HUMIDITY_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Humidity data (MSB).
+* \code
+* Read
+* Default value: 0x00.
+* POUT7 - POUT0: Humidity data LSB (2's complement) => signed 16 bits
+* RAW Humidity output data: Hout(%)=(HUMIDITY_OUT_H & HUMIDITY_OUT_L).
+* \endcode
+*/
 #define HTS221_HUMIDITY_OUT_H_ADDR                  0x29
 
 
-    /**
-    * @brief  Temperature data (LSB).
-    * \code
-    * Read
-    * Default value: 0x00.
-    * TOUT7 - TOUT0: temperature data LSB (2's complement) => signed 16 bits
-    * RAW Temperature output data: Tout (LSB)=(TEMP_OUT_H & TEMP_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Temperature data (LSB).
+* \code
+* Read
+* Default value: 0x00.
+* TOUT7 - TOUT0: temperature data LSB (2's complement) => signed 16 bits
+* RAW Temperature output data: Tout (LSB)=(TEMP_OUT_H & TEMP_OUT_L).
+* \endcode
+*/
 #define HTS221_TEMP_OUT_L_ADDR                      0x2A
 
 
-    /**
-    * @brief  Temperature data (MSB).
-    * \code
-    * Read
-    * Default value: 0x00.
-    * TOUT15 - TOUT8: temperature data MSB (2's complement) => signed 16 bits
-    * RAW Temperature output data: Tout (LSB)=(TEMP_OUT_H & TEMP_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Temperature data (MSB).
+* \code
+* Read
+* Default value: 0x00.
+* TOUT15 - TOUT8: temperature data MSB (2's complement) => signed 16 bits
+* RAW Temperature output data: Tout (LSB)=(TEMP_OUT_H & TEMP_OUT_L).
+* \endcode
+*/
 #define HTS221_TEMP_OUT_H_ADDR                      0x2B
 
 
-    /**
-    *@brief Humidity 0 Register in %RH with sensitivity=2
-    *\code
-    * Read
-    * Value: (Unsigned 8 Bit)/2
-    *\endcode
-    */
+/**
+*@brief Humidity 0 Register in %RH with sensitivity=2
+*\code
+* Read
+* Value: (Unsigned 8 Bit)/2
+*\endcode
+*/
 #define HTS221_H0_RH_X2_ADDR                        0x30
 
 
-    /**
-    *@brief Humidity 1 Register in %RH with sensitivity=2
-    *\code
-    * Read
-    * Value: (Unsigned 8 Bit)/2
-    *\endcode
-    */
+/**
+*@brief Humidity 1 Register in %RH with sensitivity=2
+*\code
+* Read
+* Value: (Unsigned 8 Bit)/2
+*\endcode
+*/
 #define HTS221_H1_RH_X2_ADDR                        0x31
 
 
-    /**
-    *@brief Temperature 0 Register in deg with sensitivity=8
-    *\code
-    * Read
-    * Value: (Unsigned 16 Bit)/2
-    *\endcode
-    */
+/**
+*@brief Temperature 0 Register in deg with sensitivity=8
+*\code
+* Read
+* Value: (Unsigned 16 Bit)/2
+*\endcode
+*/
 #define HTS221_T0_degC_X8_ADDR                      0x32
 
 
-    /**
-    *@brief Temperature 1 Register in deg with sensitivity=8
-    *\code
-    * Read
-    * Value: (Unsigned 16 Bit)/2
-    *\endcode
-    */
+/**
+*@brief Temperature 1 Register in deg with sensitivity=8
+*\code
+* Read
+* Value: (Unsigned 16 Bit)/2
+*\endcode
+*/
 #define HTS221_T1_degC_X8_ADDR                      0x33
 
 
-    /**
-    *@brief Temperature 1/0 MSB Register in deg with sensitivity=8
-    *\code
-    * Read
-    * Value: (Unsigned 16 Bit)/2
-    * 3:2  T1(9):T1(8) MSB T1_degC_X8 bits
-    * 1:0  T0(9):T0(8) MSB T0_degC_X8 bits
-    *\endcode
-    */
+/**
+*@brief Temperature 1/0 MSB Register in deg with sensitivity=8
+*\code
+* Read
+* Value: (Unsigned 16 Bit)/2
+* 3:2  T1(9):T1(8) MSB T1_degC_X8 bits
+* 1:0  T0(9):T0(8) MSB T0_degC_X8 bits
+*\endcode
+*/
 #define HTS221_T1_T0_MSB_X8_ADDR                    0x35
 
 
-    /**
-    *@brief Humidity LOW CALIBRATION Register
-    *\code
-    * Read
-    * Default value: 0x00.
-    * H0_T0_TOUT7 - H0_T0_TOUT0: HUMIDITY data lSB (2's complement) => signed 16 bits
-    *\endcode
-    */
+/**
+*@brief Humidity LOW CALIBRATION Register
+*\code
+* Read
+* Default value: 0x00.
+* H0_T0_TOUT7 - H0_T0_TOUT0: HUMIDITY data lSB (2's complement) => signed 16 bits
+*\endcode
+*/
 #define HTS221_H0_T0_OUT_L_ADDR                     0x36
 
 
-    /**
-    *@brief Humidity LOW CALIBRATION Register
-    *\code
-    * Read
-    * Default value: 0x00.
-    * H0_T0_TOUT15 - H0_T0_TOUT8: HUMIDITY data mSB (2's complement) => signed 16 bits
-    *\endcode
-    */
+/**
+*@brief Humidity LOW CALIBRATION Register
+*\code
+* Read
+* Default value: 0x00.
+* H0_T0_TOUT15 - H0_T0_TOUT8: HUMIDITY data mSB (2's complement) => signed 16 bits
+*\endcode
+*/
 #define HTS221_H0_T0_OUT_H_ADDR                       0x37
 
 
-    /**
-    *@brief Humidity HIGH CALIBRATION Register
-    *\code
-    * Read
-    * Default value: 0x00.
-    * H1_T0_TOUT7 - H1_T0_TOUT0: HUMIDITY data lSB (2's complement) => signed 16 bits
-    *\endcode
-    */
+/**
+*@brief Humidity HIGH CALIBRATION Register
+*\code
+* Read
+* Default value: 0x00.
+* H1_T0_TOUT7 - H1_T0_TOUT0: HUMIDITY data lSB (2's complement) => signed 16 bits
+*\endcode
+*/
 #define HTS221_H1_T0_OUT_L_ADDR                       0x3A
 
 
-    /**
-    *@brief Humidity HIGH CALIBRATION Register
-    *\code
-    * Read
-    * Default value: 0x00.
-    * H1_T0_TOUT15 - H1_T0_TOUT8: HUMIDITY data mSB (2's complement) => signed 16 bits
-    *\endcode
-    */
+/**
+*@brief Humidity HIGH CALIBRATION Register
+*\code
+* Read
+* Default value: 0x00.
+* H1_T0_TOUT15 - H1_T0_TOUT8: HUMIDITY data mSB (2's complement) => signed 16 bits
+*\endcode
+*/
 #define HTS221_H1_T0_OUT_H_ADDR                       0x3B
 
 
-    /**
-    * @brief  Low Calibration Temperature Register (LSB).
-    * \code
-    * Read
-    * Default value: 0x00.
-    * T0_OUT7 - T0_OUT0: temperature data LSB (2's complement) => signed 16 bits
-    *  RAW LOW Calibration data: T0_OUT (LSB)=(T0_OUT_H & T0_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Low Calibration Temperature Register (LSB).
+* \code
+* Read
+* Default value: 0x00.
+* T0_OUT7 - T0_OUT0: temperature data LSB (2's complement) => signed 16 bits
+*  RAW LOW Calibration data: T0_OUT (LSB)=(T0_OUT_H & T0_OUT_L).
+* \endcode
+*/
 #define HTS221_T0_OUT_L_ADDR                        0x3C
 
 
-    /**
-    * @brief  Low Calibration Temperature Register (MSB)
-    * \code
-    * Read
-    * Default value: 0x00.
-    * T0_OUT15 - T0_OUT8: temperature data MSB (2's complement) => signed 16 bits
-    * RAW LOW Calibration data: T0_OUT (LSB)=(T0_OUT_H & T0_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Low Calibration Temperature Register (MSB)
+* \code
+* Read
+* Default value: 0x00.
+* T0_OUT15 - T0_OUT8: temperature data MSB (2's complement) => signed 16 bits
+* RAW LOW Calibration data: T0_OUT (LSB)=(T0_OUT_H & T0_OUT_L).
+* \endcode
+*/
 #define HTS221_T0_OUT_H_ADDR                        0x3D
 
 
-    /**
-    * @brief  Low Calibration Temperature Register (LSB).
-    * \code
-    * Read
-    * Default value: 0x00.
-    * T1_OUT7 - T1_OUT0: temperature data LSB (2's complement) => signed 16 bits
-    *  RAW LOW Calibration data: T1_OUT (LSB)=(T1_OUT_H & T1_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Low Calibration Temperature Register (LSB).
+* \code
+* Read
+* Default value: 0x00.
+* T1_OUT7 - T1_OUT0: temperature data LSB (2's complement) => signed 16 bits
+*  RAW LOW Calibration data: T1_OUT (LSB)=(T1_OUT_H & T1_OUT_L).
+* \endcode
+*/
 #define HTS221_T1_OUT_L_ADDR                        0x3E
 
 
-    /**
-    * @brief  Low Calibration Temperature Register (MSB)
-    * \code
-    * Read
-    * Default value: 0x00.
-    * T1_OUT15 - T1_OUT8: temperature data MSB (2's complement) => signed 16 bits
-    * RAW LOW Calibration data: T1_OUT (LSB)=(T1_OUT_H & T1_OUT_L).
-    * \endcode
-    */
+/**
+* @brief  Low Calibration Temperature Register (MSB)
+* \code
+* Read
+* Default value: 0x00.
+* T1_OUT15 - T1_OUT8: temperature data MSB (2's complement) => signed 16 bits
+* RAW LOW Calibration data: T1_OUT (LSB)=(T1_OUT_H & T1_OUT_L).
+* \endcode
+*/
 #define HTS221_T1_OUT_H_ADDR                        0x3F
 
 
@@ -404,9 +404,9 @@
 
 /**
  * @brief Multiple Byte. Mask for enabling multiple byte read/write command.
- */   
+ */
 #define HTS221_I2C_MULTIPLEBYTE_CMD                      ((uint8_t)0x80)
-   
+
 /**
  * @brief Device Identifier. Default value of the WHO_AM_I register.
  */
@@ -422,7 +422,7 @@
 #define HTS221_MODE_MASK                    ((uint8_t)0x80)
 /**
   * @}
-  */ 
+  */
 
 
 /** @defgroup HTS221_Block_Data_Update_Mode_Selection_CTRL_REG1 HTS221_Block_Data_Update_Mode_Selection_CTRL_REG1
@@ -459,7 +459,7 @@
 #define HTS221_BOOT_MASK                    ((uint8_t)0x80)
 /**
   * @}
-  */  
+  */
 
 
 /** @defgroup HTS221_One_Shot_Selection_CTRL_REG2 HTS221_One_Shot_Selection_CTRL_REG2
@@ -540,26 +540,28 @@
 /* Data resolution */
 #define HUM_DECIMAL_DIGITS                  (2)
 #define TEMP_DECIMAL_DIGITS                 (2)
-  
+
 /**
   * @}
   */
 
- 
+
 /** @defgroup HTS221_Imported_Functions HTS221_Imported_Functions
   * @{
   */
 /* HUM_TEMP sensor IO functions */
 extern HUM_TEMP_StatusTypeDef HTS221_IO_Init(void);
-extern HUM_TEMP_StatusTypeDef HTS221_IO_Write(uint8_t* pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint16_t NumByteToWrite);
-extern HUM_TEMP_StatusTypeDef HTS221_IO_Read(uint8_t* pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint16_t NumByteToRead);
+extern HUM_TEMP_StatusTypeDef HTS221_IO_Write(uint8_t* pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr,
+    uint16_t NumByteToWrite);
+extern HUM_TEMP_StatusTypeDef HTS221_IO_Read(uint8_t* pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr,
+    uint16_t NumByteToRead);
 extern void HTS221_IO_ITConfig( void );
 
 /**
   * @}
   */
 
-/* ------------------------------------------------------- */ 
+/* ------------------------------------------------------- */
 /* Here you should declare the internal struct of          */
 /* extended features of HTS221. See the example of         */
 /* LSM6DS3 in lsm6ds3.h                                    */
@@ -573,25 +575,25 @@
 extern HUM_TEMP_DrvExtTypeDef Hts221Drv_ext;
 /**
   * @}
-  */ 
-  
+  */
+
 /**
   * @}
-  */ 
+  */
 
 /**
   * @}
-  */ 
+  */
 
 /**
   * @}
-  */ 
-  
+  */
+
 #ifdef __cplusplus
-  }
+}
 #endif
-  
+
 #endif /* __HTS221_H */
 
 
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/