User manual

Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-27
:BUS<n>:SPI:TIMeout:TIME
Syntax
:BUS<n>:SPI:TIMeout:TIME <time>
:BUS<n>:SPI:TIMeout:TIME?
Description
Sets or queries the timeout value of SPI decoding. The default unit is s.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<time>
Real
8 ns to 10 s
1 μs
Remarks
The timeout must be greater than the maximum clock pulse width and less than
the idle time between frames.
This setting command is only valid in timeout mode.
Return
Format
The query returns the timeout value in scientific notation.
Example
:BUS1:SPI:TIMeout:TIME 0.000005 /*Sets the timeout value to 5 μs.*/
:BUS1:SPI:TIMeout:TIME? /*The query returns 5.000000E-6.*/
:BUS<n>:SPI:SS:SOURce
Syntax
:BUS<n>:SPI:SS:SOURce <source>
:BUS<n>:SPI:SS:SOURce?
Description
Sets or queries the source channel of the CS line of SPI decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<source>
Real
{D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|
D12|D13|D14|D15|CHANnel1|CHANnel2|CHAN
nel3|CHANnel4}
CHANnel1
Return
Format
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14,
D15, CHAN1, CHAN2, CHAN3, or CHAN4.
Example
:BUS1:SPI:SS:SOURce D0 /*Sets the source channel of CS line of SPI decoding to
D0.*/
:BUS1:SPI:SS:SOURce? /*The query returns D0.*/