WriteRegister
Top  Previous  Next

Description

Writes a quadlet to the selected 1394 register of the current camera.


Syntax


[VB]
objActiveDcam.WriteRegister Reg, Value


[C/C++]
HRESULT WriteRegister( long Reg, long Value );


Data Types
[VB]

Reg: 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.  
Value [in]  
The value to be written in the register  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This C++ example writes a value to the optical filter register using the absolute register offset.

value=ActiveDcam.WriteRegister(0xF0F0088C,0x0C000010);

This VB example writes a value to the optical filter register using the relative register offset.

ActiveDcam.WriteRegister &H88C,&H0C000010


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.