Macros | Functions | Variables
cltool.cpp File Reference
#include "cltool.h"
#include "ISDataMappings.h"
Include dependency graph for cltool.cpp:

Go to the source code of this file.

Macros

#define CL_DEFAULT_BAUD_RATE   IS_COM_BAUDRATE_DEFAULT
 
#define CL_DEFAULT_BOOTLOAD_VERIFY   false
 
#define CL_DEFAULT_COM_PORT   "*"
 
#define CL_DEFAULT_DISPLAY_MODE   cInertialSenseDisplay::DMODE_PRETTY
 
#define CL_DEFAULT_ENABLE_LOGGING   false
 
#define CL_DEFAULT_LOG_TYPE   "dat"
 
#define CL_DEFAULT_LOGS_DIRECTORY   DEFAULT_LOGS_DIRECTORY
 
#define CL_DEFAULT_MAX_LOG_FILE_SIZE   1024 * 1024 * 5
 
#define CL_DEFAULT_MAX_LOG_SPACE_PERCENT   0.5f
 
#define CL_DEFAULT_REPLAY_SPEED   1.0
 

Functions

void cltool_outputHelp ()
 
void cltool_outputUsage ()
 
bool cltool_parseCommandLine (int argc, char *argv[])
 
bool cltool_replayDataLog ()
 
int cltool_serialPortSendComManager (CMHANDLE cmHandle, int pHandle, buffer_t *bufferToSend)
 
bool cltool_setupLogger (InertialSense &inertialSenseInterface)
 
bool cltool_updateEvbFlashConfig (InertialSense &inertialSenseInterface, string flashConfigString)
 
bool cltool_updateFlashConfig (InertialSense &inertialSenseInterface, string flashConfigString)
 
static bool startsWith (const char *str, const char *pre)
 

Variables

cmd_options_t g_commandLineOptions
 
cInertialSenseDisplay g_inertialSenseDisplay
 
serial_port_t g_serialPort
 

Macro Definition Documentation

◆ CL_DEFAULT_BAUD_RATE

#define CL_DEFAULT_BAUD_RATE   IS_COM_BAUDRATE_DEFAULT

Definition at line 52 of file cltool.cpp.

◆ CL_DEFAULT_BOOTLOAD_VERIFY

#define CL_DEFAULT_BOOTLOAD_VERIFY   false

Definition at line 61 of file cltool.cpp.

◆ CL_DEFAULT_COM_PORT

#define CL_DEFAULT_COM_PORT   "*"

Definition at line 53 of file cltool.cpp.

◆ CL_DEFAULT_DISPLAY_MODE

#define CL_DEFAULT_DISPLAY_MODE   cInertialSenseDisplay::DMODE_PRETTY

Definition at line 54 of file cltool.cpp.

◆ CL_DEFAULT_ENABLE_LOGGING

#define CL_DEFAULT_ENABLE_LOGGING   false

Definition at line 57 of file cltool.cpp.

◆ CL_DEFAULT_LOG_TYPE

#define CL_DEFAULT_LOG_TYPE   "dat"

Definition at line 55 of file cltool.cpp.

◆ CL_DEFAULT_LOGS_DIRECTORY

#define CL_DEFAULT_LOGS_DIRECTORY   DEFAULT_LOGS_DIRECTORY

Definition at line 56 of file cltool.cpp.

◆ CL_DEFAULT_MAX_LOG_FILE_SIZE

#define CL_DEFAULT_MAX_LOG_FILE_SIZE   1024 * 1024 * 5

Definition at line 58 of file cltool.cpp.

◆ CL_DEFAULT_MAX_LOG_SPACE_PERCENT

#define CL_DEFAULT_MAX_LOG_SPACE_PERCENT   0.5f

Definition at line 59 of file cltool.cpp.

◆ CL_DEFAULT_REPLAY_SPEED

#define CL_DEFAULT_REPLAY_SPEED   1.0

Definition at line 60 of file cltool.cpp.

Function Documentation

◆ cltool_outputHelp()

void cltool_outputHelp ( )

Definition at line 543 of file cltool.cpp.

◆ cltool_outputUsage()

void cltool_outputUsage ( )

Definition at line 456 of file cltool.cpp.

◆ cltool_parseCommandLine()

bool cltool_parseCommandLine ( int  argc,
char *  argv[] 
)

Definition at line 63 of file cltool.cpp.

◆ cltool_replayDataLog()

bool cltool_replayDataLog ( )

Definition at line 424 of file cltool.cpp.

◆ cltool_serialPortSendComManager()

int cltool_serialPortSendComManager ( CMHANDLE  cmHandle,
int  pHandle,
buffer_t bufferToSend 
)

Definition at line 20 of file cltool.cpp.

◆ cltool_setupLogger()

bool cltool_setupLogger ( InertialSense inertialSenseInterface)

Definition at line 27 of file cltool.cpp.

◆ cltool_updateEvbFlashConfig()

bool cltool_updateEvbFlashConfig ( InertialSense inertialSenseInterface,
string  flashConfigString 
)

Definition at line 598 of file cltool.cpp.

◆ cltool_updateFlashConfig()

bool cltool_updateFlashConfig ( InertialSense inertialSenseInterface,
string  flashConfigString 
)

Definition at line 548 of file cltool.cpp.

◆ startsWith()

static bool startsWith ( const char *  str,
const char *  pre 
)
static

Definition at line 46 of file cltool.cpp.

Variable Documentation

◆ g_commandLineOptions

cmd_options_t g_commandLineOptions

Definition at line 16 of file cltool.cpp.

◆ g_inertialSenseDisplay

cInertialSenseDisplay g_inertialSenseDisplay

Definition at line 18 of file cltool.cpp.

◆ g_serialPort

serial_port_t g_serialPort

Definition at line 17 of file cltool.cpp.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58