Add interface method reboot()

This commit is contained in:
Siegfried Siegert 2023-07-05 12:44:45 +02:00
parent efa595edb9
commit a0d7f98175
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
3 changed files with 12 additions and 1 deletions

View File

@ -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() 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(); hw->dc_OrderToReset();
} }

View File

@ -73,6 +73,7 @@ public slots:
void startPhysicalLayer(); void startPhysicalLayer();
void stopPhysicalLayer(); void stopPhysicalLayer();
void reboot();
void reset(); void reset();

View File

@ -83,6 +83,7 @@ public slots:
virtual void startPhysicalLayer() = 0; virtual void startPhysicalLayer() = 0;
virtual void stopPhysicalLayer() = 0; virtual void stopPhysicalLayer() = 0;
virtual void reboot() = 0;
virtual void reset() = 0; virtual void reset() = 0;