Instructions
Chapter 2 Command System  RIGOL 
MSO7000/DS7000 Programming Guide  2-25   
:BUS<n>:SPI:MOSI:SOURce 
Syntax 
:BUS<n>:SPI:MOSI:SOURce <source> 
:BUS<n>:SPI:MOSI:SOURce? 
Description 
Sets or queries the MOSI data source of SPI decoding. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<source> 
Discrete 
{D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|
D12|D13|D14|D15|CHANnel1|CHANnel2|CHANn
el3|CHANnel4|OFF} 
OFF 
Return 
Format 
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, 
D15, CHAN1, CHAN2, CHAN3, CHAN4, or OFF. 
Example 
:BUS1:SPI:MOSI:SOURce D0      /*Sets the MOSI data source of SPI decoding to D0.*/ 
:BUS1:SPI:MOSI:SOURce?          /*The query returns D0.*/ 
:BUS<n>:SPI:MOSI:POLarity 
Syntax 
:BUS<n>:SPI:MOSI:POLarity <polarity> 
:BUS<n>:SPI:MOSI:POLarity? 
Description 
Sets or queries the polarity of MOSI data line of SPI decoding. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<polarity> 
Discrete 
{HIGH|LOW} 
LOW 
Remarks 
  High: indicates that low level is 1, and high level is 0. 
  Low: indicates that high level is 1, and low level is 0. 
Return 
Format 
The query returns HIGH or LOW. 
Example 
:BUS1:SPI:MOSI:POLarity HIGH            /*Sets the polarity of MOSI data line to HIGH.*/ 
:BUS1:SPI:MOSI:POLarity?                    /*The query returns HIGH.*/ 
:BUS<n>:SPI:DBITs 
Syntax 
:BUS<n>:SPI:DBITs <width> 
:BUS<n>:SPI:DBITs? 
Description 
Sets or queries the data width of SPI decoding. 
Parameter 
Name 
Type 
Range 
Default 
<n> 
Discrete 
{1|2|3|4} 
—— 
<width> 
Integer 
4 to 32 
8 
Return 
Format 
The query returns an integer ranging from 4 to 32. 
Example 
:BUS1:SPI:DBITs 10          /*Sets the data width of SPI decoding to 10.*/ 
:BUS1:SPI:DBITs?            /*The query returns 10.*/ 










