Home |
RTKernel-32 Programming Manual Function COMSendCharTimed Function COMWaitSendBufferEmpty |
Function COMSendCharTimedCOMSendCharTimed sends data with a timeout: RTKBool COMSendCharTimed(int Port, BYTE Data, RTKDuration Timeout); ParametersPortThe port for sending. DataThe data byte is placed in the send buffer to be transmitted by the interrupt handler as soon as the transmit register becomes empty or the timeout expires. TimeoutThe timeout in timer ticks for the send operation. return valueFALSE if the data could not be placed in the send buffer within the time given in parameter Timeout. Please note that the data is only placed in the send buffer and is not guaranteed to have been sent even when this function returns TRUE.
|