|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.rcxcomm.LLC
public class LLC
Emulates RCX LLC class using the RCXLink class.
WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
Method Summary | |
---|---|
static RCXLink |
getLink()
Return the RCXLink object associated with LLC |
static void |
init()
Initialize LLC an |
static void |
init(SensorPort port)
Initialize LLC and set port |
static boolean |
isSendError()
Return the error status of the last send |
static boolean |
isSending()
Indicate whether the last send is still active |
static int |
read()
read a single byte, if available |
static int |
receive()
wait a little while for a byte to become available |
static boolean |
sendBytes(byte[] buf,
int len)
Send a number of bytes and wait for completion of transmission |
static void |
setPort(SensorPort port)
Set sensor port |
static void |
setRangeLong()
Sets long range transmision. |
static void |
setRangeShort()
Sets short range transmision. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void init(SensorPort port)
public static void init()
public static void setPort(SensorPort port)
public static int read()
public static boolean isSending()
public static boolean isSendError()
public static boolean sendBytes(byte[] buf, int len)
buf
- the array of bytes to sendlen
- the number of bytes to send
public static int receive()
public static void setRangeLong()
public static void setRangeShort()
public static RCXLink getLink()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |