diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-05-20 21:45:17 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-05-20 21:45:34 +0200 |
commit | f2e4095b8208521bef2f566237b36fe24b949a8a (patch) | |
tree | 17185799fe075615d37bf6ab8ed06f00a1598329 /include | |
parent | 1cb46c9d6adbe4271314fddd765d49ce37681ca1 (diff) |
sen5x: add cleanfan and readstatus commands
Diffstat (limited to 'include')
-rw-r--r-- | include/driver/sen5x.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/driver/sen5x.h b/include/driver/sen5x.h index 64e116b..47d92a0 100644 --- a/include/driver/sen5x.h +++ b/include/driver/sen5x.h @@ -22,6 +22,15 @@ class SEN5x { signed short const VOC_INVALID = 0x7fff; signed short const NOX_INVALID = 0x7fff; + struct { + unsigned int fan_speed_warning : 1; + unsigned int fan_cleaning_active : 1; + unsigned int gas_sensor_error : 1; + unsigned int rht_sensor_error : 1; + unsigned int laser_failure : 1; + unsigned int fan_failure : 1; + }; + /* * PM1.0 value, scaled by 10. * PM1.0 [µg/m³] = pm10 / 10 @@ -73,7 +82,10 @@ class SEN5x { void start(); void stop(); + void cleanFan(); + bool read(); + bool readStatus(); }; extern SEN5x sen5x; |