Home |
RTKernel-32 Programming Manual Function COMAllocateBuffers Function COMWaitSendBufferEmpty |
Function COMAllocateBuffersCOMAllocateBuffers allocates send and receive buffers for a port: void COMAllocateBuffers(int Port, unsigned ReceiveBufferSize, unsigned SendBufferSize); ParametersPortThe port to configure. ReceiveBuffersizeThe receive buffer size in bytes. SendBuffersizeThe send buffer size in bytes. If the buffers have been allocated already, this call has no effect. The call to this function is not mandatory; function COMEnableInterrupt will call COMAllocateBuffers(Port, BufferSize, BufferSize) to ensure that buffers are available.
|