public class NativeInterface
extends Object
Constructor and Description |
---|
NativeInterface() |
Modifier and Type | Method and Description |
---|---|
static void |
alwaysSimulate() |
static int |
closeDevice(int handle) |
static String |
getError(int errno) |
static boolean |
isSimulated() |
static void |
loadLibrary() |
static int |
openDevice(String fn) |
static int |
pollDevice(String fn,
int timeout) |
static int |
raspbianGpioMemRead(int offset) |
static int |
raspbianGpioMemSetPinBias(int gpio,
int mode) |
static int |
raspbianGpioMemWrite(int offset,
int mask,
int value) |
static int |
readFile(String fn,
byte[] in) |
static long |
servoStartThread(int gpio,
int pulse,
int period) |
static int |
servoStopThread(long handle) |
static int |
servoUpdateThread(long handle,
int pulse,
int period) |
static int |
setSpiSettings(int handle,
int maxSpeed,
int dataOrder,
int mode) |
static int |
transferI2c(int handle,
int slave,
byte[] out,
byte[] in) |
static int |
transferSpi(int handle,
byte[] out,
byte[] in) |
static int |
writeFile(String fn,
byte[] out) |
static int |
writeFile(String fn,
String out) |
public static void loadLibrary()
public static void alwaysSimulate()
public static boolean isSimulated()
public static int openDevice(String fn)
public static String getError(int errno)
public static int closeDevice(int handle)
public static int readFile(String fn, byte[] in)
public static int writeFile(String fn, byte[] out)
public static int writeFile(String fn, String out)
public static int raspbianGpioMemRead(int offset)
public static int raspbianGpioMemWrite(int offset, int mask, int value)
public static int raspbianGpioMemSetPinBias(int gpio, int mode)
public static int pollDevice(String fn, int timeout)
public static int transferI2c(int handle, int slave, byte[] out, byte[] in)
public static long servoStartThread(int gpio, int pulse, int period)
public static int servoUpdateThread(long handle, int pulse, int period)
public static int servoStopThread(long handle)
public static int setSpiSettings(int handle, int maxSpeed, int dataOrder, int mode)
public static int transferSpi(int handle, byte[] out, byte[] in)