Add I2C interface to Device class
Add an I2C interface to the phosphor-regulators C++ Device class.
Use the I2CInterface class from the tools/i2c directory of this
repository.
Also add the other required properties of the JSON "device" object to
the C++ Device class.
The JSON "device" object is in the phosphor-regulators config file. For
more information, see phosphor-regulators/docs/config_file/device.md.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Idc780b1a11372d6597762cfb6540fa44f1cfb64e
diff --git a/phosphor-regulators/src/meson.build b/phosphor-regulators/src/meson.build
index 4337095..121bf45 100644
--- a/phosphor-regulators/src/meson.build
+++ b/phosphor-regulators/src/meson.build
@@ -13,7 +13,10 @@
'phosphor-regulators',
phosphor_regulators_library_source_files,
implicit_include_directories: false,
- include_directories: phosphor_regulators_include_directories
+ include_directories: [
+ phosphor_regulators_include_directories,
+ libi2c_inc
+ ]
)
phosphor_regulators = executable(