Firmware-73 Command-018

From I-CubeX Wiki
Revision as of 04:28, 20 November 2016 by Admin (talk | contribs)
Jump to: navigation, search

DUMP FUNCTION (18, 12h)

The DUMP FUNCTION command can be used to retrieve the function settings data for a sensor input or I2C port. The command can be used in both host and stand-alone modes of operation. In host mode it retrieves the function number from volatile memory and the other function settings from non-volatile memory. In stand-alone mode it retrieves all function settings from non-volatile memory. Upon completion of the DUMP FUNCTION command the USB-microDig sends out the same message as the FUNCTION command.

The [BODY] of the DUMP FUNCTION command contains a single 7-bit byte:

Analog sensors:

0000xyyy: x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the function settings for each port yyy = [0..7]; sensor input number, where the first input number = 0 and the last (8th) input number = 7

Digital (I2C) sensors:

00000yyy: yyy = [0..6]; I2C port number, where the first port number = 0 and the last (7th) port number = 6

Example:

240, 125, 0 {DEV}, 18 {DUMP FUNCTION}, 2 {input or port}, 247 (F0h, 7Dh, 00h, 18h, 02h, F7h)