Click or drag to resize

Out8

Writes an 8-bit value to a register-based device.


				virtual HRESULT Out8(VisaAddressSpace eSpace, UINT64 ullOffset, UINT8 uVal) abstract;
			
Parameters
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.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Remarks

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

Example

The following example demonstrates use of the Out8 function.

C++
// CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_WriteRegister(BYTE val)
{
  HRESULT hr = S_OK;

  UINT8 uVal = val;
  hr = io.Memory.Out8(VisaA16Space, 0x10, uVal);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.