upm_bno055.BNO055_ACC_RANGE_T Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of upm_bno055 Show documentation
Show all versions of upm_bno055 Show documentation
Intelligent 9-axis Absolute Orientation Sensor
/* ----------------------------------------------------------------------------
* 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_bno055;
public final class BNO055_ACC_RANGE_T {
public final static BNO055_ACC_RANGE_T BNO055_ACC_RANGE_2G = new BNO055_ACC_RANGE_T("BNO055_ACC_RANGE_2G", javaupm_bno055JNI.BNO055_ACC_RANGE_2G_get());
public final static BNO055_ACC_RANGE_T BNO055_ACC_RANGE_4G = new BNO055_ACC_RANGE_T("BNO055_ACC_RANGE_4G", javaupm_bno055JNI.BNO055_ACC_RANGE_4G_get());
public final static BNO055_ACC_RANGE_T BNO055_ACC_RANGE_8G = new BNO055_ACC_RANGE_T("BNO055_ACC_RANGE_8G", javaupm_bno055JNI.BNO055_ACC_RANGE_8G_get());
public final static BNO055_ACC_RANGE_T BNO055_ACC_RANGE_16G = new BNO055_ACC_RANGE_T("BNO055_ACC_RANGE_16G", javaupm_bno055JNI.BNO055_ACC_RANGE_16G_get());
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static BNO055_ACC_RANGE_T swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + BNO055_ACC_RANGE_T.class + " with value " + swigValue);
}
private BNO055_ACC_RANGE_T(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private BNO055_ACC_RANGE_T(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private BNO055_ACC_RANGE_T(String swigName, BNO055_ACC_RANGE_T swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static BNO055_ACC_RANGE_T[] swigValues = { BNO055_ACC_RANGE_2G, BNO055_ACC_RANGE_4G, BNO055_ACC_RANGE_8G, BNO055_ACC_RANGE_16G };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}