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/test/meson.build b/phosphor-regulators/test/meson.build
index 1d261f7..6db6b88 100644
--- a/phosphor-regulators/test/meson.build
+++ b/phosphor-regulators/test/meson.build
@@ -26,11 +26,16 @@
gmock,
gtest,
],
- link_with: phosphor_regulators_library,
+ link_with: [
+ phosphor_regulators_library,
+ libi2c_dev_mock
+ ],
implicit_include_directories: false,
include_directories: [
phosphor_regulators_include_directories,
- phosphor_regulators_tests_include_directories
+ phosphor_regulators_tests_include_directories,
+ libi2c_inc,
+ libi2c_dev_mock_inc
]
)
)