aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/hts221.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/ex/ST/hts221.c')
-rw-r--r--os/ex/ST/hts221.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/ex/ST/hts221.c b/os/ex/ST/hts221.c
index a0367da23..d61fbf7ac 100644
--- a/os/ex/ST/hts221.c
+++ b/os/ex/ST/hts221.c
@@ -34,6 +34,13 @@
/* Driver local definitions. */
/*===========================================================================*/
+#define HTS221_SEL(mask, offset) (int16_t)(mask << offset)
+
+#define HTS221_FLAG_HYGRO_BIAS 0x01
+#define HTS221_FLAG_HYGRO_SENS 0x02
+#define HTS221_FLAG_THERMO_BIAS 0x04
+#define HTS221_FLAG_THERMO_SENS 0x08
+
/*===========================================================================*/
/* Driver exported variables. */
/*===========================================================================*/