Package com.tinkerforge
Class BrickletAnalogOutV2
- java.lang.Object
-
- com.tinkerforge.DeviceBase
-
- com.tinkerforge.Device
-
- com.tinkerforge.BrickletAnalogOutV2
-
public class BrickletAnalogOutV2 extends Device
Generates configurable DC voltage between 0V and 12V
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tinkerforge.Device
Device.Identity
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description BrickletAnalogOutV2(java.lang.String uid, IPConnection ipcon)
Creates an object with the unique device ID \c uid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 bysetOutputVoltage(int)
.void
setOutputVoltage(int voltage)
Sets the voltage.-
Methods inherited from class com.tinkerforge.DeviceBase
getAPIVersion, getResponseExpected, setResponseExpected, setResponseExpectedAll
-
-
-
-
Field Detail
-
DEVICE_IDENTIFIER
public static final int DEVICE_IDENTIFIER
- See Also:
- Constant Field Values
-
DEVICE_DISPLAY_NAME
public static final java.lang.String DEVICE_DISPLAY_NAME
- See Also:
- Constant Field Values
-
FUNCTION_SET_OUTPUT_VOLTAGE
public static final byte FUNCTION_SET_OUTPUT_VOLTAGE
- See Also:
- Constant Field Values
-
FUNCTION_GET_OUTPUT_VOLTAGE
public static final byte FUNCTION_GET_OUTPUT_VOLTAGE
- See Also:
- Constant Field Values
-
FUNCTION_GET_INPUT_VOLTAGE
public static final byte FUNCTION_GET_INPUT_VOLTAGE
- See Also:
- Constant Field Values
-
FUNCTION_GET_IDENTITY
public static final byte FUNCTION_GET_IDENTITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BrickletAnalogOutV2
public BrickletAnalogOutV2(java.lang.String uid, IPConnection ipcon)
Creates an object with the unique device ID \c uid. and adds it to the IP Connection \c ipcon.
-
-
Method Detail
-
setOutputVoltage
public void setOutputVoltage(int voltage) throws TinkerforgeException
Sets the voltage.- Throws:
TinkerforgeException
-
getOutputVoltage
public int getOutputVoltage() throws TinkerforgeException
Returns the voltage as set bysetOutputVoltage(int)
.- Throws:
TinkerforgeException
-
getInputVoltage
public int getInputVoltage() throws TinkerforgeException
Returns the input voltage.- Throws:
TinkerforgeException
-
getIdentity
public Device.Identity getIdentity() throws TinkerforgeException
Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier. The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). A Bricklet connected to an :ref:`Isolator Bricklet <isolator_bricklet>` is always at position 'z'. The device identifier numbers can be found :ref:`here <device_identifier>`. |device_identifier_constant|- Specified by:
getIdentity
in classDevice
- Throws:
TinkerforgeException
-
-