All Downloads are FREE. Search and download functionalities are using the official Maven repository.

upm_apds9002.APDS9002 Maven / Gradle / Ivy

There is a newer version: 1.7.1
Show newest version
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.6
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package upm_apds9002;

public class APDS9002 {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected APDS9002(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(APDS9002 obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        javaupm_apds9002JNI.delete_APDS9002(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public APDS9002(int pin) {
    this(javaupm_apds9002JNI.new_APDS9002(pin), true);
  }

  public int value() {
    return javaupm_apds9002JNI.APDS9002_value(swigCPtr, this);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy