Instructions

Chapter 2 Command System RIGOL
MSO5000-E Programming Guide 2-25
Return
Format
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14,
D15, CHAN1, CHAN2, 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.*/
:BUS<n>:SPI:ENDian
Syntax :BUS<n>:SPI:ENDian <endian>
:BUS<n>:SPI:ENDian?
Description
Sets or queries the endian of data transmission of SPI decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<endian>
Discrete
{MSB|LSB}
MSB
Remarks
MSB: indicates Most Significant Bit transmission sequence, i.g. the highest bit of