1
package com.sun.electric.tool.simulation.test;
5
* Copyright (c) 2004 by Sun Microsystems, Inc.
7
* Created: September 21, 2004
11
* JNI implementation of wrapper for Netscan C library
14
* @author Tom O'Neill (toneill)
19
System.out.print("Loading NetUSB library... ");
20
System.loadLibrary("Netscan4JNIe");
21
System.out.println("Done.");
24
/** Suppress default constructor to make class non-instantiable */
25
private Netscan4JNI() {
28
// native function declarations
29
// refer to the Netscan documentation from vendor for detailed information
30
public native static int netUSB_Connect(String destination);
32
public native static int netUSB_hard_reset(long kHz, int mV);
34
public native static int netUSB_set_scan_clk(long kHz);
36
public native static int netUSB_set_trst(int signal);
38
public native static int netUSB_Disconnect();
40
public native static int netUSB_tms_reset(int tap);
42
// public native static int net_move_to_state(int state, int tap);
44
// convention for in/out is wrong in the book
45
public native static int netUSB_scan_ir(short[] scan_in, long bit_length,
46
short[] scan_out, int tap);
48
public native static int netUSB_scan_dr(short[] scan_in, long bit_length,
49
short[] scan_out, int tap);
51
public native static int netUSB_AccessScanGPIO(int tap, int gpio, int mode,