Package hw
Class IO

Public Method getEnabledCommunicationPorts

static int getEnabledCommunicationPorts()

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Range Description
portMask Bits 1 ... 6 mask of the current communication-ports

Returns a port mask where a 0-bit means that the corresponding communication-port is currently disabled.

Description
PORT_SERIAL_0
PORT_SERIAL_1
PORT_USB
PORT_I²C
PORT_SPI
PORT_ETHERNET

Example

(IO.PORT_USB == IO.getEnabledCommunicationPorts())

If this expression evaluates to true, currently all communication-ports except USB are disabled.

See also:

Controlling Options
enableDisableCommunicationPorts(int, int)
IO.getCurrentCommunicationPort()