[in] Address space from which to read the value.
In16
Reads a 16-bit value from a register-based device.
Syntax
Section titled “Syntax”virtual HRESULT In16(VisaAddressSpace eSpace, UINT64 ullOffset, UINT16* puVal) abstract;Parameters
Section titled “Parameters”eSpace
ullOffset
[in] Offset within eSpace to read the value.
puVal
Value read from the register-based device.
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”Reads a 16-bit value from a register-based device at the specified memory space and offset.
Example
Section titled “Example”The following example demonstrates use of the In16 function.
STDMETHODIMP Acme4321::IAcme4321_ReadRegister(){ HRESULT hr = S_OK;
UINT16 uVal; hr = io.Memory.In16(VisaA16Space, 0x10, &uVal);
return hr;}