|
static byte[] | pack (String format, Object... values) throws IllegalArgumentException |
|
static Object[] | unpack (String format, byte[] bytes) throws IllegalArgumentException |
|
static byte[] | encodeLC0 (byte v) |
|
static byte[] | encodeLC1 (byte v) |
|
static byte[] | encodeLC2 (short v) |
|
static byte[] | encodeLC4 (int v) |
|
static byte[] | encodeLV0 (int i) |
|
static byte[] | encodeLV1 (int i) |
|
static byte[] | encodeLV2 (int i) |
|
static byte[] | encodeLV4 (int i) |
|
static byte[] | encodeGV0 (int i) |
|
static byte[] | encodeGV1 (int i) |
|
static byte[] | encodeGV2 (int i) |
|
static byte[] | encodeGV4 (int i) |
|
static byte[] | encodeSystemCommand (byte command, boolean needReply, Object... parameters) |
|
static byte[] | encodeDirectCommand (byte opcode, boolean needReply, int globalAllocation, int localAllocation, String paramFormat, Object... parameters) |
|
The class provides utility functions to encode and decode commands that are sent to or received from LEGO MINDSTORMS EV3 robots.
- Author
- jerry.nosp@m.7320.nosp@m.4@gma.nosp@m.il.c.nosp@m.om (jerry73204)
-
spade.nosp@m.d065.nosp@m.43@gm.nosp@m.ail..nosp@m.com (Alvin Chang)
Definition at line 21 of file Ev3BinaryParser.java.
◆ encodeDirectCommand()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeDirectCommand |
( |
byte |
opcode, |
|
|
boolean |
needReply, |
|
|
int |
globalAllocation, |
|
|
int |
localAllocation, |
|
|
String |
paramFormat, |
|
|
Object... |
parameters |
|
) |
| |
|
static |
◆ encodeGV0()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeGV0 |
( |
int |
i | ) |
|
|
static |
◆ encodeGV1()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeGV1 |
( |
int |
i | ) |
|
|
static |
◆ encodeGV2()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeGV2 |
( |
int |
i | ) |
|
|
static |
◆ encodeGV4()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeGV4 |
( |
int |
i | ) |
|
|
static |
◆ encodeLC0()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLC0 |
( |
byte |
v | ) |
|
|
static |
◆ encodeLC1()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLC1 |
( |
byte |
v | ) |
|
|
static |
◆ encodeLC2()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLC2 |
( |
short |
v | ) |
|
|
static |
◆ encodeLC4()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLC4 |
( |
int |
v | ) |
|
|
static |
◆ encodeLV0()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLV0 |
( |
int |
i | ) |
|
|
static |
◆ encodeLV1()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLV1 |
( |
int |
i | ) |
|
|
static |
◆ encodeLV2()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLV2 |
( |
int |
i | ) |
|
|
static |
◆ encodeLV4()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeLV4 |
( |
int |
i | ) |
|
|
static |
◆ encodeSystemCommand()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.encodeSystemCommand |
( |
byte |
command, |
|
|
boolean |
needReply, |
|
|
Object... |
parameters |
|
) |
| |
|
static |
◆ pack()
static byte [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.pack |
( |
String |
format, |
|
|
Object... |
values |
|
) |
| throws IllegalArgumentException |
|
static |
◆ unpack()
static Object [] com.google.appinventor.components.runtime.util.Ev3BinaryParser.unpack |
( |
String |
format, |
|
|
byte[] |
bytes |
|
) |
| throws IllegalArgumentException |
|
static |
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/util/Ev3BinaryParser.java