1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #8587 from gebart/pr/phydat-min-max

sys/phydat: Introduce PHYDAT_MIN, PHYDAT_MAX
This commit is contained in:
Martine Lenders 2018-02-28 11:33:39 +01:00 committed by GitHub
commit 2cab4292d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
*