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