Skip to content
Snippets Groups Projects
Commit 7f89435d authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

sys/phydat: Introduce PHYDAT_MIN, PHYDAT_MAX

parent ad1944a1
No related branches found
No related tags found
No related merge requests found
......@@ -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
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment