Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
ca::Reboot Class Reference

#include <posix/app/chilictl/reboot/Reboot.hpp>

Inheritance diagram for ca::Reboot:
Collaboration diagram for ca::Reboot:

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
 

Member Enumeration Documentation

◆ State

Enumerator
INIT 

Initial state.

FACTORY_RESET 

Erasing Data Flash region.

REBOOT 

Rebooting the device.

COMPLETE 

Flashing completed successfully.

FAIL 

Flashing failed.

Constructor & Destructor Documentation

◆ Reboot()

ca::Reboot::Reboot ( )

◆ ~Reboot()

ca::Reboot::~Reboot ( )

Member Function Documentation

◆ Process()

ca_error ca::Reboot::Process ( int  argc,
const char *  argv[] 
)
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.

Parameters
argcArgument Count
argvArgument Vector (of length argc)
Returns
ca_error value
Return values
CA_ERROR_SUCCESSSuccessful processing
CA_ERROR_INVALID_ARGSInvalid arguments passed to function

Reimplemented from ca::Command.


The documentation for this class was generated from the following files: