Difference between revisions of "Firmware-72 Command-018"
 (Created page with "==SEND FUNCTION (18, 12h)==  The SEND FUNCTION command can be used to get the function settings data for a sensor input or I2C port. The command can be used in both host and s...")  | 
				|||
| Line 21: | Line 21: | ||
Example:  | Example:  | ||
| − | 240, 125, 0 {DEV}, 18 {SEND FUNCTION}, 2 {input or port}, 247 (F0h, 7Dh, 00h, 18h, 02h, F7h)  | + | :240, 125, 0 {DEV}, 18 {SEND FUNCTION}, 2 {input or port}, 247 (F0h, 7Dh, 00h, 18h, 02h, F7h)  | 
Revision as of 15:45, 3 November 2015
SEND FUNCTION (18, 12h)
The SEND FUNCTION command can be used to get 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 SEND FUNCTION command the USB-microDig sends out the same message as the FUNCTION command.
The [BODY] of the SEND FUNCTION command contains a single 7-bit byte:
Analog sensors:
| 00000yyy: | 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 {SEND FUNCTION}, 2 {input or port}, 247 (F0h, 7Dh, 00h, 18h, 02h, F7h)