~ubuntu-branches/ubuntu/maverick/electric/maverick

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/simulation/test/Netscan4JNI.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package com.sun.electric.tool.simulation.test;
 
2
 
 
3
/* HeaterBringup.java
 
4
*
 
5
* Copyright (c) 2004 by Sun Microsystems, Inc.
 
6
*
 
7
* Created: September 21, 2004
 
8
*/
 
9
 
 
10
/**
 
11
 * JNI implementation of wrapper for Netscan C library
 
12
 * 
 
13
 * @author Alex Chow
 
14
 * @author Tom O'Neill (toneill)
 
15
 */
 
16
 
 
17
class Netscan4JNI {
 
18
    static {
 
19
        System.out.print("Loading NetUSB library... ");
 
20
        System.loadLibrary("Netscan4JNIe");
 
21
        System.out.println("Done.");
 
22
    }
 
23
 
 
24
    /** Suppress default constructor to make class non-instantiable */
 
25
    private Netscan4JNI() {
 
26
    }
 
27
 
 
28
    // native function declarations
 
29
    // refer to the Netscan documentation from vendor for detailed information
 
30
    public native static int netUSB_Connect(String destination);
 
31
 
 
32
    public native static int netUSB_hard_reset(long kHz, int mV);
 
33
 
 
34
    public native static int netUSB_set_scan_clk(long kHz);
 
35
 
 
36
    public native static int netUSB_set_trst(int signal);
 
37
 
 
38
    public native static int netUSB_Disconnect();
 
39
 
 
40
    public native static int netUSB_tms_reset(int tap);
 
41
 
 
42
    // public native static int net_move_to_state(int state, int tap);
 
43
 
 
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);
 
47
 
 
48
    public native static int netUSB_scan_dr(short[] scan_in, long bit_length,
 
49
            short[] scan_out, int tap);
 
50
 
 
51
    public native static int netUSB_AccessScanGPIO(int tap, int gpio, int mode,
 
52
            int value);
 
53
}