Command Description Returned value
*gfifostr Gyroscope “FIFO Stream” enable st 0 0 0 0 0 0 IR FC FS
*gfifostf Gyroscope “Stream-to-FIFO” enable st 0 0 0 0 0 0 IR FC FS
*gfifobtf Gyroscope “Bypass-to-FIFO” enable st 0 0 0 0 0 0 IR FC FS
*gfifobts Gyroscope “Bypass-to-Stream” enable st 0 0 0 0 0 0 IR FC FS
*gfifodstr Gyroscope “Dynamic Stream” enable st 0 0 0 0 0 0 IR FC FS
*mfiforst Magnetometer “Reset mode” enable st 0 0 0 0 0 0 IR FC FS
*mfifomde Magnetometer “FIFO mode” enable st 0 0 0 0 0 0 IR FC FS
*mfifostr Magnetometer “FIFO Stream” enable st 0 0 0 0 0 0 IR FC FS
*mfifostf Magnetometer “Stream-to-FIFO” enable st 0 0 0 0 0 0 IR FC FS
*mfifobtf Magnetometer “Bypass-to-FIFO” enable st 0 0 0 0 0 0 IR FC FS
*mfifobts Magnetometer “Bypass-to-Stream” enable st 0 0 0 0 0 0 IR FC FS
*mfifodstr Magnetometer “Dynamic Stream” enable st 0 0 0 0 0 0 IR FC FS
*pfiforst Pressure sensor “Reset mode” enable st 0 0 0 0 0 0 IR FC FS
*pfifomde Pressure sensor “FIFO mode” enable st 0 0 0 0 0 0 IR FC FS
*pfifostr Pressure sensor “FIFO Stream” enable st 0 0 0 0 0 0 IR FC FS
*pfifostf Pressure sensor “Stream-to-FIFO” enable st 0 0 0 0 0 0 IR FC FS
*pfifobtf Pressure sensor “Bypass-to-FIFO” enable st 0 0 0 0 0 0 IR FC FS
*pfifobts Pressure sensor “Bypass-to-Stream” enable st 0 0 0 0 0 0 IR FC FS
*pfifodstr Pressure sensor “Dynamic Stream” enable st 0 0 0 0 0 0 IR FC FS
*PDON Sets power-down pin
*PDOFF Clears power-down pin
*STON Sets self-test pin
*STOFF Clears self-test pin
*HPON Sets high-pass filter pin
*HPOFF Clears high-pass filter pin
*FSON Sets full-scale pin
*FSOFF Clears full-scale pin
Note: IR: interrupt byte; FC: FIFO control register; FS: FIFO source register.
Set demonstration board
The command *setdbxxxvy selects the part of the firmware able to handle the adapter board sensor connected to
the board. e.g., in order to select the firmware for the LIS3DH the command must be: *setdb105V1. The D6 LED
(green) is automatically switched on.
Start command
The *start command initiates the continuous data acquisition. When this command is sent to the device, it returns
a string of bytes (plus carriage return and line feed) similar to “st OUT1 OUT2 OUT3 IR BT”.
The first two bytes are always the ASCII char “s” and “t” which correspond to the hexadecimal values {73h 74h}.
OUT1, OUT2, and OUT3 are the bytes that contain the values measured at device outputs; if the output data is
represented on more than 8 bits, OUT1, OUT2, and OUT3 are split into two bytes: high byte (e.g.: “XH”) and low
byte (e.g.: “XL”).
IR contains the interrupt bytes and BT contains the bytes that describe the state of the buttons integrated on the
board.
UM0979
Supported commands
UM0979 - Rev 6
page 14/39
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.