![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
Contains the callback function for progress and abort phase. More...
#include <Command.h>
Public Member Functions | |
| Progress () | |
| Default constructor. | |
| Progress (void(*callback)(int, int, int), bool *abortPhase) | |
| Constructor with initial callback. | |
| ~Progress () | |
| Default destructor. | |
| void | progressCallback (int percentage) |
| execute the progress callback function. More... | |
| bool | abortPhase (void) |
| Check whether the data phase is canceled. | |
| void | registerCallback (void(*callback)(int, int, int), bool *abortPhase) |
Public Attributes | |
| int | m_segmentIndex |
| Index of data segment in progressing. | |
| int | m_segmentCount |
| The number of data segments. | |
Contains the callback function for progress and abort phase.
|
inline |
execute the progress callback function.
| percentage | the percentage of current executed progress. |
|
inline |
initialized the progress callback function and the variable of controlling data phase.
| callback | The progress callback function. |
| abortPhase | The pointer pointing to a variable controlling whether abort current data phase. |