Home |
RTKernel-32 Programming Manual Function COMSendBlockTimed Function COMWaitSendBufferEmpty |
Function COMSendBlockTimedCOMSendBlock sends a block of data to a COM port with a timeout: unsigned COMSendBlockTimed(int Port, const void * Data, unsigned Length, RTKDuration Timeout); ParametersPortThe port for sending. DataPointer to a buffer containing the data to be sent. LengthThe number of bytes in the data buffer to be sent. TimeoutThe timeout in timer ticks for the send operation. The timeout applies to the complete data block. return valueThe number of bytes successfully placed in the send buffer. If the data was transferred to the send buffer completely, Length is returned. COMSendBlockTimed is similar to function COMSendBlock, but COMSendBlockTimed returns the number of bytes placed in the send buffer without getting a timeout. Function COMWaitSendBufferEmpty
|