public class SmruDaqJNI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SMRU_RET_OK |
static int |
SMRU_VAL_MASTER |
static int |
SMRU_VAL_SLAVE |
static int |
SMRU_VAL_SLAVE_MASTERED |
static int |
SMRU_VAL_STANDALONE |
Constructor and Description |
---|
SmruDaqJNI(SmruDaqSystem smruDaqSystem) |
Modifier and Type | Method and Description |
---|---|
int |
closeCard(int board) |
int |
getLED(int board,
int led) |
int |
getnDevices() |
int |
getNumDevices() |
long |
getSerialNumber(int boardId)
Get the serial number for a device.
|
int |
getSynchMode(int board)
Get a boards synch mode
|
boolean |
prepareChannel(int board,
int channel,
int gainIndex,
int filterIndex)
Sets the gain and filters for a channel
|
int |
prepareDevice(int board,
boolean reset)
This function will also load the card information and
open the card - so jni code keeps thos handles
and keeps on re-using them.
|
short[] |
readSamples(int board,
int channel,
int nSamples) |
boolean |
resetCard(int board) |
boolean |
setChannelMask(int board,
int channelMask) |
int |
setLED(int board,
int led,
int state) |
boolean |
setSampleRateIndex(int board,
int sampleRateIndex) |
int |
setSynchMode(int board,
int mode)
Set a board synch mode.
|
boolean |
startSystem(int board) |
boolean |
stopSystem(int board) |
boolean |
systemStopped(int board) |
int |
toggleLED(int board,
int led) |
public static final int SMRU_VAL_STANDALONE
public static final int SMRU_VAL_MASTER
public static final int SMRU_VAL_SLAVE
public static final int SMRU_VAL_SLAVE_MASTERED
public static final int SMRU_RET_OK
public SmruDaqJNI(SmruDaqSystem smruDaqSystem)
public int getNumDevices()
public int toggleLED(int board, int led)
public int setLED(int board, int led, int state)
public int getLED(int board, int led)
public int prepareDevice(int board, boolean reset)
cardName
- public int setSynchMode(int board, int mode)
board
- board numbermode
- synch mode (0,1,2,3)public int getSynchMode(int board)
board
- board numberpublic int closeCard(int board)
public boolean resetCard(int board)
public boolean setSampleRateIndex(int board, int sampleRateIndex)
public boolean setChannelMask(int board, int channelMask)
public boolean prepareChannel(int board, int channel, int gainIndex, int filterIndex)
board
- board numberchannel
- channel numbergainIndex
- gain indexfilterIndex
- filter indexpublic boolean startSystem(int board)
public boolean stopSystem(int board)
public boolean systemStopped(int board)
public short[] readSamples(int board, int channel, int nSamples)
public int getnDevices()
public long getSerialNumber(int boardId)
boardId
- board number