AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
ntv2konaflashprogram.cpp File Reference

Implementation of CNTV2KonaFlashProgram class. More...

#include "ntv2konaflashprogram.h"
#include "ntv2endian.h"
#include "ntv2registersmb.h"
#include "ajabase/system/debug.h"
#include "ajabase/system/systemtime.h"
#include "ajabase/common/common.h"
#include <ctime>
Include dependency graph for ntv2konaflashprogram.cpp:

Go to the source code of this file.

Macros

#define ENUM_CASE_RETURN_VAL_OR_ENUM_STR(condition, retail_name, enum_name)   case(enum_name): return condition ? retail_name : #enum_name
 
#define KFPDBUG(__x__)   AJA_sDEBUG (AJA_DebugUnit_Firmware, AJAFUNC << ": " << __x__)
 
#define KFPWARN(__x__)   AJA_sWARNING (AJA_DebugUnit_Firmware, AJAFUNC << ": " << __x__)
 
#define KFPERR(__x__)   do {ostringstream oss; oss << AJAFUNC << ": " << __x__; cerr << "## ERROR: " << oss.str() << endl; AJA_sERROR (AJA_DebugUnit_Firmware, oss.str());} while(false)
 
#define KFPNOTE(__x__)   do {ostringstream oss; oss << AJAFUNC << ": " << __x__; if (!_bQuiet) cout << "## NOTE: " << oss.str() << endl; AJA_sNOTICE (AJA_DebugUnit_Firmware, oss.str());} while(false)
 

Functions

static bool getFileSize (const string &fileName, size_t &outSizeBytes)
 

Variables

static CNTV2FlashProgress gNullUpdater
 

Detailed Description

Implementation of CNTV2KonaFlashProgram class.

Definition in file ntv2konaflashprogram.cpp.

Macro Definition Documentation

◆ ENUM_CASE_RETURN_VAL_OR_ENUM_STR

#define ENUM_CASE_RETURN_VAL_OR_ENUM_STR (   condition,
  retail_name,
  enum_name 
)    case(enum_name): return condition ? retail_name : #enum_name

Definition at line 21 of file ntv2konaflashprogram.cpp.

◆ KFPDBUG

#define KFPDBUG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_Firmware, AJAFUNC << ": " << __x__)

Definition at line 26 of file ntv2konaflashprogram.cpp.

◆ KFPERR

#define KFPERR (   __x__)    do {ostringstream oss; oss << AJAFUNC << ": " << __x__; cerr << "## ERROR: " << oss.str() << endl; AJA_sERROR (AJA_DebugUnit_Firmware, oss.str());} while(false)

Definition at line 28 of file ntv2konaflashprogram.cpp.

◆ KFPNOTE

#define KFPNOTE (   __x__)    do {ostringstream oss; oss << AJAFUNC << ": " << __x__; if (!_bQuiet) cout << "## NOTE: " << oss.str() << endl; AJA_sNOTICE (AJA_DebugUnit_Firmware, oss.str());} while(false)

Definition at line 29 of file ntv2konaflashprogram.cpp.

◆ KFPWARN

#define KFPWARN (   __x__)    AJA_sWARNING (AJA_DebugUnit_Firmware, AJAFUNC << ": " << __x__)

Definition at line 27 of file ntv2konaflashprogram.cpp.

Function Documentation

◆ getFileSize()

static bool getFileSize ( const string &  fileName,
size_t &  outSizeBytes 
)
static

Definition at line 1971 of file ntv2konaflashprogram.cpp.

Variable Documentation

◆ gNullUpdater

CNTV2FlashProgress gNullUpdater
static

Definition at line 40 of file ntv2konaflashprogram.cpp.