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:
commit
2cab4292d5
@ -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
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user