|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.comm.FT1_2
public class FT1_2
Field Summary | |
---|---|
int |
count_receive_failed
|
int |
count_receive_lost
|
int |
count_receive_success
|
int |
count_send_failed
|
int |
count_send_success
|
static int |
DIRECTION_A2B
|
static int |
DIRECTION_B2A
|
Constructor Summary | |
---|---|
FT1_2()
Default constructor. |
|
FT1_2(int uartChannel,
int direction,
int baudrate,
int params)
Constructor |
Method Summary | |
---|---|
void |
close()
Stops the FT1.2 communicator. |
protected void |
finalize()
finalize method |
byte[] |
getIncomingUDat()
Blocks until any USER-DATA availabe and return it as byte-array. |
void |
run()
This thread is a Event-Producer and fire events for each incoming USER-DATA (using the function 'getIncomingUDat()'). |
void |
sendRESET()
Sends a RESET command to peer. |
void |
sendUDAT(byte[] data,
int offset,
int length)
Send USER-DATA to peer. |
void |
setCharacterGuardTime(int bits)
Sets the character guard time, i.e. the time to wait between sending two characters over the serial port. |
void |
setListener(FT1_2EventListener eventlistener)
Sets an FT1_2EventListener. |
void |
setTimeOut(int timeInMilliseconds)
Sets the exchange timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
public static final int DIRECTION_A2B
public static final int DIRECTION_B2A
public int count_receive_success
public int count_receive_failed
public int count_receive_lost
public int count_send_success
public int count_send_failed
Constructor Detail |
---|
public FT1_2(int uartChannel, int direction, int baudrate, int params) throws IOException
IOException
public FT1_2() throws IOException
IOException
Method Detail |
---|
public void sendUDAT(byte[] data, int offset, int length) throws IOException
data
- offset
- length
-
IOException
public void sendRESET() throws IOException
IOException
public void setListener(FT1_2EventListener eventlistener)
el
- eventlistener to use (null to remove)public byte[] getIncomingUDat() throws IOException
IOException
- if something bad happend (ft12 closed)public void setTimeOut(int timeInMilliseconds)
timeout
- timeout in mspublic void setCharacterGuardTime(int bits)
bits
- minimum bits to wait between two characterspublic void close()
protected void finalize()
public void run()
run
in interface Runnable
Thread.run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |