Commander-API  V2.0.0
Commander-API is a C++ API, that parses character based commands.
Commander-API.hpp File Reference
#include "stdint.h"
#include "string.h"
#include "Commander-Settings.hpp"
#include "Commander-IO.hpp"

Go to the source code of this file.

Classes

class  Commander
 Commander class. More...
 
struct  Commander::API_t
 Structure for command data. More...
 

Macros

#define COMMANDER_API_VERSION   (const char*)"2.0.0"
 
#define apiElement(name, desc, func)   { 0, NULL, NULL, (const char*)name, (const char*)desc, func }
 Like STM32 Class Factory. More...
 
#define attachTree(name)   attachTreeFunction( name, sizeof( name ) / sizeof( name[ 0 ] ) )
 This macro simplifies the attachment of the API-tree. More...
 

Macro Definition Documentation

◆ apiElement

#define apiElement (   name,
  desc,
  func 
)    { 0, NULL, NULL, (const char*)name, (const char*)desc, func }

Like STM32 Class Factory.

Arduino detection This macro simplifies the API element creation.

With this macro you can fill the API tree structure faster than the traditional {}-way.

◆ attachTree

#define attachTree (   name)    attachTreeFunction( name, sizeof( name ) / sizeof( name[ 0 ] ) )

This macro simplifies the attachment of the API-tree.

With this macro you can attach the API-tree to the class easier and faster than with attachTreeFunction.

◆ COMMANDER_API_VERSION

#define COMMANDER_API_VERSION   (const char*)"2.0.0"