Package cbsw.adept

Class JniAdeptDepp.Djtg

  • Enclosing class:
    JniAdeptDepp

    public static class JniAdeptDepp.Djtg
    extends java.lang.Object

    Native interface wrappers to Digilent Adept DJTG API.

    • Constructor Summary

      Constructors 
      Constructor Description
      Djtg()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean clock​(int hif, boolean tms, boolean tdi, int clks)  
      static boolean disable​(int hif)
      Disables the DJTG channel on the opened device.
      static boolean enable​(int hif)
      Enables the DJTG channel on the opened device.
      static java.lang.String getProperties​(int hif, int port)  
      static boolean putTdi​(int hif, int bits, byte[] snd, boolean tms)  
      static boolean putTdi​(int hif, int bits, byte[] snd, byte[] rcv, boolean tms)  
      static boolean putTms​(int hif, int bits, byte[] snd, boolean tdi)  
      static boolean putTms​(int hif, int bits, byte[] snd, byte[] rcv, boolean tdi)  
      static boolean putTmsTdi​(int hif, int bits, byte[] snd)  
      static boolean putTmsTdi​(int hif, int bits, byte[] snd, byte[] rcv)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Djtg

        public Djtg()
    • Method Detail

      • enable

        public static boolean enable​(int hif)

        Enables the DJTG channel on the opened device.

        Native wrapper.

        Parameters:
        hif - Internal handle of device.
        Returns:
        Return code, true=success, false=fail
      • disable

        public static boolean disable​(int hif)

        Disables the DJTG channel on the opened device.

        Native wrapper.

        Parameters:
        hif - Internal handle of device.
        Returns:
        Return code, true=success, false=fail
      • getProperties

        public static java.lang.String getProperties​(int hif,
                                                     int port)
      • putTmsTdi

        public static boolean putTmsTdi​(int hif,
                                        int bits,
                                        byte[] snd,
                                        byte[] rcv)
      • putTmsTdi

        public static boolean putTmsTdi​(int hif,
                                        int bits,
                                        byte[] snd)
      • putTms

        public static boolean putTms​(int hif,
                                     int bits,
                                     byte[] snd,
                                     byte[] rcv,
                                     boolean tdi)
      • putTms

        public static boolean putTms​(int hif,
                                     int bits,
                                     byte[] snd,
                                     boolean tdi)
      • putTdi

        public static boolean putTdi​(int hif,
                                     int bits,
                                     byte[] snd,
                                     byte[] rcv,
                                     boolean tms)
      • putTdi

        public static boolean putTdi​(int hif,
                                     int bits,
                                     byte[] snd,
                                     boolean tms)
      • clock

        public static boolean clock​(int hif,
                                    boolean tms,
                                    boolean tdi,
                                    int clks)