Skip to content

Out32

Writes a 32-bit value to a register-based device.

virtual HRESULT Out32(VisaAddressSpace eSpace, UINT64 ullOffset, UINT32 uVal) abstract;

eSpace

[in] Address space to which the value will be written.

ullOffset

[in] Offset within eSpace to write the value.

uVal

Value to write to the register-based device.

Returns S_OK if successful, otherwise a failure HRESULT.

Writes a 32-bit value to a register-based device at the specified memory space and offset.

The following example demonstrates use of the Out32 function.

CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_WriteRegister(long lVal)
{
HRESULT hr = S_OK;
UINT32 uVal = lVal;
hr = io.Memory.Out32(VisaA32Space, 0x10, uVal);
return hr;
}