|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ni.rio.NiFpga
public class NiFpga
The Nifpga class provides access to the FPGA on the cRIO. This is a wrapper around the accessors in Nifpga.h
| Field Summary |
|---|
| Method Summary | |
|---|---|
static void |
configureFifo(int hClient,
int channel,
int fifoDepthInElements,
NiRioStatus status)
Specifies the depth of the host memory part of the DMA FifO. |
static void |
readFifoU32(int hClient,
int channel,
Pointer buf,
int num,
int timeout,
IntByReference remaining,
NiRioStatus status)
Reads from a target-to-host FifO of unsigned 32-bit integers. |
static int |
readU32(int hClient,
int offset,
NiRioStatus status)
Reads an unsigned 32-bit integer value from a given offset |
static void |
reserveIrqContext(int hClient,
IntByReference context,
NiRioStatus status)
IRQ contexts are single-threaded; only one thread can wait with a particular context at any given time. |
static void |
startFifo(int hClient,
int channel,
NiRioStatus status)
Starts a FifO. |
static void |
stopFifo(int hClient,
int channel,
NiRioStatus status)
Stops a FifO. |
static void |
unreserveIrqContext(int hClient,
IntByReference context,
NiRioStatus status)
Unreserves an IRQ context obtained from reserveIrqContext. |
static int |
waitOnIrqs(int hClient,
IntByReference context,
int irqs,
int timeout,
NiRioStatus status)
This is a blocking function that stops the calling thread until the FPGA asserts any IRQ in the irqs parameter, or until the function call times out. |
static void |
writeU32(int hClient,
int offset,
int value,
NiRioStatus status)
Writes an unsigned 32-bit integer value to a given control or indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void configureFifo(int hClient,
int channel,
int fifoDepthInElements,
NiRioStatus status)
hClient - handle to a currently open sessionchannel - FifO to configurefifoDepthInElements - requested number of elements in the host memory part of the
DMA FifOstatus - result of the call
public static void startFifo(int hClient,
int channel,
NiRioStatus status)
hClient - handle to a currently open sessionchannel - FifO to startstatus - result of the call
public static void stopFifo(int hClient,
int channel,
NiRioStatus status)
hClient - handle to a currently open sessionchannel - FifO to startstatus - result of the call
public static void readFifoU32(int hClient,
int channel,
Pointer buf,
int num,
int timeout,
IntByReference remaining,
NiRioStatus status)
hClient - handle to a currently open sessionchannel - target-to-host FifO from which to readbuf - outputs the data that was readnum - number of elements to readtimeout - timeout in milliseconds, or Nifpga_InfiniteTimeoutremaining - outputs the number of elements
remaining in the host memory part of the DMA FifOstatus - result of the call
public static void writeU32(int hClient,
int offset,
int value,
NiRioStatus status)
hClient - handle to a currently open sessionoffset - control or indicator to which to writevalue - value to writestatus - result of the call
public static int readU32(int hClient,
int offset,
NiRioStatus status)
hClient - handle to a currently open sessionoffset - indicator or control from which to readstatus - result of the call
public static void reserveIrqContext(int hClient,
IntByReference context,
NiRioStatus status)
hClient - handle to a currently open sessioncontext - outputs the IRQ contextNiRioStatus - result of the call
public static void unreserveIrqContext(int hClient,
IntByReference context,
NiRioStatus status)
session - handle to a currently open sessioncontext - IRQ context to unreserve
public static int waitOnIrqs(int hClient,
IntByReference context,
int irqs,
int timeout,
NiRioStatus status)
hClient - handle to a currently open sessioncontext - IRQ context with which to waitirqs - bitwise OR of Nifpga_Irqstimeout - timeout in milliseconds, or Nifpga_InfiniteTimeoutirqsAsserted - if non-NULL, outputs bitwise OR of IRQs that were
assertedtimedOut - if non-NULL, outputs whether the timeout expired
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||