rtu: add serial port interface

Add the interface classes for serial port with Port Factory classes to
make the code extensible for future in case a new hardware port type is
introduced. This also makes the unit testing easy by creating a Mock
Port using socat.

Tested:
```
meson test -C builddir test_port
ninja: Entering directory `/host/repos/Modbus/phosphor-modbus/builddir'
ninja: no work to do.
1/1 test_port        OK              5.02s

Ok:                1
Fail:              0
```

Change-Id: Ic6bd982abf1ae993f76c39e3503d3a0402a692fe
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
9 files changed
tree: 423c3aa253eeb4259a26bc545ca64937177c40ce
  1. common/
  2. rtu/
  3. subprojects/
  4. tests/
  5. .clang-format
  6. .clang-tidy
  7. .gitignore
  8. LICENSE
  9. meson.build
  10. meson.options
  11. OWNERS
  12. README.md
README.md

phosphor-modbus

phosphor-modbus provides a set of software applications to query sensors info, inventory data, firmware info of various modbus devices.

Dependencies

The phosphor-modbus requires phosphor-dbus-interfaces, sdbusplus and phosphor-logging.

Building

The phosphor-modbus is built using meson.

meson build && ninja -C build