..
 #############################################################
 # This file was automatically generated on 2015-05-08.      #
 #                                                           #
 # If you have a bugfix for this file and want to commit it, #
 # please fix the bug in the generator. You can find a link  #
 # to the generators git repository on tinkerforge.com       #
 #############################################################

:orphan:
:breadcrumbs: <a href="../../index.html">Home</a> / <a href="../../index.html#software-tcpip">Software</a> / TCP/IP - Analog Out Bricklet 2.0

.. |device_identifier_constant| unicode:: 0xA0
   :trim:

.. _analog_out_v2_bricklet_tcpip:

TCP/IP - Analog Out Bricklet 2.0
================================

.. note::
 This Bricklet is currently in the prototype stage and the software/hardware
 as well as the documentation is in an incomplete state.


This is the description of the :ref:`TCP/IP protocol <llproto_tcpip>` for the :ref:`Analog Out Bricklet 2.0 <analog_out_v2_bricklet>`. General information and technical
specifications for the Analog Out Bricklet 2.0 are summarized in its :ref:`hardware description
<analog_out_v2_bricklet_description>`.

.. _analog_out_v2_bricklet_tcpip_api:

API
---

A general description of the TCP/IP protocol structure can be found
:ref:`here <llproto_tcpip>`.




Basic Functions
^^^^^^^^^^^^^^^



.. tcpip:function:: BrickletAnalogOutV2.set_output_voltage

 :functionid: 1
 :request voltage: uint16

 :noresponse: no response

 Sets the voltage in mV. The possible range is 0V to 12V (0-12000).
 
.. tcpip:function:: BrickletAnalogOutV2.get_output_voltage

 :functionid: 2
 :emptyrequest: empty payload

 :response voltage: uint16

 Returns the voltage as set by :tcpip:func:`set_output_voltage <BrickletAnalogOutV2.set_output_voltage>`.
 


Advanced Functions
^^^^^^^^^^^^^^^^^^

.. tcpip:function:: BrickletAnalogOutV2.get_input_voltage

 :functionid: 3
 :emptyrequest: empty payload

 :response voltage: uint16

 Returns the input voltage in mV.
 
.. tcpip:function:: BrickletAnalogOutV2.get_identity

 :functionid: 255
 :emptyrequest: empty payload

 :response uid: char[8]
 :response connected_uid: char[8]
 :response position: char
 :response hardware_version: uint8[3]
 :response firmware_version: uint8[3]
 :response device_identifier: uint16

 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' or 'd'.
 
 The device identifier numbers can be found :ref:`here <device_identifier>`.
 |device_identifier_constant|
 


