Workshop example

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

HTS221_driver.h File Reference

HTS221_driver.h File Reference

HTS221 driver header file. More...

Go to the source code of this file.

Data Structures

struct  HTS221_DriverVersion_st
 Driver Version Info structure definition. More...
struct  HTS221_Init_st
 HTS221 Init structure definition. More...

Enumerations

enum  HTS221_Error_et
 

Error code type.

More...
enum  HTS221_State_et
 

State type.

More...
enum  HTS221_BitStatus_et
 

Bit status type.

More...
enum  HTS221_Avgh_et {
  HTS221_AVGH_4 = (uint8_t)0x00, HTS221_AVGH_8 = (uint8_t)0x01, HTS221_AVGH_16 = (uint8_t)0x02, HTS221_AVGH_32 = (uint8_t)0x03,
  HTS221_AVGH_64 = (uint8_t)0x04, HTS221_AVGH_128 = (uint8_t)0x05, HTS221_AVGH_256 = (uint8_t)0x06, HTS221_AVGH_512 = (uint8_t)0x07
}
 

Humidity average.

More...
enum  HTS221_Avgt_et {
  HTS221_AVGT_2 = (uint8_t)0x00, HTS221_AVGT_4 = (uint8_t)0x08, HTS221_AVGT_8 = (uint8_t)0x10, HTS221_AVGT_16 = (uint8_t)0x18,
  HTS221_AVGT_32 = (uint8_t)0x20, HTS221_AVGT_64 = (uint8_t)0x28, HTS221_AVGT_128 = (uint8_t)0x30, HTS221_AVGT_256 = (uint8_t)0x38
}
 

Temperature average.

More...
enum  HTS221_Odr_et { HTS221_ODR_ONE_SHOT = (uint8_t)0x00, HTS221_ODR_1HZ = (uint8_t)0x01, HTS221_ODR_7HZ = (uint8_t)0x02, HTS221_ODR_12_5HZ = (uint8_t)0x03 }
 

Output data rate configuration.

More...
enum  HTS221_OutputType_et { HTS221_PUSHPULL = (uint8_t)0x00, HTS221_OPENDRAIN = (uint8_t)0x40 }
 

Push-pull/Open Drain selection on DRDY pin.

More...
enum  HTS221_DrdyLevel_et { HTS221_HIGH_LVL = (uint8_t)0x00, HTS221_LOW_LVL = (uint8_t)0x80 }
 

Active level of DRDY pin.

More...

Detailed Description

HTS221 driver header file.

Author:
HESA Application Team
Version:
V1.1
Date:
10-August-2016
Attention:

© COPYRIGHT(c) 2016 STMicroelectronics

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.

Definition in file HTS221_driver.h.