HTS221
Arduino library for the HTS221 humidity and temperature sensor
Loading...
Searching...
No Matches
Collaboration diagram for Exported Types:

Classes

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

Macros

#define IS_HTS221_State(MODE)   ((MODE == HTS221_ENABLE) || (MODE == HTS221_DISABLE))
 
#define IS_HTS221_BitStatus(MODE)   ((MODE == HTS221_RESET) || (MODE == HTS221_SET))
 
#define IS_HTS221_AVGH(AVGH)
 
#define IS_HTS221_AVGT(AVGT)
 
#define IS_HTS221_ODR(ODR)
 
#define IS_HTS221_OutputType(MODE)   ((MODE == HTS221_PUSHPULL) || (MODE == HTS221_OPENDRAIN))
 
#define IS_HTS221_DrdyLevelType(MODE)   ((MODE == HTS221_HIGH_LVL) || (MODE == HTS221_LOW_LVL))
 

Enumerations

enum  HTS221_Error_et { HTS221_OK = (uint8_t)0 , HTS221_ERROR = !HTS221_OK }
 Error code type. More...
 
enum  HTS221_State_et { HTS221_DISABLE = (uint8_t)0 , HTS221_ENABLE = !HTS221_DISABLE }
 State type. More...
 
enum  HTS221_BitStatus_et { HTS221_RESET = (uint8_t)0 , HTS221_SET = !HTS221_RESET }
 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

Macro Definition Documentation

◆ IS_HTS221_AVGH

#define IS_HTS221_AVGH (   AVGH)
Value:
((AVGH == HTS221_AVGH_4) || (AVGH == HTS221_AVGH_8) || \
(AVGH == HTS221_AVGH_16) || (AVGH == HTS221_AVGH_32) || \
(AVGH == HTS221_AVGH_64) || (AVGH == HTS221_AVGH_128) || \
(AVGH == HTS221_AVGH_256) || (AVGH == HTS221_AVGH_512))
@ HTS221_AVGH_16
Definition HTS221_Driver.h:106
@ HTS221_AVGH_64
Definition HTS221_Driver.h:108
@ HTS221_AVGH_32
Definition HTS221_Driver.h:107
@ HTS221_AVGH_256
Definition HTS221_Driver.h:110
@ HTS221_AVGH_8
Definition HTS221_Driver.h:105
@ HTS221_AVGH_128
Definition HTS221_Driver.h:109
@ HTS221_AVGH_4
Definition HTS221_Driver.h:104
@ HTS221_AVGH_512
Definition HTS221_Driver.h:111

◆ IS_HTS221_AVGT

#define IS_HTS221_AVGT (   AVGT)
Value:
((AVGT == HTS221_AVGT_2) || (AVGT == HTS221_AVGT_4) || \
(AVGT == HTS221_AVGT_8) || (AVGT == HTS221_AVGT_16) || \
(AVGT == HTS221_AVGT_32) || (AVGT == HTS221_AVGT_64) || \
(AVGT == HTS221_AVGT_128) || (AVGT == HTS221_AVGT_256))
@ HTS221_AVGT_8
Definition HTS221_Driver.h:125
@ HTS221_AVGT_64
Definition HTS221_Driver.h:128
@ HTS221_AVGT_16
Definition HTS221_Driver.h:126
@ HTS221_AVGT_2
Definition HTS221_Driver.h:123
@ HTS221_AVGT_128
Definition HTS221_Driver.h:129
@ HTS221_AVGT_32
Definition HTS221_Driver.h:127
@ HTS221_AVGT_4
Definition HTS221_Driver.h:124
@ HTS221_AVGT_256
Definition HTS221_Driver.h:130

◆ IS_HTS221_BitStatus

#define IS_HTS221_BitStatus (   MODE)    ((MODE == HTS221_RESET) || (MODE == HTS221_SET))

◆ IS_HTS221_DrdyLevelType

#define IS_HTS221_DrdyLevelType (   MODE)    ((MODE == HTS221_HIGH_LVL) || (MODE == HTS221_LOW_LVL))

◆ IS_HTS221_ODR

#define IS_HTS221_ODR (   ODR)
Value:
((ODR == HTS221_ODR_ONE_SHOT) || (ODR == HTS221_ODR_1HZ) || \
(ODR == HTS221_ODR_7HZ) || (ODR == HTS221_ODR_12_5HZ))
@ HTS221_ODR_ONE_SHOT
Definition HTS221_Driver.h:142
@ HTS221_ODR_1HZ
Definition HTS221_Driver.h:143
@ HTS221_ODR_12_5HZ
Definition HTS221_Driver.h:145
@ HTS221_ODR_7HZ
Definition HTS221_Driver.h:144

◆ IS_HTS221_OutputType

#define IS_HTS221_OutputType (   MODE)    ((MODE == HTS221_PUSHPULL) || (MODE == HTS221_OPENDRAIN))

◆ IS_HTS221_State

#define IS_HTS221_State (   MODE)    ((MODE == HTS221_ENABLE) || (MODE == HTS221_DISABLE))

Enumeration Type Documentation

◆ HTS221_Avgh_et

Humidity average.

Enumerator
HTS221_AVGH_4 

Internal average on 4 samples

HTS221_AVGH_8 

Internal average on 8 samples

HTS221_AVGH_16 

Internal average on 16 samples

HTS221_AVGH_32 

Internal average on 32 samples

HTS221_AVGH_64 

Internal average on 64 samples

HTS221_AVGH_128 

Internal average on 128 samples

HTS221_AVGH_256 

Internal average on 256 samples

HTS221_AVGH_512 

Internal average on 512 samples

◆ HTS221_Avgt_et

Temperature average.

Enumerator
HTS221_AVGT_2 

Internal average on 2 samples

HTS221_AVGT_4 

Internal average on 4 samples

HTS221_AVGT_8 

Internal average on 8 samples

HTS221_AVGT_16 

Internal average on 16 samples

HTS221_AVGT_32 

Internal average on 32 samples

HTS221_AVGT_64 

Internal average on 64 samples

HTS221_AVGT_128 

Internal average on 128 samples

HTS221_AVGT_256 

Internal average on 256 samples

◆ HTS221_BitStatus_et

Bit status type.

Enumerator
HTS221_RESET 
HTS221_SET 

◆ HTS221_DrdyLevel_et

Active level of DRDY pin.

Enumerator
HTS221_HIGH_LVL 

HIGH state level for DRDY pin

HTS221_LOW_LVL 

LOW state level for DRDY pin

◆ HTS221_Error_et

Error code type.

Enumerator
HTS221_OK 
HTS221_ERROR 

◆ HTS221_Odr_et

Output data rate configuration.

Enumerator
HTS221_ODR_ONE_SHOT 

Output Data Rate: one shot

HTS221_ODR_1HZ 

Output Data Rate: 1Hz

HTS221_ODR_7HZ 

Output Data Rate: 7Hz

HTS221_ODR_12_5HZ 

Output Data Rate: 12.5Hz

◆ HTS221_OutputType_et

Push-pull/Open Drain selection on DRDY pin.

Enumerator
HTS221_PUSHPULL 

DRDY pin in push pull

HTS221_OPENDRAIN 

DRDY pin in open drain

◆ HTS221_State_et

State type.

Enumerator
HTS221_DISABLE 
HTS221_ENABLE