OS
v1.7.5
Documentation
|
API for the AT Command Line Interface extension. More...
Namespaces | |
namespace | qOS::cli |
AT command line interfaces. | |
Classes | |
class | qOS::cli::handler_t |
The command argument with all the regarding information of the incoming AT command. More... | |
class | qOS::cli::command |
An AT-Command object. More... | |
class | qOS::commandLineInterface |
An AT Command Line Interface (CLI) object. More... | |
Typedefs | |
using | qOS::cli::commandCallback_t |
Pointer to function : An AT-Command callback. | |
using | qOS::cli::options_t |
A typedef that holds the options for an AT-Command object. | |
Enumerations | |
enum | qOS::cli::response : int16_t { qOS::cli::ERROR , qOS::cli::NOT_ALLOWED , qOS::cli::NO_RESPONSE , qOS::cli::OK , qOS::cli::DEVID , qOS::cli::NOT_FOUND , qOS::cli::OUTPUT_RESPONSE } |
an enumeration to define the possible values that can be returned from the callback of a command. More... | |
enum | qOS::cli::commandType : uint16_t { qOS::cli::UNDEF , qOS::cli::PARA , qOS::cli::TEST , qOS::cli::READ , qOS::cli::ACT } |
An enum to describe the available AT command types. More... | |
Functions | |
constexpr response | qOS::cli::ERROR_CODE (int16_t code) |
Used to indicate an error code as return value inside a command-callback. This code is defined by the application writer and should be a value between 1 and 32766 . | |
bool | qOS::core::add (task &Task, commandLineInterface &cli, const priority_t p, void *arg=nullptr) noexcept |
Add a task to the scheduling scheme running an AT Command Line Interface. Task will be scheduled as event-triggered task. The parser address will be stored in the event_t::TaskData storage-Pointer. | |
API for the AT Command Line Interface extension.
Pointer to function : An AT-Command callback.
Example :
h | A reference to the CLI command handler instance |
using qOS::cli::options_t |
A typedef that holds the options for an AT-Command object.
enum qOS::cli::commandType : uint16_t |
An enum to describe the available AT command types.
enum qOS::cli::response : int16_t |
|
noexcept |
Add a task to the scheduling scheme running an AT Command Line Interface. Task will be scheduled as event-triggered task. The parser address will be stored in the event_t::TaskData storage-Pointer.
[in] | Task | The task node. |
[in] | cli | The Command Line Inteface instance. |
[in] | p | Task priority Value. [0(min) - Q_PRIORITY_LEVELS (max)] |
[in] | arg | The task arguments. |
true
on success, otherwise returns false
.
|
constexpr |
Used to indicate an error code as return value inside a command-callback. This code is defined by the application writer and should be a value between 1
and 32766
.
For example, a return value of cli::ERROR_CODE(15)
, will print out the string ERROR:15
.