Difference between revisions of "Firmware-73 Command-011"

From I-CubeX Wiki
Jump to: navigation, search
Line 9: Line 9:
 
{|
 
{|
 
|00000yyy:
 
|00000yyy:
 +
|x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the status for each port
 
|-
 
|-
 
|
 
|

Revision as of 04:10, 20 November 2016

DUMP STREAM (11, 0Bh)

The DUMP STREAM command can be used to retrieve the sampling activation status of a port (configured for either an analog sensor or an I2C sensor) of a USB-microDig. The command can be used in both host and stand-alone modes of operation. Upon completion of the DUMP STREAM command the USB-microDig sends out the same message as the STREAM command.

The DUMP STREAM command has no [BODY].

The [BODY] of the STREAM command consists of a single 7-bit byte with the following format :

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

Example:

In order to retrieve the activation status of port 2 the following message is sent:

240, 125, 0 {DEV}, 11 {DUMP STREAM}, 2, 247 (F0h, 7Dh, 00h, 0Bh, 02h, F7h)