GetSerialPortStatus()

Syntax

Result = GetSerialPortStatus(#SerialPort, Attribute)
Description
Returns the specified serial port status.

Parameters

#SerialPort The serial port to use.
Attribute It can be one of the following values:
  #PB_SerialPort_RI : Get RI signal status (0 or 1)
  #PB_SerialPort_DCD: Get DCD signal status (0 or 1)
  #PB_SerialPort_DSR: Get DSR signal status (0 or 1)
  #PB_SerialPort_CTS: Get CTS signal status (0 or 1)
  #PB_SerialPort_XonCharacter : Character used for Xon/Xoff handshaking sequence (between 1 and 255)
  #PB_SerialPort_XoffCharacter: Character used for Xon/Xoff handshaking sequence (between 1 and 255)

Return value

Returns the specified serial port status, according to the specified attribute.

Supported OS

All

<- CloseSerialPort() - SerialPort Index - IsSerialPort() ->