![ST eMotion Скачать руководство пользователя страница 23](http://html.mh-extra.com/html/st/emotion/emotion_user-manual_1355657023.webp)
DocID017768 Rev 4
23/39
UM0979
Supported commands
39
Humidity sensor register read
The *hrAA command allows the contents of the humidity sensor registers in the
demonstration kit board to be read. AA, expressed as a hexadecimal value and written in
upper case, represents the address of the register to be read.
Once the read command is issued, the board returns HRAAhDDh, where AA is the address
sent by the user and DD is the data present in the register.
For example, to read the register at address 0x20, the user issues the command *hr20,
which returns, e.g., HR20h10h.
Humidity sensor register write
The *hwAADD command allows writing to the contents of the humidity sensor registers in
the demonstration kit board. AA and DD, expressed as hexadecimal values and written in
upper case, represent, respectively, the address of the register and the data to be written. To
write 0xC7 to the register at address 0x20, for example, the user issues the command
*hw20C7.
Single acquisition
The *single command may be used to read just one set of data. It requires the sensor to be
well configured and once invoked, returns the read values of one data sample.
The format of the returned value is exactly the same as the *debug command (
Table 5
), in
fact, the *debug command is used for continuous data acquisition purposes whereas a
*single command returns just one set of data.
List
The *list command returns the list of MKI adapters supported by the firmware, printed in
ASCII format.
Listdev
The *listdev command returns the list of devices supported by the firmware, printed in ASCII
format.
Echo on
The *echoon command is used to activate the write command verbose mode. Once this
command is launched, after every write command the firmware automatically performs also
a read of the register just written. This function is useful to check if the write has succeeded.
For instance, if the *echoon command is launched, after a *w2027 it results R2027.
Echo off
The *echooff command stops the write command verbose mode.
Accelerometer FIFO reset enable
The *fiforst command enables the accelerometer FIFO reset mode. For more details see the
AN3308 application note.