Click or drag to resize

MoveIn8

Reads a block of 8-bit data values from the specified address space and offset to local memory.


				virtual HRESULT MoveIn8(VisaAddressSpace eSpace, UINT64 ullOffset, UINT32 ulLength, UINT8* pBuf) abstract;

				virtual HRESULT MoveIn8(VisaAddressSpaceeSpace, UINT64 ullOffset, UINT32 ulLength, SAFEARRAY** pBuf) abstract;

				virtual HRESULT MoveIn8(VisaAddressSpaceeSpace, UINT64 ullOffset, UINT32 ulLength, CComSafeArray<UINT8>& pBuf) abstract;
			
Parameters
eSpace

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

ullOffset

[in] Offset within eSpace to read the data.

pBuf

Data read from the register-based device.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Remarks

Reads a block of 8-bit values from a register-based device at the specified memory space and offset.

Example

The following example demonstrates use of the MoveIn8 function.

C++
// CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_Read(SAFEARRAY** ppsaData)
{
  HRESULT hr = S_OK;

  hr = io.Memory.MoveIn8(VisaA16Space, 0x10, ppsaData);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.