4.2
Supported commands
The firmware supports a wide range of MEMS adapters; the next section provides the complete list of supported
commands (see
Table 3. Supported commands list
Then, split into sections, the list of commands available for each sensor supported by the eMotion firmware is
provided.
4.2.1
Commands list and description
Table 3.
Supported commands list
Command
Description
Returned value
*setdbXXXVY
Selects firmware according to the adapter connected
*start
Starts continuous data acquisition
Table 4. Returned values for *start command
*debug
Returns the output data in readable text format
Table 5. Returned values for *debug command
*stop
Stops data acquisition
*Zon
Forces 3-state
*Zoff
Exits from 3-state
*dev
Device name
e.g.: LIS3DH
*ver
Firmware version
e.g.: V1.0
*rAA
Accelerometer register read
e.g.: RAAhDDh
*wAADD
Accelerometer register write
*grAA
Gyroscope register read
e.g.: GRAAhDDh
*gwAADD
Gyroscope register write
*mrAA
Magnetometer register read
e.g.: MRAAhDDh
*mwAADD
Magnetometer register write
*prAA
Pressure sensor register read
e.g.: PRAAhDDh
*pwAADD
Pressure sensor register write
*hrAA
Humidity sensor register read
e.g.: HRAAhDDh
*hwAADD
Humidity sensor register write
*single
It gets a single X, Y, and Z data acquisition
Table 5. Returned values for *debug command
*list
Prints the list of MKIs supported
e.g.: MKI105V1
*listdev
Prints the list of devices supported
e.g.: LIS3DH
*echoon
Activates the write verbose mode
e.g.: RAAhDDh
*echooff
Deactivates the write verbose mode
*fiforst
Accelerometer “Reset mode” enable
st 0 0 0 0 0 0 IR FC FS
*fifomde
Accelerometer “FIFO mode” enable
st 0 0 0 0 0 0 IR FC FS
*fifostr
Accelerometer “FIFO Stream” enable
st 0 0 0 0 0 0 IR FC FS
*fifostf
Accelerometer “Stream-to-FIFO” enable
st 0 0 0 0 0 0 IR FC FS
*fifobtf
Accelerometer “Bypass-to-FIFO” enable
st 0 0 0 0 0 0 IR FC FS
*fifobts
Accelerometer “Bypass-to-Stream” enable
st 0 0 0 0 0 0 IR FC FS
*fifodstr
Accelerometer “Dynamic Stream” enable
st 0 0 0 0 0 0 IR FC FS
*gfiforst
Gyroscope “Reset mode” enable
st 0 0 0 0 0 0 IR FC FS
*gfifomde
Gyroscope “FIFO mode” enable
st 0 0 0 0 0 0 IR FC FS
UM0979
Supported commands
UM0979
-
Rev 6
page 13/39