From 7f89435dc71c8b54d37437e47ea1a2389a8071c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se>
Date: Sun, 18 Feb 2018 07:48:49 +0100
Subject: [PATCH] sys/phydat: Introduce PHYDAT_MIN, PHYDAT_MAX

---
 sys/include/phydat.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sys/include/phydat.h b/sys/include/phydat.h
index 57abe1dcce..df49167eb6 100644
--- a/sys/include/phydat.h
+++ b/sys/include/phydat.h
@@ -137,6 +137,16 @@ typedef struct {
     int8_t scale;               /**< the scale factor, 10^*scale* */
 } phydat_t;
 
+/**
+ * @brief   Minimum value for phydat_t::val
+ */
+#define PHYDAT_MIN  (INT16_MIN)
+
+/**
+ * @brief   Maximum value for phydat_t::val
+ */
+#define PHYDAT_MAX  (INT16_MAX)
+
 /**
  * @brief   Dump the given data container to STDIO
  *
-- 
GitLab