#include <posix/app/chilictl/flash/ExternalFlasher.hpp>
◆ State
| Enumerator |
|---|
| INIT | Initial state.
|
| ERASE | Erasing flash.
|
| PROGRAM | |
| VERIFY | |
| COMPLETE | Flashing completed successfully.
|
| FAIL | Flashing failed.
|
| INVALID | Class not correctly instantiated.
|
◆ ExternalFlasher()
| ca::ExternalFlasher::ExternalFlasher |
( |
const char * |
aAppFilePath, |
|
|
const DeviceInfo & |
aDeviceInfo |
|
) |
| |
Construct an ExternalFlasher instance.
- Parameters
-
| aAppFilePath | Path to the binary file to be written to the external flash |
| aDeviceInfo | Reference to a deviceInfo struct of the device whose external flash will be erased/programmed/read. |
◆ ~ExternalFlasher()
| ca::ExternalFlasher::~ExternalFlasher |
( |
| ) |
|
◆ GetState()
| State ca::ExternalFlasher::GetState |
( |
| ) |
|
|
inline |
Get the current state of the flasher.
- Returns
- The current state of the flasher instance
◆ IsComplete()
| bool ca::ExternalFlasher::IsComplete |
( |
| ) |
|
Is the instance complete and successful?
- Returns
- True if complete and successful
◆ Process()
| ca_error ca::ExternalFlasher::Process |
( |
| ) |
|
Process the internal state, returning an error if no more processing can be done.
- Return values
-
| CA_ERROR_SUCCESS | Processing successful, not yet complete |
| CA_ERROR_ALREADY | Processing complete and successful |
| CA_ERROR_INVALID_STATE | Processing complete but failed |
The documentation for this class was generated from the following files: