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 ma
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>
show more ...
|