ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcppShell.h File Reference

Go to the source code of this file.

Classes

struct  ngcpp_shell_t
 
struct  ngcpp_shell_cmd
 

Macros

#define ngcppARG_ON   "on"
 
#define ngcppARG_OFF   "off"
 
#define ngcppCMD_UNPROTECTED   0
 
#define ngcppCMD_PROTECTED   1
 

Typedefs

typedef int(* ngcppCMD_HANDLER) (ngcpp_shell_t *, char *, FILE *, char *)
 

Functions

int ngcppHandleAbort (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleQuit (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleExit (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleTerm (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleHelp (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleStatus (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleStart (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleStop (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandlePause (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleContinue (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandlePset (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandlePget (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandlePstat (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandlePsync (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleConf (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleDynCmd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleRmode (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleDataPath (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleKill (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleConnect (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleVerbose (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleTime (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleSimTime (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleSimDelay (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleMemSet (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleMemClose (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleMemSync (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleFlush (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleEnd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleRstCnt (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleForceCmd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleProtectCmd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleFileBase (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleFilePath (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleUsrCmd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleChipOff (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleChan (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleTestF (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleTimeout (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleIoRead (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHandleIoWrite (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms)
 
int ngcppHelp (FILE *rs, char *cmd)
 
int ngcppShell (void *argp)
 

Detailed Description

Author
Joerg Stegmeier jsteg.nosp@m.mei@.nosp@m.eso.o.nosp@m.rg

Macro Definition Documentation

◆ ngcppARG_OFF

#define ngcppARG_OFF   "off"

Argument: OFF

◆ ngcppARG_ON

#define ngcppARG_ON   "on"

Argument: ON

◆ ngcppCMD_PROTECTED

#define ngcppCMD_PROTECTED   1

Protected command

◆ ngcppCMD_UNPROTECTED

#define ngcppCMD_UNPROTECTED   0

Unprotected command

Typedef Documentation

◆ ngcppCMD_HANDLER

typedef int(* ngcppCMD_HANDLER) (ngcpp_shell_t *, char *, FILE *, char *)

Command handler type

Function Documentation

◆ ngcppHandleAbort()

int ngcppHandleAbort ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle abort command.

◆ ngcppHandleChan()

int ngcppHandleChan ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle channel-selection command.

◆ ngcppHandleChipOff()

int ngcppHandleChipOff ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle chip-offset command.

◆ ngcppHandleConf()

int ngcppHandleConf ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle get-config command.

◆ ngcppHandleConnect()

int ngcppHandleConnect ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle connect command.

◆ ngcppHandleContinue()

int ngcppHandleContinue ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle continue command.

◆ ngcppHandleDataPath()

int ngcppHandleDataPath ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle data-path command.

◆ ngcppHandleDynCmd()

int ngcppHandleDynCmd ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle dynamic command.

◆ ngcppHandleEnd()

int ngcppHandleEnd ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle end command.

◆ ngcppHandleExit()

int ngcppHandleExit ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle exit command.

◆ ngcppHandleFileBase()

int ngcppHandleFileBase ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle file-basename command.

◆ ngcppHandleFilePath()

int ngcppHandleFilePath ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle file-path command.

◆ ngcppHandleFlush()

int ngcppHandleFlush ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle flush command.

◆ ngcppHandleForceCmd()

int ngcppHandleForceCmd ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle force command.

◆ ngcppHandleHelp()

int ngcppHandleHelp ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle help command.

◆ ngcppHandleIoRead()

int ngcppHandleIoRead ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle io-read command.

◆ ngcppHandleIoWrite()

int ngcppHandleIoWrite ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle io-write command.

◆ ngcppHandleKill()

int ngcppHandleKill ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle kill command.

◆ ngcppHandleMemClose()

int ngcppHandleMemClose ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle memory-close command.

◆ ngcppHandleMemSet()

int ngcppHandleMemSet ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle memory-set command.

◆ ngcppHandleMemSync()

int ngcppHandleMemSync ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle memory-sync command.

◆ ngcppHandlePause()

int ngcppHandlePause ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle pause command.

◆ ngcppHandlePget()

int ngcppHandlePget ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle get-parameter command.

◆ ngcppHandleProtectCmd()

int ngcppHandleProtectCmd ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle protect command.

◆ ngcppHandlePset()

int ngcppHandlePset ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle parameter-set command.

◆ ngcppHandlePstat()

int ngcppHandlePstat ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle parameter status command.

◆ ngcppHandlePsync()

int ngcppHandlePsync ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle parameter-sync command.

◆ ngcppHandleQuit()

int ngcppHandleQuit ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle quit command.

◆ ngcppHandleRmode()

int ngcppHandleRmode ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle read-mode command.

◆ ngcppHandleRstCnt()

int ngcppHandleRstCnt ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle reset-counters command.

◆ ngcppHandleSimDelay()

int ngcppHandleSimDelay ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle sim-delay command.

◆ ngcppHandleSimTime()

int ngcppHandleSimTime ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle sim-time command.

◆ ngcppHandleStart()

int ngcppHandleStart ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle start command.

◆ ngcppHandleStatus()

int ngcppHandleStatus ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle status command.

◆ ngcppHandleStop()

int ngcppHandleStop ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle stop command.

◆ ngcppHandleTerm()

int ngcppHandleTerm ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle term command.

◆ ngcppHandleTestF()

int ngcppHandleTestF ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle test command.

◆ ngcppHandleTime()

int ngcppHandleTime ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle time command.

◆ ngcppHandleTimeout()

int ngcppHandleTimeout ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle timeout command.

◆ ngcppHandleUsrCmd()

int ngcppHandleUsrCmd ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle user command.

◆ ngcppHandleVerbose()

int ngcppHandleVerbose ( ngcpp_shell_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

Handle verbose command.

◆ ngcppHelp()

int ngcppHelp ( FILE * rs,
char * cmd )

Help function

◆ ngcppShell()

int ngcppShell ( void * argp)

Main shell