public class LLC
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static RCXLink |
getLink()
Return the RCXLink object associated with LLC
|
static void |
init()
Initialize LLC an
|
static void |
init(I2CPort port)
Initialize LLC and set port
|
static void |
init(Port 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(I2CPort port)
Set sensor port
|
static void |
setRangeLong()
Sets long range transmision.
|
static void |
setRangeShort()
Sets short range transmision.
|
public static void init(I2CPort port)
public static void init(Port port)
public static void init()
public static void setPort(I2CPort 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 sendpublic static int receive()
public static void setRangeLong()
public static void setRangeShort()
public static RCXLink getLink()