User manual
Chapter 2 Command System RIGOL
DS4000E Programming Guide 2-33
:BUS<n>:SPI:MOSI:POLarity
Syntax
:BUS<n>:SPI:MOSI:POLarity <pol>
:BUS<n>:SPI:MOSI:POLarity?
Description
Sets or queries the polarity of MOSI data line of SPI decoding on the specified bus.
Parameter
Name Type Range Default
<n> Discrete {1|2}
--
<pol> Discrete {HIGH|LOW} HIGH
Remarks
If the source channel of MOSI data line of SPI decoding on the specified bus is not set (refer to
the :BUS<n>:SPI:MOSI:SOURce command), the :BUS<n>:SPI:MOSI:POLarity <pol> command is
invalid.
LOW: indicates that low level is 1 and high level is 0.
HIGH: indicates that high level is 1 and low level is 0.
Return Format
The query returns HIGH or LOW.
:BUS<n>:SPI:MOSI:SOURce
Syntax
:BUS<n>:SPI:MOSI:SOURce <source>
:BUS<n>:SPI:MOSI:SOURce?
Description
Sets or queries the source channel of MOSI data line of SPI decoding on the specified bus.
Parameter
Name
Type
Range
Default
<n> Discrete {1|2} --
<source> Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4|OFF} OFF
Remarks
When <source> is set to "OFF", it indicates that the source channel of MOSI data line is not set.
If <source> is set to "CHANnel1", "CHANnel2", "CHANnel3", or "CHANnel4", you can use
the :BUS<n>:SPI:MOSI:THReshold command to set the threshold of the source channel of MOSI data
line.
The source channels of MISO data line (refer to the :BUS<n>:SPI:MISO:SOURce command) and MOSI
data line cannot be both set to "OFF".
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF.