sys/phydat: add ppb unit support
This commit is contained in:
parent
698fbf98cc
commit
25b90317f3
@ -104,6 +104,7 @@ enum {
|
|||||||
UNIT_PERCENT, /**< out of 100 */
|
UNIT_PERCENT, /**< out of 100 */
|
||||||
UNIT_PERMILL, /**< out of 1000 */
|
UNIT_PERMILL, /**< out of 1000 */
|
||||||
UNIT_PPM, /**< part per million */
|
UNIT_PPM, /**< part per million */
|
||||||
|
UNIT_PPB, /**< part per billion */
|
||||||
/* aggregate values */
|
/* aggregate values */
|
||||||
UNIT_TIME, /**< the three dimensions contain sec, min, and hours */
|
UNIT_TIME, /**< the three dimensions contain sec, min, and hours */
|
||||||
UNIT_DATE /**< the 3 dimensions contain days, months and years */
|
UNIT_DATE /**< the 3 dimensions contain days, months and years */
|
||||||
|
|||||||
@ -95,6 +95,7 @@ const char *phydat_unit_to_str(uint8_t unit)
|
|||||||
case UNIT_BAR: return "Bar";
|
case UNIT_BAR: return "Bar";
|
||||||
case UNIT_PA: return "Pa";
|
case UNIT_PA: return "Pa";
|
||||||
case UNIT_PPM: return "ppm";
|
case UNIT_PPM: return "ppm";
|
||||||
|
case UNIT_PPB: return "ppb";
|
||||||
case UNIT_CD: return "cd";
|
case UNIT_CD: return "cd";
|
||||||
case UNIT_PERCENT: return "%";
|
case UNIT_PERCENT: return "%";
|
||||||
default: return "";
|
default: return "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user