ComWrite
comInt
This function is used to send an asynchronous send job.
Parameter
com_handle
write_data
write_number
options
Return value
≥ 0
< 0
Notes
This call places the send job in a send buffer. The actual data communication is
asynchronous. As result, the return following the call for this routine simply means that the
send job was correctly included in the send queue.
ComEnableEvent
comInt
This function enables events (for checking the asynchronous transfer).
SIMATIC 3964R protocol for Windows 9x/XP/7
Installation Manual, 01/2013, J31069-D0131-U001-A2-7218
(int com_handle,
ComWrite
void *write_data,
int write_number,
long options)
interface handle from
Pointer to the send buffer of the caller
Length of the send buffer
Not used
Number of bytes written (≙ frame length)
possible error message:
COM_HANDLE_FALSE
•
COM_2SMALL
•
COM_WRITE_ERROR
•
(int com_handle,
ComEnableEvent
int com_event,
int user_id,
init msg)
4.1 Functions of the serial interface
ComOpen
Programming interface
15