ReadRegister
Top  Previous  Next

Description

Reads a quadlet from the selected 1394 register of the current camera.


Syntax


[VB]
Value=objActiveDcam.ReadRegister( Reg )


[C/C++]
HRESULT ReadRegister( long Reg, long* pValue );


Data Types
[VB]

Reg: Long
Return value: Long


Parameters
[C/C++]

Reg [in]  
The 32-bit offset of the register into the 1394 base address FFFF 0000 0000 h or the offset of the register into the Camera Control and Status Register FFFF F0F0 0000 h.  
pValue [out,retval]  
Pointer to the registers's 32-bit value  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Examples


This C++ example reads the value of the temperature inquiry register using the absolute register offset:

value=ActiveDcam.ReadRegister(0xF0F0052C);

This VB example reads the value of the temperature inquiry register using the relative register offset:

value=ActiveDcam.ReadRegister(&H52C)

Remarks


Addresses starting with F (least four significant bits are on) will be treated as 32-bit offsets to the 1394 base adress FFFF 0000 0000 h. Other addresses will be treated as offsets into the Camera Control and Status register, which usually starts with FFFF F0F0 0000 h.

For more information on the DCAM command registers refer to "IIDC 1394-based Digital Camera Specification, Version 1.31" published by the 1394 Trade Association.