From a0d7f98175548ae9d6e352093a1f97eb22194e77 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 5 Jul 2023 12:44:45 +0200 Subject: [PATCH] Add interface method reboot() --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 11 ++++++++++- src/ATBAPP/ATBDeviceControllerPlugin.h | 1 + src/ATBAPP/DeviceControllerInterface.h | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index c80d7ef..70d3dc5 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -113,10 +113,19 @@ void ATBDeviceControllerPlugin::stopPhysicalLayer() } +void ATBDeviceControllerPlugin::reboot() +{ + // note: + // - dc reset lasts about ~5s ! + // - makes a power cycle to certain components, e.g. card terminal + hw->bl_rebootDC(); +} void ATBDeviceControllerPlugin::reset() { - // note: dc reset lasts about ~5s ! + // note: + // - dc reset lasts about ~5s ! + // - makes a power cycle to certain components, e.g. card terminal hw->dc_OrderToReset(); } diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.h b/src/ATBAPP/ATBDeviceControllerPlugin.h index 8b00ac5..197ef52 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.h +++ b/src/ATBAPP/ATBDeviceControllerPlugin.h @@ -73,6 +73,7 @@ public slots: void startPhysicalLayer(); void stopPhysicalLayer(); + void reboot(); void reset(); diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index 69167ee..9701129 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 reboot() = 0; virtual void reset() = 0;