Transmits a specified character ahead of any pending data in the output buffer of the specified communications device
BOOLEAN TransmitCommChar( COMMHANDLE hComm, // handle to communications device char cChar // character to transmit );
hComm
cChar
0
(zero)
E_BUSY
E_DISCONNECTED
E_IO
E_LIMIT
E_PARAM
This function is useful for sending an interrupt character (such as a CTRL+C) to a host system.
If the device is not transmitting, TransmitCommChar cannot be called repeatedly. Once TransmitCommChar places a character in the output buffer, the character must be transmitted before the function can be called again. If the previous character is not yet sent, TransmitCommChar returns an error.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.1 | intime/rt/include/comm.h | comm.h | comm.lib |