diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2018-02-16 08:27:00 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-03-01 05:34:21 +0000 |
commit | 0a1301c141809fc8441abee5415c791ce894f068 (patch) | |
tree | 07b9efa7dc164f9b3ca80c01ca5174591684faa5 /scripts/sensor-example.yaml | |
parent | 82feb17d0c244ed04b82b0fbed3c0a9456986a86 (diff) | |
download | phosphor-host-ipmid-0a1301c141809fc8441abee5415c791ce894f068.tar.gz phosphor-host-ipmid-0a1301c141809fc8441abee5415c791ce894f068.zip |
sensor: Add result exponent to the sensor yaml
Result exponent sets the decimal point location for the result before
the linearization function is applied. This is different from the scale
implemented by the sensors dbus objects. The scale is the scaling factor
to get the value for the units specified for the sensor. Linearization
is done after applying the scale on the raw sensor value.
Change-Id: I76624c593bf6cdf40ec884c0ff0aceb58746732c
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'scripts/sensor-example.yaml')
-rwxr-xr-x | scripts/sensor-example.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/sensor-example.yaml b/scripts/sensor-example.yaml index db0e694..06c8836 100755 --- a/scripts/sensor-example.yaml +++ b/scripts/sensor-example.yaml @@ -100,6 +100,11 @@ multiplierM: 511 offsetB: 0 bExp: 0 + # Result exponent field in Type 1 SDR(2's complement, signed) + rExp: 0 + # Applies for analog sensors, the actual reading value for the sensor is + # Value * 10^N + scale: -3 mutability: Mutability::Write|Mutability::Read serviceInterface: org.freedesktop.DBus.Properties readingType: readingData |