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

Implementation of CNTV2WinDriverInterface. More...

#include "ntv2windriverinterface.h"
#include "ntv2winpublicinterface.h"
#include "ntv2publicinterface.h"
#include "ntv2nubtypes.h"
#include "ntv2debug.h"
#include "winioctl.h"
#include "ajabase/system/debug.h"
#include <sstream>
#include <ntv2devicefeatures.h>
Include dependency graph for ntv2windriverinterface.cpp:

Go to the source code of this file.

Macros

#define HEX2(__x__)   "0x" << hex << setw(2) << setfill('0') << (0xFF & uint8_t (__x__)) << dec
 
#define HEX4(__x__)   "0x" << hex << setw(4) << setfill('0') << (0xFFFF & uint16_t(__x__)) << dec
 
#define HEX8(__x__)   "0x" << hex << setw(8) << setfill('0') << (0xFFFFFFFF & uint32_t(__x__)) << dec
 
#define HEX16(__x__)   "0x" << hex << setw(16) << setfill('0') << uint64_t(__x__) << dec
 
#define KR(_kr_)   "kernResult=" << HEX8(_kr_) << "(" << GetKernErrStr(_kr_) << ")"
 
#define INSTP(_p_)   HEX16(uint64_t(_p_))
 
#define WDIFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define WDIWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define WDINOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define WDIINFO(__x__)   AJA_sINFO (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define WDIDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define AJAVIDEO_NTV2_PROPSET   DEFINE_GUIDNAMED(AJAVIDEO_NTV2_PROPSET)
 

Functions

static std::string GetKernErrStr (const DWORD inError)
 

Variables

static const uint32_t sIntEnumToStatKeys []
 

Detailed Description

Implementation of CNTV2WinDriverInterface.

Definition in file ntv2windriverinterface.cpp.

Macro Definition Documentation

◆ AJAVIDEO_NTV2_PROPSET

#define AJAVIDEO_NTV2_PROPSET   DEFINE_GUIDNAMED(AJAVIDEO_NTV2_PROPSET)

◆ HEX16

#define HEX16 (   __x__)    "0x" << hex << setw(16) << setfill('0') << uint64_t(__x__) << dec

Definition at line 136 of file ntv2windriverinterface.cpp.

◆ HEX2

#define HEX2 (   __x__)    "0x" << hex << setw(2) << setfill('0') << (0xFF & uint8_t (__x__)) << dec

Definition at line 133 of file ntv2windriverinterface.cpp.

◆ HEX4

#define HEX4 (   __x__)    "0x" << hex << setw(4) << setfill('0') << (0xFFFF & uint16_t(__x__)) << dec

Definition at line 134 of file ntv2windriverinterface.cpp.

◆ HEX8

#define HEX8 (   __x__)    "0x" << hex << setw(8) << setfill('0') << (0xFFFFFFFF & uint32_t(__x__)) << dec

Definition at line 135 of file ntv2windriverinterface.cpp.

◆ INSTP

#define INSTP (   _p_)    HEX16(uint64_t(_p_))

Definition at line 138 of file ntv2windriverinterface.cpp.

◆ KR

#define KR (   _kr_)    "kernResult=" << HEX8(_kr_) << "(" << GetKernErrStr(_kr_) << ")"

Definition at line 137 of file ntv2windriverinterface.cpp.

◆ WDIDBG

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

Definition at line 144 of file ntv2windriverinterface.cpp.

◆ WDIFAIL

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

Definition at line 140 of file ntv2windriverinterface.cpp.

◆ WDIINFO

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

Definition at line 143 of file ntv2windriverinterface.cpp.

◆ WDINOTE

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

Definition at line 142 of file ntv2windriverinterface.cpp.

◆ WDIWARN

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

Definition at line 141 of file ntv2windriverinterface.cpp.

Function Documentation

◆ GetKernErrStr()

static std::string GetKernErrStr ( const DWORD  inError)
static

Definition at line 112 of file ntv2windriverinterface.cpp.

Variable Documentation

◆ sIntEnumToStatKeys

const uint32_t sIntEnumToStatKeys[]
static
Initial value:

Definition at line 497 of file ntv2windriverinterface.cpp.

AJA_DebugStat_WaitForInterruptOthers
@ AJA_DebugStat_WaitForInterruptOthers
Definition: debugshare.h:239
AJA_DebugStat_WaitForInterruptIn2
@ AJA_DebugStat_WaitForInterruptIn2
Definition: debugshare.h:227
AJA_DebugStat_WaitForInterruptIn8
@ AJA_DebugStat_WaitForInterruptIn8
Definition: debugshare.h:233
AJA_DebugStat_WaitForInterruptUartTx1
@ AJA_DebugStat_WaitForInterruptUartTx1
Definition: debugshare.h:236
AJA_DebugStat_WaitForInterruptUartTx2
@ AJA_DebugStat_WaitForInterruptUartTx2
Definition: debugshare.h:238
AJA_DebugStat_WaitForInterruptUartRx2
@ AJA_DebugStat_WaitForInterruptUartRx2
Definition: debugshare.h:237
AJA_DebugStat_WaitForInterruptIn7
@ AJA_DebugStat_WaitForInterruptIn7
Definition: debugshare.h:232
AJA_DebugStat_WaitForInterruptIn6
@ AJA_DebugStat_WaitForInterruptIn6
Definition: debugshare.h:231
AJA_DebugStat_WaitForInterruptUartRx1
@ AJA_DebugStat_WaitForInterruptUartRx1
Definition: debugshare.h:235
AJA_DebugStat_WaitForInterruptOut1
@ AJA_DebugStat_WaitForInterruptOut1
Definition: debugshare.h:234
AJA_DebugStat_WaitForInterruptIn1
@ AJA_DebugStat_WaitForInterruptIn1
Definition: debugshare.h:226
AJA_DebugStat_WaitForInterruptIn3
@ AJA_DebugStat_WaitForInterruptIn3
Definition: debugshare.h:228
AJA_DebugStat_WaitForInterruptIn4
@ AJA_DebugStat_WaitForInterruptIn4
Definition: debugshare.h:229
AJA_DebugStat_WaitForInterruptIn5
@ AJA_DebugStat_WaitForInterruptIn5
Definition: debugshare.h:230