Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <posix/app/chilictl/reboot/Reboot.hpp>
Public Types | |
enum | State { INIT , FACTORY_RESET , REBOOT , COMPLETE , FAIL } |
Public Member Functions | |
Reboot () | |
~Reboot () | |
ca_error | Process (int argc, const char *argv[]) |
Run the command, processing the arguments passed in argv. More... | |
Public Member Functions inherited from ca::Command | |
const char * | GetHelpString (void) |
Get the help string for this command. More... | |
const char * | GetCommandName (void) |
Get the command name of this command. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ca::Command | |
Command (const char *aCommandName, const char *aHelpString) | |
~Command () | |
Protected Attributes inherited from ca::Command | |
const char * | mCommandName |
const char * | mHelpString |
enum ca::Reboot::State |
Enumerator | |
---|---|
INIT | Initial state. |
FACTORY_RESET | Erasing Data Flash region. |
REBOOT | Rebooting the device. |
COMPLETE | Flashing completed successfully. |
FAIL | Flashing failed. |
ca::Reboot::Reboot | ( | ) |
ca::Reboot::~Reboot | ( | ) |
|
virtual |
Run the command, processing the arguments passed in argv.
Argv contains the arguments that followed the command name, including the command name as arg0.
argc | Argument Count |
argv | Argument Vector (of length argc) |
CA_ERROR_SUCCESS | Successful processing |
CA_ERROR_INVALID_ARGS | Invalid arguments passed to function |
Reimplemented from ca::Command.