diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 9da6958..c80d7ef 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -114,6 +114,11 @@ void ATBDeviceControllerPlugin::stopPhysicalLayer() +void ATBDeviceControllerPlugin::reset() +{ + // note: dc reset lasts about ~5s ! + hw->dc_OrderToReset(); +} diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.h b/src/ATBAPP/ATBDeviceControllerPlugin.h index 8a31c91..8b00ac5 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.h +++ b/src/ATBAPP/ATBDeviceControllerPlugin.h @@ -73,6 +73,7 @@ public slots: void startPhysicalLayer(); void stopPhysicalLayer(); + void reset(); diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index 09d6e3d..69167ee 100644 --- a/src/ATBAPP/DeviceControllerInterface.h +++ b/src/ATBAPP/DeviceControllerInterface.h @@ -83,6 +83,7 @@ public slots: virtual void startPhysicalLayer() = 0; virtual void stopPhysicalLayer() = 0; + virtual void reset() = 0; signals: