User Manual

Software Design
ZSTAR3 Reference Design Manual, Rev. 0.1
Freescale Semiconductor 5-35
Preliminary
Pr
e
l
i
m
i
n
a
ry
5.3.2.4 Zdata
The 5.3.2.4, “Zdata field follows the 5.3.2.3, “Zcommand field and may be empty if the actual command
doesn’t require any additional data. The data format is dependent on the 5.3.2.3, “Zcommand. A detailed
description is in the next chapter.
5.3.3 Original ZSTAR Zcommand Description
For more detail description of original ZSTAR Zcommands check RD3152MMA7260Q reference design
manual ZSTARRM Reference design manual - Original ZSTAR demo(RD3152MMA7260Q) RDM.
5.3.4 ZSTAR3 Protocol Zcommand Description
All commands with direction Sensor board to USB stick are replinish(lower 4 bits) by information of
sensor index.
Table 5-2. ZSTAR3 main commands Zcommand List
ZCommand
ZCommand
code
Direction Zdata
ZSTAR3_PYLON
0xA0 USB stick to Sensor Board Status and optional subcommand
ZSTAR3_DATA
0x50 Sensor Board to USB stick Accelerometers values, status info
ZSTAR3_DATA
0x60 Sensor Board to USB stick none
ZSTAR3_CONNECT
0x40 Both Calibration data, board info
ZSTAR3_ION
0x70 Sensor Board to USB stick Optional return read data from ION
Table 5-3. ZSTAR3 subcommands Zcommand List
ZCommand
ZCommand
code
Direction Zdata
ZSTAR3_GUI
‘g’ (0x67) USB stick to Sensor Board none
ZSTAR3_MODE
‘m’ {0x6D) USB stick to Sensor Board Set up data of new mode
ZSTAR3_OFF
‘o’ (0x6F) USB stick to Sensor Board none
ZSTAR3_GSEL
‘s’ (0x73) USB stick to Sensor Board g-range selection data to Sensor Board
ZSTAR3_DATARATE
‘d’ (0x64) USB stick to Sensor Board new datarate
ZSTAR3_FLAG
‘f’ (0x66) USB stick to Sensor Board none