ProSoft Technology MVI69E-LDM User Manual

Page 71

Advertising
background image

MVI69E-LDM ♦ "C" Programmable

Contents

Linux Application Development Module

Developer's Manual

ProSoft Technology, Inc.

Page 71 of 130

August 21, 2014

MVI69_GetIOConfig

Syntax

int MVI69_GetIOConfig(MVI69HANDLE apihandle,

MVI69_IOCONFIG *ioconfig);

Parameters

handle

handle returned by previous call to MVI69_Open

ioconfig

Pointer to MVI69IOCONFIG structure to receive configuration
information.

Description
This function is used to obtain the IO configuration of the MVI69E module. handle must be a
valid handle returned from MVI69_Open.

The MVI69IOCONFIG structure is defined as shown:

typedef struct tagMVI69IOCONFIG
{
WORD MappedInputWords;//Input words available for direct access
WORD MappedOutputWords;//Output words available for direct access.
WORD MsgRcvBufSize;//Max size in words for received messages.
WORD MsgSndBufSize;//Max size in words for sent messages.
} MVI69IOCONFIG;

The maximum sizes in words of the module's input images are returned in the
MVI69IOCONFIG structure pointed to by ioconfig. The MappedInputWords and
MappedOutputWords members are set equal to the number of words of the respective
image that is available for direct access via the MVI69_WriteInputImage or
MVIbpReadOutputImage functions. The MsgRcvBufSize and MSgSndBufSize members
indicate the maximum size in words for received or sent messages respectively..

Return Value

MVI69_SUCCESS

no errors were encountered

MVI69_ERR_NOACCESS

handle does not have access

Example

MVI69HANDLE handle;
MVI69IOCONFIG ioconfig;

MVI69_GetIOConfig (handle, &ioconfig);
printf ("%d words of input image available\n", ioconfig.DirectInputSize);
printf ("%d words of output image available\n", ioconfig.DirectOutputSize);

See Also
MVI69_SetIOConfig

Advertising