Firmware-812 Command-018
DUMP FUNCTION (18, 12h)
The DUMP FUNCTION command can be used to retrieve the function settings data for a port, whether configured for an analog sensor or a digital (I2C) sensor. 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 WiDig sends out the same message as the FUNCTION command but with DUMP FUNCTION as the command byte.
The [BODY] of the DUMP FUNCTION command contains a single 7-bit byte:
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]; port number, where the first port number = 0 and the last (8th) input number = 7 |
Example:
- 240, 125, 0 {DEV}, 18 {DUMP FUNCTION}, 2 {port}, 247 (F0h, 7Dh, 00h, 12h, 02h, F7h)