RIGOL  Chapter 2 Command System 
2-54    MSO1000Z/DS1000Z Programming Guide 
:DECoder<n>:SPI:POLarity 
:DECoder<n>:SPI:POLarity <pol> 
:DECoder<n>:SPI:POLarity? 
Set or query the polarity of the SDA data line in SPI decoding. 
  NEGative:  . The low level is 1. 
  POSitive:  . The high level is 1. 
The query returns NEG or POS. 
: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 
:DECoder<n>:SPI:EDGE <edge> 
:DECoder<n>:SPI:EDGE? 
Set or query the clock type when the instrument samples the data line in SPI decoding.   
The query returns RISE or FALL. 
: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 
:DECoder<n>:SPI:ENDian <endian> 
:DECoder<n>:SPI:ENDian? 
Set or query the endian of the SPI decoding data. 
The query returns LSB or MSB. 
:DECoder1:SPI:ENDian MSB   /*Set the data endian of the SPI decoding to MSB*/ 
:DECoder1:SPI:ENDian?              /*The query returns MSB*/