ProSoft Technology MVI69E-LDM User Manual
Page 76

Contents
MVI69E-LDM ♦ "C" Programmable
Developer's Manual
Linux Application Development Module
Page 76 of 130
ProSoft Technology, Inc.
August 21, 2014
The API can queue up to 8 requests and they remain queued after the message is given to
the user application. The user application must generate a response in order to free the
message from the queue.
Return Value
MVI69_SUCCESS
a message has been received.
MVI69_ERR_NOACCESS
handle does not have access
MVI69_ERR_TIMEOUT
the timeout occurred before a message was received
MVI69_ERR_BADPARAM
a parameter is invalid
MVI69_ERR_BADCONFIG
receive messaging is not enabled
Example
MVI69HANDLE handle;
int rc;
WORD buffer[250]
WORD length;
length = 250; //maximum message size that can be received
//wait up to 5 seconds for a message
rc = MVI69_GetMsgRequestFromBp (Handle, buffer, &length, 5000);
if (rc == MVI69_SUCCESS)
printf ("Message received. Length is %d words\n", length);
See Also
MVI69_GetIOConfig
MVI69_SendMsgResponseToBp