static void enableDisableCommunicationPorts(int portMask, int timeout)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Parameter | Range | Description |
---|---|---|
portMask | Bits 1 ... 6 | bitmask for communication-port |
timeout | 0 ... 65535 | timeout in units of 10ms |
Disables the communication-ports that are 0-bits in the portMask. After the timeout period, all ports are enabled again. The bits of are defined as follows:
portMask |
---|
PORT_SERIAL_0 |
PORT_SERIAL_1 |
PORT_USB |
PORT_I2C |
PORT_SPI |
PORT_ETHERNET |
Note
Example
IO.enableDisableCommunicationPorts(IO.PORT_SERIAL_0 |
IO.PORT_SERIAL_0 |
IO.PORT_I2C |
IO.PORT_SPI |
IO.PORT_ETHERNET,
500);
Disables the USB port for 5 seconds.
See also:
Copyright © demmel products gmbh. All rights reserved.