AJA NTV2 SDK  17.6.0.1688
NTV2 SDK 17.6.0.1688
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
pnpimpl.cpp File Reference

Implements the AJAPnpImpl class on the Mac platform. More...

#include "ajabase/pnp/mac/pnpimpl.h"
#include "ajabase/common/common.h"
#include "ajabase/system/debug.h"
#include "devicenotifier.h"
#include <sstream>
#include <iostream>
#include <iomanip>
Include dependency graph for pnpimpl.cpp:

Go to the source code of this file.

Macros

#define HEX2(__x__)   "0x" << hex << setw(2) << setfill('0') << (0x00FF & uint16_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_)   "kernErr=" << HEX8(_kr_) << "(" << ::GetKernErrStr(_kr_) << ")"
 
#define INST(__p__)   "Ins-" << hex << setw(16) << setfill('0') << uint64_t(__p__) << dec
 
#define THRD(__t__)   "Thr-" << hex << setw(16) << setfill('0') << uint64_t(__t__) << dec
 
#define PNPLOGS(__lvl__, __x__)   AJA_sREPORT(AJA_DebugUnit_PnP, (__lvl__), __func__ << ": " << __x__)
 

Functions

void PCIDeviceNotifierCallback (unsigned long message, void *refcon)
 

Variables

bool sOnline = false
 

Detailed Description

Implements the AJAPnpImpl class on the Mac platform.

Definition in file pnpimpl.cpp.

Macro Definition Documentation

◆ HEX16

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

Definition at line 23 of file pnpimpl.cpp.

◆ HEX2

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

Definition at line 20 of file pnpimpl.cpp.

◆ HEX4

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

Definition at line 21 of file pnpimpl.cpp.

◆ HEX8

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

Definition at line 22 of file pnpimpl.cpp.

◆ INST

#define INST (   __p__)    "Ins-" << hex << setw(16) << setfill('0') << uint64_t(__p__) << dec

Definition at line 25 of file pnpimpl.cpp.

◆ KR

#define KR (   _kr_)    "kernErr=" << HEX8(_kr_) << "(" << ::GetKernErrStr(_kr_) << ")"

Definition at line 24 of file pnpimpl.cpp.

◆ PNPLOGS

#define PNPLOGS (   __lvl__,
  __x__ 
)    AJA_sREPORT(AJA_DebugUnit_PnP, (__lvl__), __func__ << ": " << __x__)

Definition at line 28 of file pnpimpl.cpp.

◆ THRD

#define THRD (   __t__)    "Thr-" << hex << setw(16) << setfill('0') << uint64_t(__t__) << dec

Definition at line 26 of file pnpimpl.cpp.

Function Documentation

◆ PCIDeviceNotifierCallback()

void PCIDeviceNotifierCallback ( unsigned long  message,
void *  refcon 
)

Definition at line 81 of file pnpimpl.cpp.

Variable Documentation

◆ sOnline

bool sOnline = false

Definition at line 32 of file pnpimpl.cpp.