|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.thingmagic.AndroidUsbCdcAcmTransport
public class AndroidUsbCdcAcmTransport
| Method Summary | |
|---|---|
byte[] |
checkForCorruptedData(int length,
int offset,
byte[] messageSpace)
|
byte[] |
copyRequestedData(int length,
byte[] messageSpace,
int offset)
|
SerialReader |
createSerialReader(java.lang.String uri)
|
void |
flush()
Take any actions necessary (possibly none) to remove unsent data from the output path. |
int |
getBaudRate()
Get the current baud rate of the communication channel. |
void |
open()
Causes the communication interface to be opened but does not transmit any serial-layer data. |
int |
performRead(byte[] mReadBuffer,
int length,
int offset,
int timeoutMillis)
|
byte[] |
receiveBytes(int length,
byte[] messageSpace,
int offset,
int timeoutMillis)
Receive a number of bytes on the serial transport. |
void |
sendBytes(int length,
byte[] message,
int offset,
int timeoutMs)
Send bytes down the serial transport layer. |
void |
setBaudRate(int baudRate)
Set the current baud rate of the communication channel. |
void |
shutdown()
Close the communication channel. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void open()
throws ReaderException
SerialTransport
open in interface SerialTransportReaderException
public void sendBytes(int length,
byte[] message,
int offset,
int timeoutMs)
throws ReaderException
SerialTransport
sendBytes in interface SerialTransportlength - number of bytes to sendmessage - array containing the bytes to be sentoffset - position in array to send fromtimeoutMs - The duration to wait for the operation to complete.
ReaderException
public byte[] receiveBytes(int length,
byte[] messageSpace,
int offset,
int timeoutMillis)
throws ReaderException
SerialTransport
receiveBytes in interface SerialTransportlength - number of bytes to receivemessageSpace - byte array to store the message in, or null to have one allocatedoffset - location in messageSpace to store bytestimeoutMillis - maximum duration to wait for a message
ReaderException
public int performRead(byte[] mReadBuffer,
int length,
int offset,
int timeoutMillis)
throws ReaderCommException
ReaderCommException
public byte[] copyRequestedData(int length,
byte[] messageSpace,
int offset)
public byte[] checkForCorruptedData(int length,
int offset,
byte[] messageSpace)
public int getBaudRate()
throws ReaderException
SerialTransport
getBaudRate in interface SerialTransportReaderException
public void setBaudRate(int baudRate)
throws ReaderException
SerialTransport
setBaudRate in interface SerialTransportbaudRate - the baud rate to set
ReaderException
public void flush()
throws ReaderException
SerialTransport
flush in interface SerialTransportReaderException
public void shutdown()
throws ReaderException
SerialTransport
shutdown in interface SerialTransportReaderException
public SerialReader createSerialReader(java.lang.String uri)
throws ReaderException
ReaderException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||