com.ferrettronics.device
Class Ft629
java.lang.Object
|
+--com.ferrettronics.device.Ft629
- public class Ft629
- extends java.lang.Object
- implements javax.comm.SerialPortEventListener
Receives commands to a physical Ft629 chip attached to a serial port.
The FT629 receives signals from up to 5 switches.
Constructor Summary |
Ft629(javax.comm.SerialPort sp)
Create an Ft629. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Ft629
public Ft629(javax.comm.SerialPort sp)
- Create an Ft629.
- Parameters:
sp
- Serial Port that physical FT629 is attached.
fireEvent
public void fireEvent(Ft629Event event)
- Send event to all switch listeners.
- Parameters:
switch
- change event.
addFt629Listener
public void addFt629Listener(Ft629Listener l)
- Add a listener.
- Parameters:
listener
-
removeFt629Listener
public void removeFt629Listener(Ft629Listener l)
- Remove a listener.
- Parameters:
listener
-
serialEvent
public void serialEvent(javax.comm.SerialPortEvent event)
- Specified by:
- serialEvent in interface javax.comm.SerialPortEventListener