Publication 1756-RM004B-EN-P - October 2000
5-28 Serial Port API
Return Value:
MVI_SUCCESS the bytes were sent successfully
MVI_ERR_NOACCESS comport has not been opened
MVI_ERR_BADPARAM invalid parameter
MVI_ERR_TIMEOUT timeout elapsed before bytes sent
Example:
BYTE dd[5] = { 10, 20, 30, 40, 50 };
int nn;
nn = 5;
if (MVIsp_PutData(COM1, &dd[0], &nn, 1000L) != MVI_SUCCESS)
printf(ā%d bytes were sent\nā,nn);
See Also:
MVIsp_PutCh
MVIsp_Puts
MVIsp_PutData