AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
ntv2baremetaldriverinterface.cpp File Reference

Implementation of the CNTV2BareMetalDriverInterface class. More...

Include dependency graph for ntv2baremetaldriverinterface.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 INSTP(_p_)   HEX16(uint64_t(_p_))
 
#define LDIFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define LDIWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define LDINOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define LDIINFO(__x__)   AJA_sINFO (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define LDIDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define AsFrameStampStructPtr(_p_)   reinterpret_cast<FRAME_STAMP_STRUCT*>(_p_)
 
#define AsStatusStructPtr(_p_)   reinterpret_cast<AUTOCIRCULATE_STATUS_STRUCT*>(_p_)
 
#define AsTransferStatusStruct(_p_)   reinterpret_cast<PAUTOCIRCULATE_TRANSFER_STATUS_STRUCT>(_p_)
 
#define AsRoutingTablePtr(_p_)   reinterpret_cast<NTV2RoutingTable*>(_p_)
 
#define AsPTaskStruct(_p_)   reinterpret_cast<PAUTOCIRCULATE_TASK_STRUCT>(_p_)
 
#define AsPTransferStruct(_p_)   reinterpret_cast<PAUTOCIRCULATE_TRANSFER_STRUCT>(_p_)
 
#define AsVoidPtr(_p_)   reinterpret_cast<void*>(_p_)
 

Variables

static const uint32_t sIntEnumToStatKeys []
 

Detailed Description

Implementation of the CNTV2BareMetalDriverInterface class.

Definition in file ntv2baremetaldriverinterface.cpp.

Macro Definition Documentation

◆ AsFrameStampStructPtr

#define AsFrameStampStructPtr (   _p_)    reinterpret_cast<FRAME_STAMP_STRUCT*>(_p_)

Definition at line 32 of file ntv2baremetaldriverinterface.cpp.

◆ AsPTaskStruct

#define AsPTaskStruct (   _p_)    reinterpret_cast<PAUTOCIRCULATE_TASK_STRUCT>(_p_)

Definition at line 36 of file ntv2baremetaldriverinterface.cpp.

◆ AsPTransferStruct

#define AsPTransferStruct (   _p_)    reinterpret_cast<PAUTOCIRCULATE_TRANSFER_STRUCT>(_p_)

Definition at line 37 of file ntv2baremetaldriverinterface.cpp.

◆ AsRoutingTablePtr

#define AsRoutingTablePtr (   _p_)    reinterpret_cast<NTV2RoutingTable*>(_p_)

Definition at line 35 of file ntv2baremetaldriverinterface.cpp.

◆ AsStatusStructPtr

#define AsStatusStructPtr (   _p_)    reinterpret_cast<AUTOCIRCULATE_STATUS_STRUCT*>(_p_)

Definition at line 33 of file ntv2baremetaldriverinterface.cpp.

◆ AsTransferStatusStruct

#define AsTransferStatusStruct (   _p_)    reinterpret_cast<PAUTOCIRCULATE_TRANSFER_STATUS_STRUCT>(_p_)

Definition at line 34 of file ntv2baremetaldriverinterface.cpp.

◆ AsVoidPtr

#define AsVoidPtr (   _p_)    reinterpret_cast<void*>(_p_)

Definition at line 38 of file ntv2baremetaldriverinterface.cpp.

◆ HEX16

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

Definition at line 23 of file ntv2baremetaldriverinterface.cpp.

◆ HEX2

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

Definition at line 20 of file ntv2baremetaldriverinterface.cpp.

◆ HEX4

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

Definition at line 21 of file ntv2baremetaldriverinterface.cpp.

◆ HEX8

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

Definition at line 22 of file ntv2baremetaldriverinterface.cpp.

◆ INSTP

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

Definition at line 24 of file ntv2baremetaldriverinterface.cpp.

◆ LDIDBG

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

Definition at line 30 of file ntv2baremetaldriverinterface.cpp.

◆ LDIFAIL

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

Definition at line 26 of file ntv2baremetaldriverinterface.cpp.

◆ LDIINFO

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

Definition at line 29 of file ntv2baremetaldriverinterface.cpp.

◆ LDINOTE

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

Definition at line 28 of file ntv2baremetaldriverinterface.cpp.

◆ LDIWARN

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

Definition at line 27 of file ntv2baremetaldriverinterface.cpp.

Variable Documentation

◆ sIntEnumToStatKeys

const uint32_t sIntEnumToStatKeys[]
static
Initial value:

Definition at line 244 of file ntv2baremetaldriverinterface.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