rawregisteraccess.txt

来自「BCAM 1394 Driver」· 文本 代码 · 共 32 行

TXT
32
字号
RawRegister.idl provides a COM interface to get raw register access to a Basler 1394 
camera via DirectShow.

Two different methods allow to read or write to the camera's register.


The IDL can be compiled with MIDL to create RawRegister.h and RawRegister_i.c, which can 
be added to a C++ project to use the interface.

Here's an example for using the interface. 

// use the IRawRegisterSpace interface to read a register
CComPtr<IRawRegisterSpace> rawRegister;
fBuilder->FindInterface(&PIN_CATEGORY_PREVIEW, NULL,
fCamera, IID_IRawRegisterSpace, (void**)&rawRegister);
      
if (rawRegister != NULL)
{
  ULONG value;
  if (FAILED(hr = rawRegister->ReadRegister(0xfffff0f00830UL, &value)))
    ATLTRACE("ReadRegister error 0x%08x\n", hr);
  else
    ATLTRACE("ReadRegister returned %ld (0x%08x)\n", value, value);
  }
  else
  {
   ATLTRACE("IRawRegisterSpace interface not found\n");
  }



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?