From cea43044e5044a795b598a1aeaf665c5c6b807e3 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 15 May 2022 17:41:26 +0100 Subject: [PATCH] Added programming mode functions to Target the interface --- src/Targets/Target.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Targets/Target.hpp b/src/Targets/Target.hpp index aa136db3..aa163216 100644 --- a/src/Targets/Target.hpp +++ b/src/Targets/Target.hpp @@ -308,6 +308,23 @@ namespace Bloom::Targets const TargetPinState& state ) = 0; + /** + * Should prepare the target for programming. + */ + virtual void enableProgrammingMode() = 0; + + /** + * Should prepare the target for resuming debugging operations after programming. + */ + virtual void disableProgrammingMode() = 0; + + /** + * Should return true if programming is currently enabled. Otherwise false. + * + * @return + */ + virtual bool programmingModeEnabled() = 0; + protected: /** * Target related configuration provided by the user. This is passed in via the first stage of target