Threshold: define values to represent un-set threshold

Some existing implementations were using the value 0 to indicate an
unset threshold, but this makes it impossible to have a threshold of 0.
Zero is a reasonable threshold for some sensors, such as a lower-bound
on a temperature sensor.

Specify that 'NaN' should be used to represent thresholds which are not
defined.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I518b4b77a5f7601ea7079980f77c31991f6f9dde
2 files changed
tree: 8e8863a9ca66039faedfa2b3cf28ff6a10bd4466
  1. com/
  2. gen/
  3. org/
  4. subprojects/
  5. xyz/
  6. .gitignore
  7. LICENSE
  8. MAINTAINERS
  9. meson.build
  10. meson_options.txt
  11. README.md
README.md

phosphor-dbus-interfaces

YAML descriptors of standard D-Bus interfaces. The format is described by the sdbusplus binding generation tool sdbus++.

Building

This project can be built with meson. The typical meson workflow is: meson builddir && ninja -C builddir.

The meson files used to handle the YAML files are automatically generated and found under the gen subdirectory. When adding or removing YAML files, this must be regenerated. This can be done with the helper script found in the gen subdirectory: cd gen && ./regenerate-meson.

Configuration

Only the xyz/openbmc_project interfaces are built by default. Other interfaces can be enabled by meson options:

  • com/ibm - -Ddata_com_ibm=true
  • org/open_power - -Ddata_org_open_power=true

Example: meson builddir -Ddata_com_ibm=true && ninja -C builddir

References