The other arguments are the parameters of the firmware command. These arguments are optional since not all commands use the same number of parameters. Unnecessary arguments you can leave out. Information about the parameters you can find in appendix 4. You can ignore the parameters ”preamble”, ”command” und ”end flag” listed in this document. These parameters are assigned the right value automatically. The parameters that you pass to the function MCA_COMM are always long integer. Within the function these parameters are partially passed on to variables with another data type, therefore it is imperative that the maximum values specified in the document are not exceeded. The return value indicates the result of the data transfer. It can be one of the following values:

ERROR_OK

ERROR_INTERFACE ERROR_INVALID_COMMAND ERROR_COMMUNICATION ERROR_INVALID_PARAM

=0 successful data transfer

=1 communication port is not initialized

=2 unknown command

=3 faulty data transfer

=4 invalid parameter

A3.1.3 Functions to work with the MCA

For the work with the MCA a lot of functions are available. You can subdivide all functions in five groups:

Function for resetting the MCA (MMCA_RESET)

Functions for starting and stopping the data acquisition (MMCA_..._AQUIRE)

Functions for clearing (MMCA_CLEAR_...)

Functions for setting (MMCA_SET_...)

Functions for query (MMCA_QUERY_...)

The query functions are handed over a reference to a specific data structure. You can derive the name of the structure from the name of the function, by leaving out ”MMCA_” from the function name. (e. g. function MMCA_QUERY_STATE requires the data structur QUERY_STATE). The functions and data structures are listed and described in chapter A3.2. You can also find important information in the files mca32com.bas (Visual Basic) and mca_comm.h (C/C++).

The return value indicates the result of the data transfer. It can be one of the following values:

ERROR_OK

= 0

successful data transfer

ERROR_INTERFACE

= 1

communication port is not initialized

ERROR_COMMUNICATION

=

3

faulty data transfer

ERROR_INVALID_PARAM

=

4

invalid parameter

37

Page 37
Image 37
Braun MCA166-USB user manual A3.1.3 Functions to work with the MCA

MCA166-USB specifications

The Braun MCA166-USB is a compact and versatile charging device designed for modern lifestyles. This product expertly combines functionality with portability, making it an essential accessory for people on the go. One of the key features of the Braun MCA166-USB is its dual charging capability. It comes equipped with multiple USB ports, allowing users to charge various devices simultaneously, from smartphones to tablets. This multi-device functionality eliminates the need for multiple chargers cluttering your workspace or travel bag.

The device supports fast charging technology, which is particularly beneficial for users who need quick power boosts. With a maximum output of 2.4A per port, the Braun MCA166-USB ensures that your devices are energized swiftly, reducing downtime and keeping you connected during busy days. Additionally, the device is compatible with a wide range of charging protocols, offering versatility for different brands and models.

The Braun MCA166-USB features an intelligent charging system that recognizes the connected device and delivers the optimal charging current. This not only enhances the efficiency of charging but also protects your devices from any potential damage caused by overcharging.

Constructed with a sleek and sturdy design, the Braun MCA166-USB is not just about functionality; it is also aesthetically pleasing. Its compact size makes it perfect for portability, easily fitting into a pocket or small bag. The durability of the materials used ensures that the charger withstands the rigors of travel while remaining stylish.

Another highlight of the Braun MCA166-USB is its safety features. It incorporates multiple protection mechanisms, including short-circuit prevention and temperature control, ensuring a safe charging environment for your devices.

In summary, the Braun MCA166-USB emerges as an innovative solution for those seeking a reliable charging option. Its robust features, such as dual USB ports, fast charging capabilities, intelligent charging control, and safety measures, make it an ideal choice for anyone looking to stay powered up while balancing a busy lifestyle. With its sleek design and durable construction, the Braun MCA166-USB undoubtedly stands out as a multifaceted charging device for the modern user.