Jump to content

CommOS2

From EDM2

A library to use the COM port. Includes COMMOS2.LIB, COMMOS2.H, COMM.H.

The functions available are:

  • CommOpen - Opens a COM port
  • CommInit - Initializes a COM port
  • CommClose - Closes a COM port
  • CommClear - Clears a COM port
  • CommClearRxBuffer - Clears the COM port receiver buffer
  • CommClearTxBuffer - Clears the COM port transmit buffer
  • CommWrite - Writes data to a COM port
  • CommRead - Reads data from a COM port
  • CommReadTimeOut - Reads data from a COM port or times out
  • CommReadUntilByte - Reads data from a COM port until a certain character is received
  • CommQueryRxCount - Returns the number of characters waiting to be read
  • CommQueryRxBufSize - Returns the size of the receiver buffer
  • CommQueryTxCount - Returns the number of characters waiting to be sent
  • CommQueryTxBufSize - Returns the size of the transmit buffer
  • PortInpByte - Reads a port directly to get a single character
  • PortInpWord - Reads a port directly to get a single word
  • PortOutByte - Writes a single character directly to a port
  • PortOutWord - Writes a word directly to a port

Links