public class BrickletAnalogOutV2 extends Device
Device.Identity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEVICE_DISPLAY_NAME |
static int |
DEVICE_IDENTIFIER |
static byte |
FUNCTION_GET_IDENTITY |
static byte |
FUNCTION_GET_INPUT_VOLTAGE |
static byte |
FUNCTION_GET_OUTPUT_VOLTAGE |
static byte |
FUNCTION_SET_OUTPUT_VOLTAGE |
Constructor and Description |
---|
BrickletAnalogOutV2(java.lang.String uid,
IPConnection ipcon)
Creates an object with the unique device ID \c uid.
|
Modifier and Type | Method and Description |
---|---|
Device.Identity |
getIdentity()
Returns the UID, the UID where the Bricklet is connected to,
the position, the hardware and firmware version as well as the
device identifier.
|
int |
getInputVoltage()
Returns the input voltage.
|
int |
getOutputVoltage()
Returns the voltage as set by
setOutputVoltage(int) . |
void |
setOutputVoltage(int voltage)
Sets the voltage.
|
getAPIVersion, getResponseExpected, setResponseExpected, setResponseExpectedAll
public static final int DEVICE_IDENTIFIER
public static final java.lang.String DEVICE_DISPLAY_NAME
public static final byte FUNCTION_SET_OUTPUT_VOLTAGE
public static final byte FUNCTION_GET_OUTPUT_VOLTAGE
public static final byte FUNCTION_GET_INPUT_VOLTAGE
public static final byte FUNCTION_GET_IDENTITY
public BrickletAnalogOutV2(java.lang.String uid, IPConnection ipcon)
public void setOutputVoltage(int voltage) throws TinkerforgeException
TinkerforgeException
public int getOutputVoltage() throws TinkerforgeException
setOutputVoltage(int)
.TinkerforgeException
public int getInputVoltage() throws TinkerforgeException
TinkerforgeException
public Device.Identity getIdentity() throws TinkerforgeException
getIdentity
in class Device
TinkerforgeException
Copyright © 2021 Tinkerforge GmbH. All rights reserved.