ACQ2XX_API
Defines | Functions | Variables
acq2sh.cpp File Reference

implementation of acq2sh "remote shell" using API. More...

#include "local.h"
#include "acq2xx_api.h"
#include "acq_transport.h"
#include "popt.h"

Go to the source code of this file.

Defines

#define MAXBUF   4096

Functions

int main (int argc, const char **argv)

Variables

int acq200_debug
char * device
poptContext opt_context
char command [MAXBUF] = {}
char response [MAXBUF] = {}

Detailed Description

implementation of acq2sh "remote shell" using API.

acq2sh can run any shell command on the target device WARNING: output is limited to 4096 bytes, for longer outputs, consider saving to a file, then transferring the file

Definition in file acq2sh.cpp.


Define Documentation

#define MAXBUF   4096

Definition at line 37 of file acq2sh.cpp.

Referenced by main().


Function Documentation

int main ( int  argc,
const char **  argv 
)

Variable Documentation

Definition at line 33 of file acq2sh.cpp.

char command[MAXBUF] = {}
char* device

Definition at line 34 of file acq2sh.cpp.

poptContext opt_context

Definition at line 35 of file acq2sh.cpp.

Referenced by main(), and processOpts().

char response[MAXBUF] = {}

Definition at line 39 of file acq2sh.cpp.

Referenced by Acq2xx::getNumSamples(), and main().