diff options
author | Emily Shaffer <emilyshaffer@google.com> | 2017-05-10 12:01:10 -0700 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-17 15:06:04 -0500 |
commit | 10f4959a020f33d40e7387d93fdab9bba46963d7 (patch) | |
tree | eb7c0e97d7b32d11f59bfd5bf8b22de4efc0ef91 /types.hpp | |
parent | bbef71c2a9aab57a826b4c7ec8f183e92eb6e28c (diff) | |
download | phosphor-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.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; }; |