Skip to content

InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/EConnectionTypeDesc.java

Packages

Name
com.inscoper.api

Classes

Name
enum com.inscoper.api.EConnectionTypeDesc
EConnectionTypeDesc enum defines types of driver connection descriptors.

Source code

/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.inscoper.api;
import com.inscoper.api.logging.*;

public enum EConnectionTypeDesc {
  NONE(InscoperJNI.EConnectionTypeDesc_NONE_get()),
  UART(InscoperJNI.EConnectionTypeDesc_UART_get()),
  USB_DEV(InscoperJNI.EConnectionTypeDesc_USB_DEV_get()),
  AOUT(InscoperJNI.EConnectionTypeDesc_AOUT_get()),
  TTL_IN(InscoperJNI.EConnectionTypeDesc_TTL_IN_get()),
  TTL_OUT(InscoperJNI.EConnectionTypeDesc_TTL_OUT_get()),
  PWM(InscoperJNI.EConnectionTypeDesc_PWM_get()),
  AIN(InscoperJNI.EConnectionTypeDesc_AIN_get()),
  RJ45(InscoperJNI.EConnectionTypeDesc_RJ45_get()),
  USB_SERIAL_DRIVER(256),
  USB_GENERIC_DRIVER(512),
  USB_HID_DRIVER(1024),
  ILDA(InscoperJNI.EConnectionTypeDesc_ILDA_get()),
  USB_SERIAL(InscoperJNI.EConnectionTypeDesc_USB_SERIAL_get()),
  USB_GENERIC(InscoperJNI.EConnectionTypeDesc_USB_GENERIC_get()),
  USB_HID(InscoperJNI.EConnectionTypeDesc_USB_HID_get()),
  USB_DRIVER_MASK(InscoperJNI.EConnectionTypeDesc_USB_DRIVER_MASK_get()),
  AOUT_GEN(InscoperJNI.EConnectionTypeDesc_AOUT_GEN_get()),
  SERIAL(InscoperJNI.EConnectionTypeDesc_SERIAL_get()),
  TTL_IN_GEN(InscoperJNI.EConnectionTypeDesc_TTL_IN_GEN_get()),
  TTL_OUT_GEN(InscoperJNI.EConnectionTypeDesc_TTL_OUT_GEN_get());

  public final int swigValue() {
    return swigValue;
  }

  public static EConnectionTypeDesc swigToEnum(int swigValue) {
    EConnectionTypeDesc[] swigValues = EConnectionTypeDesc.class.getEnumConstants();
    if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
      return swigValues[swigValue];
    for (EConnectionTypeDesc swigEnum : swigValues)
      if (swigEnum.swigValue == swigValue)
        return swigEnum;
    throw new IllegalArgumentException("No enum " + EConnectionTypeDesc.class + " with value " + swigValue);
  }

  @SuppressWarnings("unused")
  private EConnectionTypeDesc() {
    this.swigValue = SwigNext.next++;
  }

  @SuppressWarnings("unused")
  private EConnectionTypeDesc(int swigValue) {
    this.swigValue = swigValue;
    SwigNext.next = swigValue+1;
  }

  @SuppressWarnings("unused")
  private EConnectionTypeDesc(EConnectionTypeDesc swigEnum) {
    this.swigValue = swigEnum.swigValue;
    SwigNext.next = this.swigValue+1;
  }

  private final int swigValue;

  private static class SwigNext {
    private static int next = 0;
  }
}

Updated on 2026-09-03 at 12:14:19 +0200