sys/phydat: Introduce PHYDAT_MIN, PHYDAT_MAX

This commit is contained in:
Joakim Nohlgård 2018-02-18 07:48:49 +01:00
parent ad1944a10c
commit 7f89435dc7

View File

@ -137,6 +137,16 @@ typedef struct {
int8_t scale; /**< the scale factor, 10^*scale* */ int8_t scale; /**< the scale factor, 10^*scale* */
} phydat_t; } 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 * @brief Dump the given data container to STDIO
* *