com.github.mbelling.ws281x.jni.ws2811_t Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpi-ws281x-java Show documentation
Show all versions of rpi-ws281x-java Show documentation
Java wrapper for rpi_ws281x library using SWIG
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.github.mbelling.ws281x.jni;
public class ws2811_t {
private long swigCPtr;
protected boolean swigCMemOwn;
protected ws2811_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ws2811_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
rpi_ws281xJNI.delete_ws2811_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setRender_wait_time(java.math.BigInteger value) {
rpi_ws281xJNI.ws2811_t_render_wait_time_set(swigCPtr, this, value);
}
public java.math.BigInteger getRender_wait_time() {
return rpi_ws281xJNI.ws2811_t_render_wait_time_get(swigCPtr, this);
}
public void setDevice(SWIGTYPE_p_ws2811_device value) {
rpi_ws281xJNI.ws2811_t_device_set(swigCPtr, this, SWIGTYPE_p_ws2811_device.getCPtr(value));
}
public SWIGTYPE_p_ws2811_device getDevice() {
long cPtr = rpi_ws281xJNI.ws2811_t_device_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_ws2811_device(cPtr, false);
}
public void setRpi_hw(SWIGTYPE_p_rpi_hw_t value) {
rpi_ws281xJNI.ws2811_t_rpi_hw_set(swigCPtr, this, SWIGTYPE_p_rpi_hw_t.getCPtr(value));
}
public SWIGTYPE_p_rpi_hw_t getRpi_hw() {
long cPtr = rpi_ws281xJNI.ws2811_t_rpi_hw_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_rpi_hw_t(cPtr, false);
}
public void setFreq(long value) {
rpi_ws281xJNI.ws2811_t_freq_set(swigCPtr, this, value);
}
public long getFreq() {
return rpi_ws281xJNI.ws2811_t_freq_get(swigCPtr, this);
}
public void setDmanum(int value) {
rpi_ws281xJNI.ws2811_t_dmanum_set(swigCPtr, this, value);
}
public int getDmanum() {
return rpi_ws281xJNI.ws2811_t_dmanum_get(swigCPtr, this);
}
public void setChannel(ws2811_channel_t value) {
rpi_ws281xJNI.ws2811_t_channel_set(swigCPtr, this, ws2811_channel_t.getCPtr(value), value);
}
public ws2811_channel_t getChannel() {
long cPtr = rpi_ws281xJNI.ws2811_t_channel_get(swigCPtr, this);
return (cPtr == 0) ? null : new ws2811_channel_t(cPtr, false);
}
public ws2811_t() {
this(rpi_ws281xJNI.new_ws2811_t(), true);
}
}