|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.os.CSystem
public class CSystem
Static class that represents the 'C' programming environment.
Constructor Summary | |
---|---|
CSystem()
|
Method Summary | |
---|---|
static int |
copy(int addr,
byte[] bytes,
int lth)
Copy data from a byte array into a malloc buffer. |
static double |
dcall(Parm x)
Call a 'C' function. |
static float |
fcall(Parm x)
Call a 'C' function. |
static void |
free(int address)
Free a buffer allocated with malloc. |
static int |
getByte(int address)
Get a byte in memory. |
static int |
getInt(int address)
Get a word in memory. |
static int |
icall(Parm x)
Call a 'C' function. |
static long |
lcall(Parm x)
Call a 'C' function. |
static int |
lookup(String s)
Lookup a C link symbol. |
static int |
malloc(int size)
Malloc some memory. |
static int |
mallocBytes(byte[] bytes)
Malloc some memory and copy a byte array into it. |
static int |
mallocString(String str)
Malloc some memory and copy a string into it. |
static Object |
ocall(Parm x)
Call a 'C' function. |
static void |
setByte(int address,
int bite)
Set a byte in memory. |
static void |
setInt(int address,
int value)
Set a word in memory. |
static void |
vcall(Parm x)
Call a 'C' function. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSystem()
Method Detail |
---|
public static int lookup(String s)
s
- the symbole
public static int malloc(int size)
size
- the size in bytes
public static int mallocBytes(byte[] bytes)
bytes
- the byte array
public static int mallocString(String str)
str
- the string
public static void setByte(int address, int bite)
address
- the addressbite
- the valuepublic static int getByte(int address)
address
- the address
public static void setInt(int address, int value)
address
- the addressvalue
- the valuepublic static int getInt(int address)
address
- the address
public static int copy(int addr, byte[] bytes, int lth)
addr
- the address of the malloc bufferbytes
- the byte array to copylth
- the length of the buffer to copy
public static void free(int address)
address
- the address of the bufferpublic static void vcall(Parm x)
x
- the parameter listpublic static int icall(Parm x)
x
- the parameter list
public static long lcall(Parm x)
x
- the parameter list
public static float fcall(Parm x)
x
- the parameter list
public static double dcall(Parm x)
x
- the parameter list
public static Object ocall(Parm x)
x
- the parameter list
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |