115
Syntax
HRESULT Serial_ClearReadBuffer(
[in] long Port,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Port
[in] Port number for the serial port. Valid values are 1 and 2.
Success
[out, retval] TRUE if the buffer was cleared, FALSE if buffer failed to clear.
Remarks
If you wish to read a specific response to a sent command, then make a call to this function just prior to calling
Serial_Send.
Serial_ReadBufferCount ( Port )
Serial_ReadBufferCount ( Port )
Serial_ReadBufferCount ( Port )
Serial_ReadBufferCount ( Port )
Returns the number of characters in the read buffer for the specified port. The maximum number of characters
stored by the circular buffer is 4K.
Syntax
HRESULT Serial_ReadBufferCount(
[in] long Port,
[out, retval] long* Count
);
Parameters
Port
[in] Port number for the serial port. Valid values are 1 and 2.
Count
[out, retval] Number of characters currently in the receive buffer.
Serial_GetPortCount ( )
Serial_GetPortCount ( )
Serial_GetPortCount ( )
Serial_GetPortCount ( )
Returns the number of serial ports supported by the WACI hardware.
Syntax
HRESULT Serial_GetPortCount(
[out, retval] long* NumPorts
);
Parameters
NumPorts
[out, retval] Number of serial ports supported by the hardware.