summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2017-05-10 12:01:10 -0700
committerPatrick Williams <patrick@stwcx.xyz>2017-07-17 15:06:04 -0500
commit10f4959a020f33d40e7387d93fdab9bba46963d7 (patch)
treeeb7c0e97d7b32d11f59bfd5bf8b22de4efc0ef91 /types.hpp
parentbbef71c2a9aab57a826b4c7ec8f183e92eb6e28c (diff)
downloadphosphor-host-ipmid-10f4959a020f33d40e7387d93fdab9bba46963d7.tar.gz
phosphor-host-ipmid-10f4959a020f33d40e7387d93fdab9bba46963d7.zip
sensorhandler: Add functionality to use m, b, b_exp from config.yaml
Change-Id: I1b5b8a5e0e5abd74eadde494728f363cf1ca4ec6 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/types.hpp b/types.hpp
index 4ad3306..37066f5 100644
--- a/types.hpp
+++ b/types.hpp
@@ -32,12 +32,20 @@ using DbusInterfaceMap = std::map<DbusInterface,DbusPropertyMap>;
using InstancePath = std::string;
using Type = uint8_t;
using ReadingType = uint8_t;
+using Multiplier = uint16_t;
+using OffsetB = uint16_t;
+using Exponent = uint8_t;
+using ScaledOffset = int64_t;
struct Info
{
Type sensorType;
InstancePath sensorPath;
ReadingType sensorReadingType;
+ Multiplier coefficientM;
+ OffsetB coefficientB;
+ Exponent exponentB;
+ ScaledOffset scaledOffset;
DbusInterfaceMap sensorInterfaces;
};
OpenPOWER on IntegriCloud