Difference between revisions of "Firmware-73 Command-018"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==DUMP FUNCTION (18, 12h)== | ==DUMP FUNCTION (18, 12h)== | ||
− | The DUMP FUNCTION command can be used to retrieve the function settings data for a sensor | + | 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 USB-microDig sends out the same message as the [[Firmware-73 Command-008 |FUNCTION command]]. |
The [BODY] of the DUMP FUNCTION command contains a single 7-bit byte: | The [BODY] of the DUMP FUNCTION command contains a single 7-bit byte: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| | {| | ||
|0000xyyy: | |0000xyyy: | ||
|x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the function settings for each port | |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]; | + | |- |
+ | | | ||
+ | |yyy = [0..7]; port number, where the first port number = 0 and the last (8th) input number = 7 | ||
|} | |} | ||
Example: | Example: | ||
− | :240, 125, 0 {DEV}, 18 {DUMP FUNCTION}, 2 { | + | :240, 125, 0 {DEV}, 18 {DUMP FUNCTION}, 2 {port}, 247 (F0h, 7Dh, 00h, 12h, 02h, F7h) |
Latest revision as of 21:01, 13 March 2018
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 USB-microDig sends out the same message as the FUNCTION command.
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)