Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otCommandParser.h File Reference

Command Parser - This library implements a command interpreter. More...

#include "otdefs.h"
#include "otFILE.h"

Defines

#define ARGV(a)   _str_field(Argv, a)
#define PARID(a)   _toupper(_str_field(Argv, (a))[0])
#define PAR(a)   (char *) (&(_str_field(Argv, (a))[1]))
#define PARx(a)   _str_field(_tmpBuff, (a))
#define PARy(a)   _str_field(&_tmpBuff[128], (a))

Typedefs

typedef S32(* _procCallback )(S32 argc, char *argv)
 Function prototype for command callback.


Detailed Description

Version:
1.0.0
Author:
Manuele Turini

Define Documentation

#define ARGV  )     _str_field(Argv, a)
 

Copyright 2017-2020 Officina Turini
This file is part of otStudio project.

otStudio is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.n
otStudio is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with otStudio. If not, see <http://www.gnu.org/licenses/>.

#define PAR  )     (char *) (&(_str_field(Argv, (a))[1]))
 

#define PARID  )     _toupper(_str_field(Argv, (a))[0])
 

#define PARx  )     _str_field(_tmpBuff, (a))
 

#define PARy  )     _str_field(&_tmpBuff[128], (a))
 

footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0