ComGetWriteState
comInt
This function is used to query the current status of the send routine and then to reset it.
Parameter
com_handle
Return value
COM_ST_FREE
COM_ST_BUSY
COM_ST_SUCCESS
< 0
Notes
● If the current status is "COM_ST_BUSY", the status is not reset.
● The error status can include several errors at the same time. Each bit in the error number
ComClose
comInt
This function closes an interface and releases all the resources associated with it.
Parameter
com_handle
Return value
0
≠ 0
Notes
Following this call, no data transfer routines of this driver can be used until the next the
"ComOpen".
SIMATIC 3964R protocol for Windows 9x/XP/7
Installation Manual, 01/2013, J31069-D0131-U001-A2-7218
ComGetWriteState
interface handle from
Send routine is not busy
A frame is currently being sent
A frame was sent successfully
Error status
corresponds to an error. The "COM_ST_ERROR" is set in any case. Section "Error and
status messages (Page 23)" contains a precise description of the individual errors.
(int com_handle)
ComClose
interface handle from
Function successfully completed
possible error message:
•
(int com_handle)
ComOpen
ComOpen
COM_NOT_OPEN
Programming interface
4.1 Functions of the serial interface
19