jcontrol.comm
Class RS232Selector

java.lang.Object
  extended by jcontrol.comm.RS232Selector

public class RS232Selector
extends Object

Select hardware port RS232 is linked to.

Example: switch JControl-PLUI's RS232 to communicate either via external serial connector or with the internal bus control unit (power-line modem).

Wrapper for class GPIO.

Version:
1.0
Author:
Wolfgang Klingauf
Available on JControl Devices:
lib (PLUI)

Field Summary
static int EXTERNAL
          external RS232 port
static int INTERNAL
          internal RS232 port
(package private) static int RS232_PORTPIN
          the portpin which the RS232 switch is connected to
 
Constructor Summary
RS232Selector()
           
 
Method Summary
static void selectPort(int port)
          Select RS232 port
 
Methods inherited from class java.lang.Object
clone, equals, notifyAll, wait
 

Field Detail

EXTERNAL

public static final int EXTERNAL
external RS232 port

See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
internal RS232 port

See Also:
Constant Field Values

RS232_PORTPIN

static final int RS232_PORTPIN
the portpin which the RS232 switch is connected to

See Also:
Constant Field Values
Constructor Detail

RS232Selector

public RS232Selector()
Method Detail

selectPort

public static void selectPort(int port)
Select RS232 port

Parameters:
port - specify either INTERNAL or EXTERNAL