de.wagner_ibw.appl
Class RFSwitch

java.lang.Object
  |
  +--de.wagner_ibw.appl.RFSwitch

public class RFSwitch
extends java.lang.Object

This simple application controls five consumer loads by rf remote control. See here.

Author:
Thomas Wagner

Field Summary
static int PIN_A
          Defined control bit of the IO-Warrior's port for load 'A'.
static int PIN_B
          Defined control bit of the IO-Warrior's port for load 'B'.
static int PIN_C
          Defined control bit of the IO-Warrior's port for load 'C'.
static int PIN_D
          Defined control bit of the IO-Warrior's port for load 'D'.
static int PIN_E
           
static int PIN_OFF
          Defined control bit of the IO-Warrior's port for command 'off'.
static int PIN_ON
          Defined control bit of the IO-Warrior's port for command 'on'.
static int PORT
          Defined control port of the IO-Warrior.
 
Constructor Summary
RFSwitch(AbstractIowDevice dev)
          Constructor.
 
Method Summary
 void doSwitch(char load, java.lang.String action)
          Switch the load.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static int PORT
Defined control port of the IO-Warrior. See circuit.


PIN_A

public static int PIN_A
Defined control bit of the IO-Warrior's port for load 'A'. See circuit.


PIN_B

public static int PIN_B
Defined control bit of the IO-Warrior's port for load 'B'. See circuit.


PIN_C

public static int PIN_C
Defined control bit of the IO-Warrior's port for load 'C'. See circuit.


PIN_D

public static int PIN_D
Defined control bit of the IO-Warrior's port for load 'D'. See circuit.


PIN_E

public static int PIN_E

PIN_ON

public static int PIN_ON
Defined control bit of the IO-Warrior's port for command 'on'. See circuit.


PIN_OFF

public static int PIN_OFF
Defined control bit of the IO-Warrior's port for command 'off'. See circuit.

Constructor Detail

RFSwitch

public RFSwitch(AbstractIowDevice dev)
Constructor.

Parameters:
dev - Underlying IO-Warrior device.
Method Detail

doSwitch

public void doSwitch(char load,
                     java.lang.String action)
Switch the load.

Parameters:
load -
action -