Out16 |
Writes a 16-bit value to a register-based device.
virtual HRESULT Out16(VisaAddressSpace eSpace, UINT64 ullOffset, UINT16 uVal) abstract;
[in] Address space to which the values will be written.
[in] Offset within eSpace to write the value.
Value to write to the register-based device.
Returns S_OK if successful, otherwise a failure HRESULT.
Writes an 16-bit value to a register-based device at the specified memory space and offset.
The following example demonstrates use of the Out16 function.
// CoAcme4321.cpp STDMETHODIMP Acme4321::IAcme4321_WriteRegister(short sVal) { HRESULT hr = S_OK; UINT16 uVal = sVal; hr = io.Memory.Out16(VisaA16Space, 0x10, sVal); return hr; }