Sensor Reading Get: Add threshold byte
Third byte should show threshold status based on
spec. Add the threshold data and update to the new
api.
Tested: Sensor list still worked, used sensor overide
to modify threshold and saw byte in sensor get. sdr elist
also started showing status.
Change-Id: Ic08555563b62048f334b5cb4aaedcd3fcef1f5f7
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/sensorcommands.hpp b/include/sensorcommands.hpp
index e5bed10..fdae725 100644
--- a/include/sensorcommands.hpp
+++ b/include/sensorcommands.hpp
@@ -18,12 +18,6 @@
#include <cstdint>
#pragma pack(push, 1)
-struct SensorReadingResp
-{
- uint8_t value;
- uint8_t operation;
- uint8_t indication[2];
-};
struct SensorThresholdResp
{
@@ -96,6 +90,16 @@
readingStateUnavailable = (1 << 5),
};
+enum class IPMISensorReadingByte3 : uint8_t
+{
+ upperNonRecoverable = (1 << 5),
+ upperCritical = (1 << 4),
+ upperNonCritical = (1 << 3),
+ lowerNonRecoverable = (1 << 2),
+ lowerCritical = (1 << 1),
+ lowerNonCritical = (1 << 0),
+};
+
enum class IPMISensorEventEnableByte2 : uint8_t
{
eventMessagesEnable = (1 << 7),