public class Toad4Simulator extends StepperState implements ToadComm
ToadComm.AccessDeniedException, ToadComm.DeviceBusyException, ToadComm.DeviceNotFound, ToadComm.TimeoutException
Constructor and Description |
---|
Toad4Simulator() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
void |
flush() |
boolean |
isConnected() |
boolean |
isRunning() |
static void |
mainx(java.lang.String[] args) |
void |
openConnection(java.lang.String portName) |
int |
processMessage(byte[] message,
byte[] response,
java.lang.Object debug) |
int |
read(byte[] buffer,
int len) |
void |
start() |
void |
stop() |
void |
write(byte[] buffer,
int len) |
clearCapture, getCaptureData, getCaptureDataSize, interruptIrq, startCapture, stopCapture
public void start()
public void stop()
public boolean isRunning()
public int processMessage(byte[] message, byte[] response, java.lang.Object debug)
public static void mainx(java.lang.String[] args)
public boolean isConnected()
isConnected
in interface ToadComm
public void openConnection(java.lang.String portName) throws ToadComm.DeviceBusyException, ToadComm.AccessDeniedException, ToadComm.DeviceNotFound, java.io.IOException
openConnection
in interface ToadComm
ToadComm.DeviceBusyException
ToadComm.AccessDeniedException
ToadComm.DeviceNotFound
java.io.IOException
public void closeConnection()
closeConnection
in interface ToadComm
public int read(byte[] buffer, int len) throws java.lang.Exception
public void write(byte[] buffer, int len) throws java.lang.Exception