AJA NTV2 SDK  18.1.0.2439
NTV2 SDK 18.1.0.2439
ntv2driverinterface.cpp File Reference

Implements the CNTV2DriverInterface class. More...

#include "ajatypes.h"
#include "ntv2enums.h"
#include "ntv2debug.h"
#include "ntv2driverinterface.h"
#include "ntv2devicefeatures.h"
#include "ntv2nubaccess.h"
#include "ntv2bitfile.h"
#include "ntv2utils.h"
#include "ntv2version.h"
#include "ntv2devicescanner.h"
#include "ajabase/system/debug.h"
#include "ajabase/system/atomic.h"
#include "ajabase/system/systemtime.h"
#include "ajabase/system/process.h"
#include "ajabase/common/common.h"
#include <string.h>
#include <assert.h>
#include <iostream>
#include <sstream>
Include dependency graph for ntv2driverinterface.cpp:

Go to the source code of this file.

Macros

#define INSTP(_p_)   HEX0N(uint64_t(_p_),16)
 
#define DIFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define DIWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define DINOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define DIINFO(__x__)   AJA_sINFO (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define DIDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define ARFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define ARWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define ARNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define ARINFO(__x__)   AJA_sINFO (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define ARDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define VDFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDINFO(__x__)   AJA_sINFO (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDDBUG(__x__)   AJA_sDEBUG (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define RPFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define RPWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define RPNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define RPINFO(__x__)   AJA_sINFO (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define RPDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define PLFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define PLWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define PLNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define PLINFO(__x__)   AJA_sINFO (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define PLDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define KVRegAcquireRefCount   kVRegAcquireReferenceCount
 
#define KVRegReleaseRefCount   kVRegReleaseReferenceCount
 
#define DIDBGX(__x__)
 

Functions

static uint32_t gConstructCount (0)
 
static uint32_t gDestructCount (0)
 
static uint32_t gOpenCount (0)
 
static uint32_t gCloseCount (0)
 
static const ULWord RECURSION_LIMIT (16)
 
static ULWord gRecursionCheck (0)
 
static bool gSharedMode ((0))
 
static bool gOverlappedMode ((0))
 
const uint32_t kAgentAppFcc (((((uint32_t)( 'A'))<< 24)|(((uint32_t)( 'j'))<< 16)|(((uint32_t)( 'a'))<< 8)|(((uint32_t)( 'A'))<< 0)))
 

Detailed Description

Implements the CNTV2DriverInterface class.

Definition in file ntv2driverinterface.cpp.

Macro Definition Documentation

◆ ARDBG

#define ARDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 41 of file ntv2driverinterface.cpp.

◆ ARFAIL

#define ARFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 37 of file ntv2driverinterface.cpp.

◆ ARINFO

#define ARINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 40 of file ntv2driverinterface.cpp.

◆ ARNOTE

#define ARNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 39 of file ntv2driverinterface.cpp.

◆ ARWARN

#define ARWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_AcquireRelease, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 38 of file ntv2driverinterface.cpp.

◆ DIDBG

#define DIDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 35 of file ntv2driverinterface.cpp.

◆ DIDBGX

#define DIDBGX (   __x__)

Definition at line 78 of file ntv2driverinterface.cpp.

◆ DIFAIL

#define DIFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 31 of file ntv2driverinterface.cpp.

◆ DIINFO

#define DIINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 34 of file ntv2driverinterface.cpp.

◆ DINOTE

#define DINOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 33 of file ntv2driverinterface.cpp.

◆ DIWARN

#define DIWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 32 of file ntv2driverinterface.cpp.

◆ INSTP

#define INSTP (   _p_)    HEX0N(uint64_t(_p_),16)

Definition at line 30 of file ntv2driverinterface.cpp.

◆ KVRegAcquireRefCount

#define KVRegAcquireRefCount   kVRegAcquireReferenceCount

Definition at line 65 of file ntv2driverinterface.cpp.

◆ KVRegReleaseRefCount

#define KVRegReleaseRefCount   kVRegReleaseReferenceCount

Definition at line 66 of file ntv2driverinterface.cpp.

◆ PLDBG

#define PLDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 59 of file ntv2driverinterface.cpp.

◆ PLFAIL

#define PLFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 55 of file ntv2driverinterface.cpp.

◆ PLINFO

#define PLINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 58 of file ntv2driverinterface.cpp.

◆ PLNOTE

#define PLNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 57 of file ntv2driverinterface.cpp.

◆ PLWARN

#define PLWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 56 of file ntv2driverinterface.cpp.

◆ RPDBG

#define RPDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 53 of file ntv2driverinterface.cpp.

◆ RPFAIL

#define RPFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 49 of file ntv2driverinterface.cpp.

◆ RPINFO

#define RPINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 52 of file ntv2driverinterface.cpp.

◆ RPNOTE

#define RPNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 51 of file ntv2driverinterface.cpp.

◆ RPWARN

#define RPWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 50 of file ntv2driverinterface.cpp.

◆ VDDBUG

#define VDDBUG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 47 of file ntv2driverinterface.cpp.

◆ VDFAIL

#define VDFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 43 of file ntv2driverinterface.cpp.

◆ VDINFO

#define VDINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 46 of file ntv2driverinterface.cpp.

◆ VDNOTE

#define VDNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 45 of file ntv2driverinterface.cpp.

◆ VDWARN

#define VDWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 44 of file ntv2driverinterface.cpp.

Function Documentation

◆ gCloseCount()

static uint32_t gCloseCount ( 0  )
static

◆ gConstructCount()

static uint32_t gConstructCount ( 0  )
static

◆ gDestructCount()

static uint32_t gDestructCount ( 0  )
static

◆ gOpenCount()

static uint32_t gOpenCount ( 0  )
static

◆ gOverlappedMode()

static bool gOverlappedMode ( (0)  )
static

◆ gRecursionCheck()

static ULWord gRecursionCheck ( 0  )
static

◆ gSharedMode()

static bool gSharedMode ( (0)  )
static

◆ kAgentAppFcc()

const uint32_t kAgentAppFcc ( ((((uint32_t)('A'))<< 24)|(((uint32_t)('j'))<< 16)|(((uint32_t)('a'))<< 8)|(((uint32_t)('A'))<< 0))  )

◆ RECURSION_LIMIT()

static const ULWord RECURSION_LIMIT ( 16  )
static