2022-03-16 17:12:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
|
|
#include "src/DebugToolDrivers/TargetInterfaces/TargetPowerManagementInterface.hpp"
|
|
|
|
|
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace DebugToolDrivers::Protocols::CmsisDap::Edbg
|
2022-03-16 17:12:52 +00:00
|
|
|
{
|
|
|
|
|
class EdbgTargetPowerManagementInterface: public TargetInterfaces::TargetPowerManagementInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
2022-10-01 16:50:57 +01:00
|
|
|
explicit EdbgTargetPowerManagementInterface(EdbgInterface* edbgInterface);
|
2022-03-16 17:12:52 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Issues a Set Parameter command to the EDBG tool, to enable the target power.
|
|
|
|
|
*/
|
|
|
|
|
void enableTargetPower() override;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Issues a Set Parameter command to the EDBG tool, to disable the target power.
|
|
|
|
|
*/
|
|
|
|
|
void disableTargetPower() override;
|
|
|
|
|
|
|
|
|
|
private:
|
2022-10-01 16:50:57 +01:00
|
|
|
EdbgInterface* edbgInterface;
|
2022-03-16 17:12:52 +00:00
|
|
|
};
|
|
|
|
|
}
|