com.ferrettronics.device
Class Ft649Proxy

java.lang.Object
  |
  +--com.ferrettronics.device.Ft649Proxy

public class Ft649Proxy
extends java.lang.Object
implements DeviceProxy

Implementation of a proxy for a communications port.


Constructor Summary
Ft649Proxy(Ft649 ft649, int p)
          Create a Ft649Proxy.
 
Method Summary
 Ft649 getFt649()
          Gets the 649 that this proxy is talking with.
 int getPin()
          Gets the 649 pin attaching this device to the 649.
 void send(byte[] ab)
          Send an array of bytes to the device.
 void send(int b)
          Send a byte to the device.
 void setFt649(Ft649 chip)
          Sets the 649 that this proxy is attached to.
 void setPin(int p)
          Sets the 649 pin attaching this device to the 649.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ft649Proxy

public Ft649Proxy(Ft649 ft649,
                  int p)
Create a Ft649Proxy.
Parameters:
ft649 - 649 to write to.
p - The pin this device is attached to the 649 by.
Method Detail

send

public void send(byte[] ab)
Send an array of bytes to the device.
Specified by:
send in interface DeviceProxy
Parameters:
ab - The array of bytes to send.

send

public void send(int b)
Send a byte to the device. This method takes an int. Only the eight low-order bits are written to the device.
Specified by:
send in interface DeviceProxy
Parameters:
b - An int containing a byte to be sent.

getFt649

public Ft649 getFt649()
Gets the 649 that this proxy is talking with.
Returns:
Ft649 The 649.

setFt649

public void setFt649(Ft649 chip)
Sets the 649 that this proxy is attached to.
Parameters:
chip - Specifies the 649.

getPin

public int getPin()
Gets the 649 pin attaching this device to the 649.
Returns:
int The pin.

setPin

public void setPin(int p)
Sets the 649 pin attaching this device to the 649.
Parameters:
p - Specifies the pin.