public class SPIJNI extends JNIWrapper
Constructor and Description |
---|
SPIJNI() |
Modifier and Type | Method and Description |
---|---|
static void |
spiClose(byte port) |
static void |
spiInitialize(byte port,
IntBuffer status) |
static int |
spiRead(byte port,
ByteBuffer dataReceived,
byte size) |
static void |
spiSetBitsPerWord(byte port,
byte bpw) |
static void |
spiSetChipSelectActiveHigh(byte port,
IntBuffer status) |
static void |
spiSetChipSelectActiveLow(byte port,
IntBuffer status) |
static void |
spiSetOpts(byte port,
int msb_first,
int sample_on_trailing,
int clk_idle_high) |
static void |
spiSetSpeed(byte port,
int speed) |
static int |
spiTransaction(byte port,
ByteBuffer dataToSend,
ByteBuffer dataReceived,
byte size) |
static int |
spiWrite(byte port,
ByteBuffer dataToSend,
byte sendSize) |
getPort, getPortWithModule
public static void spiInitialize(byte port, IntBuffer status)
public static int spiTransaction(byte port, ByteBuffer dataToSend, ByteBuffer dataReceived, byte size)
public static int spiWrite(byte port, ByteBuffer dataToSend, byte sendSize)
public static int spiRead(byte port, ByteBuffer dataReceived, byte size)
public static void spiClose(byte port)
public static void spiSetSpeed(byte port, int speed)
public static void spiSetBitsPerWord(byte port, byte bpw)
public static void spiSetOpts(byte port, int msb_first, int sample_on_trailing, int clk_idle_high)
public static void spiSetChipSelectActiveHigh(byte port, IntBuffer status)
public static void spiSetChipSelectActiveLow(byte port, IntBuffer status)
Copyright © 2015. All rights reserved.