Skip to content

In32

Reads a 32-bit value from a register-based device.

virtual HRESULT In32(VisaAddressSpace eSpace, UINT64 ullOffset, UINT32* puVal) abstract;

eSpace

[in] Address space from which to read the value.

ullOffset

[in] Offset within eSpace to read the value.

puVal

Value read from the register-based device.

Returns S_OK if successful, otherwise a failure HRESULT.

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

The following example demonstrates use of the In32 function.

CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_ReadRegister()
{
HRESULT hr = S_OK;
UINT32 uVal;
hr = io.Memory.In32(VisaA32Space, 0x10, &uVal);
return hr;
}