User manual

RIGOL Chapter 2 Command System
2-54 MSO1000Z/DS1000Z Programming Guide
:DECoder<n>:SPI:POLarity
Syntax :DECoder<n>:SPI:POLarity <pol>
:DECoder<n>:SPI:POLarity?
Description Set or query the polarity of the SDA data line in SPI decoding.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<pol> Discrete {NEGative|POSitive} POSitive
Explanation
NEGative:
. The low level is 1.
POSitive: . The high level is 1.
Return
Format
The query returns NEG or POS.
Example
:DECoder1:SPI:POLarity NEG ative /*Set the polarity of the SDA data line in SPI
decoding to negative*/
:DECoder1:SPI:POLarity? /*The query returns NEG*/
:DECoder<n>:SPI:EDGE
Syntax :DECoder<n>:SPI:EDGE <edge>
:DECoder<n>:SPI:EDGE?
Description
Set or query the clock type when the instrument samples the data line in SPI decoding.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<edge> Discrete {RISE|FALL} RISE
Return
Format
The query returns RISE or FALL.
Example
:DECoder1:SPI:EDGE FALL /*Set the instrument to sample data on the falling edge
of the clock in SPI decoding*/
:DECoder1:SPI:EDGE? /*The query returns FALL*/
:DECoder<n>:SPI:ENDian
Syntax :DECoder<n>:SPI:ENDian <endian>
:DECoder<n>:SPI:ENDian?
Description Set or query the endian of the SPI decoding data.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
<endian> Discrete {LSB|MSB} MSB
Return
Format
The query returns LSB or MSB.
Example
:DECoder1:SPI:ENDian MSB /*Set the data endian of the SPI decoding to MSB*/
:DECoder1:SPI:ENDian? /*The query returns MSB*/