|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjosx.rcxcomm.LLC
Low-level comms (LLC). This class provide native methods to read and write bytes to and from the IR unit by low-level driving of the RCX H8300 UART. It keeps its footprint down by making as much use of ROM routines as possible. The init() method must be called to take over driving the IR unit from the ROM routines. Once this is done, the program cannot use the Serial class.
Method Summary | |
static void |
init()
Initialize LLC |
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 |
setRangeLong()
Sets long range transmision. |
static void |
setRangeShort()
Sets short range transmision. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Method Detail |
public static void init()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |