#include <stdio.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <signal.h>#include <errno.h>#include <unistd.h>#include <sys/stat.h>#include "ngcppShell.h"Functions | |
| int | main (int argc, char *argv[]) |
| int | ngcppShell (void *argp) |
| int | ngcppHelp (FILE *rs, char *cmd) |
| int | ngcppHandleExit (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleQuit (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleAbort (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleTerm (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 | ngcppHandleHelp (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleStatus (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleConf (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 | ngcppHandleEnd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleRstCnt (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleFlush (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 | ngcppHandleDynCmd (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleTime (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleVerbose (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 | ngcppHandleChipOff (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleTimeout (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleChan (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleUsrCmd (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 | ngcppHandleMemSet (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleTestF (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleConnect (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 | ngcppHandleDataPath (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleKill (ngcpp_shell_t *stat, char *cmdLine, FILE *rs, char *erms) |
| int | ngcppHandleRmode (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 main | ( | int | argc, |
| char * | argv[] ) |
| int ngcppHandleAbort | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle abort command.
| int ngcppHandleChan | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle channel-selection command.
| int ngcppHandleChipOff | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle chip-offset command.
| int ngcppHandleConf | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle get-config command.
| int ngcppHandleConnect | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle connect command.
| int ngcppHandleContinue | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle continue command.
| int ngcppHandleDataPath | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle data-path command.
| int ngcppHandleDynCmd | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle dynamic command.
| int ngcppHandleEnd | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle end command.
| int ngcppHandleExit | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle exit command.
| int ngcppHandleFileBase | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle file-basename command.
| int ngcppHandleFilePath | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle file-path command.
| int ngcppHandleFlush | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle flush command.
| int ngcppHandleForceCmd | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle force command.
| int ngcppHandleHelp | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle help command.
| int ngcppHandleIoRead | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle io-read command.
| int ngcppHandleIoWrite | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle io-write command.
| int ngcppHandleKill | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle kill command.
| int ngcppHandleMemClose | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle memory-close command.
| int ngcppHandleMemSet | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle memory-set command.
| int ngcppHandleMemSync | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle memory-sync command.
| int ngcppHandlePause | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle pause command.
| int ngcppHandlePget | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle get-parameter command.
| int ngcppHandleProtectCmd | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle protect command.
| int ngcppHandlePset | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle parameter-set command.
| int ngcppHandlePstat | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle parameter status command.
| int ngcppHandlePsync | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle parameter-sync command.
| int ngcppHandleQuit | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle quit command.
| int ngcppHandleRmode | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle read-mode command.
| int ngcppHandleRstCnt | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle reset-counters command.
| int ngcppHandleSimDelay | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle sim-delay command.
| int ngcppHandleSimTime | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle sim-time command.
| int ngcppHandleStart | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle start command.
| int ngcppHandleStatus | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle status command.
| int ngcppHandleStop | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle stop command.
| int ngcppHandleTerm | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle term command.
| int ngcppHandleTestF | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle test command.
| int ngcppHandleTime | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle time command.
| int ngcppHandleTimeout | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle timeout command.
| int ngcppHandleUsrCmd | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle user command.
| int ngcppHandleVerbose | ( | ngcpp_shell_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
Handle verbose command.
| int ngcppHelp | ( | FILE * | rs, |
| char * | cmd ) |
Help function
| int ngcppShell | ( | void * | argp | ) |
Main shell