Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-25
:BUS<n>:SPI:MOSI:SOURce
:BUS<n>:SPI:MOSI:SOURce <source>
:BUS<n>:SPI:MOSI:SOURce?
Sets or queries the MOSI data source of SPI decoding.
{D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|
D12|D13|D14|D15|CHANnel1|CHANnel2|CHANn
el3|CHANnel4|OFF}
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.
: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
:BUS<n>:SPI:MOSI:POLarity <polarity>
:BUS<n>:SPI:MOSI:POLarity?
Sets or queries the polarity of MOSI data line of SPI decoding.
 High: indicates that low level is 1, and high level is 0.
 Low: indicates that high level is 1, and low level is 0.
The query returns HIGH or LOW.
: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
:BUS<n>:SPI:DBITs <width>
:BUS<n>:SPI:DBITs?
Sets or queries the data width of SPI decoding.
The query returns an integer ranging from 4 to 32.
:BUS1:SPI:DBITs 10 /*Sets the data width of SPI decoding to 10.*/
:BUS1:SPI:DBITs? /*The query returns 10.*/