rxdata_proc
Return Value:
The rxdata_proc routine must return MVI_SUCCESS.
Example:
MVIHANDLE
Handle;
int _loadds rxdata_proc( MVIHANDLE objHandle, MVICIPRECVSTRUC *sRecv )
{
// Copy the data to our local buffer.
memcpy(RxDataBuf, sRecv->rxData, sRecv->dataSize);
// Indicate that new data has been received
RxDataCnt++;
return(MVI_SUCCESS);
}
See Also:
MVIcip_RegisterAssemblyObj
CIP Messaging API
Publication 1756-RM004B-EN-P - October 2000
4-21