gccDppConsole Test C++ SDK  20170920
DPP C++ Console Demonstration
Defines | Functions | Variables
gccDppConsole.cpp File Reference
#include <iostream>
#include "ConsoleHelper.h"
#include "stringex.h"
#include <unistd.h>
Include dependency graph for gccDppConsole.cpp:

Go to the source code of this file.

Defines

#define Sleep(x)   usleep((x)*1000)
#define _getch   getchar
#define CLEAR_TERM   "clear"

Functions

void ConnectToDefaultDPP ()
void GetDppStatus ()
void ReadDppConfigurationFromHardware (bool bDisplayCfg)
void DisplayPresets ()
void SendPresetAcquisitionTime (string strPRET)
void AcquireSpectrum ()
void ReadConfigFile ()
bool SendCommandString (string strCMD)
std::string ShortenCfgCmds (std::string strCfgIn)
bool SendConfigFileToDpp (string strFilename)
void CloseConnection ()
void SaveSpectrumConfig ()
void SaveSpectrumFile ()
int main (int argc, char *argv[])

Variables

CConsoleHelper chdpp
bool bRunSpectrumTest = false
bool bRunConfigurationTest = false
bool bHaveStatusResponse = false
bool bHaveConfigFromHW = false

Define Documentation

#define _getch   getchar

Definition at line 16 of file gccDppConsole.cpp.

#define CLEAR_TERM   "clear"

Definition at line 17 of file gccDppConsole.cpp.

#define Sleep (   x)    usleep((x)*1000)

Definition at line 15 of file gccDppConsole.cpp.


Function Documentation

void AcquireSpectrum ( )

Definition at line 150 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CloseConnection ( )

Definition at line 286 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 28 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DisplayPresets ( )

Definition at line 114 of file gccDppConsole.cpp.

Here is the caller graph for this function:

void GetDppStatus ( )

Definition at line 48 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 319 of file gccDppConsole.cpp.

Here is the call graph for this function:

void ReadConfigFile ( )

Definition at line 192 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ReadDppConfigurationFromHardware ( bool  bDisplayCfg)

Definition at line 79 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 297 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SaveSpectrumFile ( )

Definition at line 306 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool SendCommandString ( string  strCMD)

Definition at line 207 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool SendConfigFileToDpp ( string  strFilename)

Definition at line 237 of file gccDppConsole.cpp.

Here is the call graph for this function:

void SendPresetAcquisitionTime ( string  strPRET)

Definition at line 127 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string ShortenCfgCmds ( std::string  strCfgIn)

Definition at line 221 of file gccDppConsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

bool bHaveConfigFromHW = false

Definition at line 24 of file gccDppConsole.cpp.

bool bHaveStatusResponse = false

Definition at line 23 of file gccDppConsole.cpp.

bool bRunConfigurationTest = false

Definition at line 22 of file gccDppConsole.cpp.

bool bRunSpectrumTest = false

Definition at line 21 of file gccDppConsole.cpp.

Definition at line 20 of file gccDppConsole.cpp.