Added programming mode functions to Target the interface

This commit is contained in:
Nav
2022-05-15 17:41:26 +01:00
parent 89e81129fe
commit cea43044e5

View File

@@ -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