List of supported SCPI commands

LEDs and GPIOs

Parameter options:

  • <dir> = {OUT,IN}

  • <gpio> = {{DIO0_P...DIO7_P}, {DIO0_N...DIO7_N}}

  • <led> = {LED0...LED8}

  • <pin> = {gpio, led}

  • <state> = {0,1}

Table of correlated SCPI and API commands on Red Pitaya.

SCPI

API

description

DIG:PIN:DIR <dir>,<gpio>
Examples:
DIG:PIN:DIR OUT,DIO0_N
DIG:PIN:DIR IN,DIO1_P

rp_DpinSetDirection

Set direction of digital pins to output or input.

DIG:PIN <pin>,<state>
Examples:
DIG:PIN DIO0_N,1
DIG:PIN LED2,1

rp_DpinSetState

Set state of digital outputs to 1 (HIGH) or 0 (LOW).

DIG:PIN? <pin> > <state>
Examples:
DIG:PIN? DIO0_N
DIG:PIN? LED2

rp_DpinGetState

Get state of digital inputs and outputs.

Analog Inputs and Outputs

Parameter options:

  • <ain> = {AIN0, AIN1, AIN2, AIN3}

  • <aout> = {AOUT0, AOUT1, AOUT2, AOUT3}

  • <pin> = {ain, aout}

  • <value> = {value in Volts}

SCPI

API

description

ANALOG:PIN <pin>,<value>
Examples:
ANALOG:PIN AOUT2,1.34

rp_ApinSetValue

Set analog voltage on slow analog outputs.
Voltage range of slow analog outputs is: 0 - 1.8 V
ANALOG:PIN? <pin> > <value>
Examples:
ANALOG:PIN? AOUT2 > 1.34
ANALOG:PIN? AIN1 > 1.12

rp_ApinGetValue

Read analog voltage from slow analog inputs.
Voltage range of slow analog inputs is: 0 3.3 V

Signal Generator

Parameter options:

  • <n> = {1,2} (set channel OUT1 or OUT2)

  • <state> = {ON,OFF} Default: OFF

  • <frequency> = {0Hz...62.5e6Hz} Default: 1000

  • <func> = {SINE, SQUARE, TRIANGLE, SAWU, SAWD, PWM, ARBITRARY, DC, DC_NEG} Default: SINE

  • <amplitude> = {-1V...1V} Default: 1 for SIGNALlab 250-12 this value {-5V…5V}

  • <offset> = {-1V...1V} Default: 0

  • <phase> = {-360deg ... 360deg} Default: 0

  • <dcyc> = {0...1} Default: 0.5 Where 1 corresponds to 100%

  • <array> = {value1, ...} max. 16k values, floats in the range -1 to 1

  • <burst> = {BURST , CONTINUOUS} Default: CONTINUOUS

  • <count> = {1...50000} , Default: 1

  • <time> = {1µs-500s} Value in µs.

  • <trigger> = {EXT_PE, EXT_NE, INT, GATED}

    • EXT = External

    • INT = Internal

    • GATED = gated busts

SCPI

API

description

OUTPUT:STATE <state>
Examples:
OUTPUT:STATE ON
rp_GenOutEnableSync

Runs or Stop two channels synchronously

OUTPUT<n>:STATE <state>
Examples:
OUTPUT1:STATE ON
rp_GenOutEnable
rp_GenOutDisable
Disable or enable fast analog outputs.
SOUR<n>:FREQ:FIX <frequency>
Examples:
SOUR2:FREQ:FIX 100000

rp_GenFreq

Set frequency of fast analog outputs.

SOUR<n>:FUNC <func>
Examples:
SOUR2:FUNC TRIANGLE

rp_GenWaveform

Set waveform of fast analog outputs.

SOUR<n>:VOLT <amplitude>
Examples:
SOUR2:VOLT 0.5

rp_GenAmp

Set amplitude voltage of fast analog outputs.
Amplitude + offset value must be less than maximum output range ± 1V
SOUR<n>:VOLT:OFFS <offset>
Examples:
SOUR1:VOLT:OFFS 0.2

rp_GenOffset

Set offset voltage of fast analog outputs.
Amplitude + offset value must be less than maximum output range ± 1V
SOUR<n>:PHAS <phase>
Examples:
SOUR2:PHAS 30

rp_GenPhase

Set phase of fast analog outputs.

SOUR<n>:DCYC <par>
Examples:
SOUR1:DCYC 0.2

rp_GenDutyCycle

Set duty cycle of PWM waveform.

SOUR<n>:TRAC:DATA:DATA <array>
Examples:
SOUR1:TRAC:DATA:DATA
1,0.5,0.2

rp_GenArbWaveform

Import data for arbitrary waveform generation.

SOUR<n>:BURS:STAT <burst>
Examples:
SOUR1:BURS:STAT BURST
SOUR1:BURS:STAT CONTINUOUS

rp_GenMode

Enable or disable burst (pulse) mode. Red Pitaya will generate R number of N periods of signal and then stop. Time between bursts is P.

SOUR<n>:BURS:NCYC <count>
Examples:
SOUR1:BURS:NCYC 3

rp_GenBurstCount

Set N number of periods in one burst.

SOUR1:BURS:NOR <count>
Examples:
SOUR1:BURS:NOR 5

rp_GenBurstRepetitions

Set R number of repeated bursts.

SOUR1:BURS:INT:PER <time>
Examples:
SOUR1:BURS:INT:PER 1000000

rp_GenBurstPeriod

Set P total time of one burst in in micro seconds. This includes the signal and delay.

SOUR<n>:TRIG:SOUR <trigger>
Examples:
SOUR1:TRIG:SOUR EXT_PE

rp_GenTriggerSource

Set trigger source for selected signal.

SOUR:TRIG:INT

Examples:
SOUR:TRIG:INT

rp_GenTrigger

Triggers selected source immediately for two channels
SOUR<n>:TRIG:INT

Examples:
SOUR1:TRIG:INT

rp_GenTrigger

Triggers selected source immediately for selected channel
GEN:RST

rp_GenReset

Reset generator to default settings.

PHAS:ALIGN

rp_GenSynchronise

Aligning output phase of dual channels.

Note

For STEMlab 125-14 4-Input these commands are not applicable

Acquire

Parameter options:

  • <n> = {1,2} (set channel IN1 or IN2)

Note

For STEMlab 125-14 4-Input <n> = {1,2,3,4} (set channel IN1, IN2, IN3 or IN4)

Control

SCPI

API

description

ACQ:START

rp_AcqStart

Starts acquisition.

ACQ:STOP

rp_AcqStop

Stops acquisition.

ACQ:RST

rp_AcqReset

Stops acquisition and sets all parameters to default values.

Sampling rate & decimation

Parameter options:

  • <decimation> = {1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536} Default: 1

  • <average> = {OFF,ON} Default: ON

SCPI

API

description

ACQ:DEC <decimation>

rp_AcqSetDecimation

Set decimation factor.

ACQ:DEC? > <decimation>
Example:
ACQ:DEC? > 1

rp_AcqGetDecimation

Get decimation factor.

ACQ:AVG <average>

rp_AcqSetAveraging

Enable/disable averaging.

ACQ:AVG? > <average>
Example:
ACQ:AVG? > ON

rp_AcqGetAveraging

Get averaging status.

Trigger

Parameter options:

  • <source> = {DISABLED, NOW, CH1_PE, CH1_NE, CH2_PE, CH2_NE, EXT_PE, EXT_NE, AWG_PE, AWG_NE} Default: DISABLED

  • <status> = {WAIT, TD}

  • <time> = {value in ns}

  • <counetr> = {value in samples}

  • <gain> = {LV, HV}

  • <level> = {value in V}

  • <mode> = {AC,DC}

Note

For STEMlab 125-14 4-Input <source> = {DISABLED, NOW, CH1_PE, CH1_NE, CH2_PE, CH2_NE, CH3_PE, CH3_NE, CH4_PE, CH4_NE, EXT_PE, EXT_NE, AWG_PE, AWG_NE} Default: DISABLED

SCPI

API

DESCRIPTION

ACQ:TRIG <source>
Example:
ACQ:TRIG CH1_PE

rp_AcqSetTriggerSrc

Disable triggering, trigger immediately or set trigger source & edge.

ACQ:TRIG:STAT?
Example:
ACQ:TRIG:STAT? > WAIT

rp_AcqGetTriggerState

Get trigger status. If DISABLED -> TD else WAIT.

ACQ:TRIG:FILL?
Example:
ACQ:TRIG:FILL? > 1

rp_AcqGetBufferFillState

Returns 1 if the buffer is full of data. Otherwise returns 0.

ACQ:TRIG:DLY <time>
Example:
ACQ:TRIG:DLY 2314

rp_AcqSetTriggerDelay

Set trigger delay in samples.

ACQ:TRIG:DLY? > <time>
Example:
ACQ:TRIG:DLY? > 2314

rp_AcqGetTriggerDelay

Get trigger delay in samples.

ACQ:TRIG:DLY:NS <time>
Example:
ACQ:TRIG:DLY:NS 128

rp_AcqSetTriggerDelayNs

Set trigger delay in ns.

ACQ:TRIG:DLY:NS? > <time>
Example:
ACQ:TRIG:DLY:NS? > 128ns

rp_AcqGetTriggerDelayNs

Get trigger delay in ns.

ACQ:SOUR<n>:GAIN <gain>

Example:
ACQ:SOUR1:GAIN LV

rp_AcqSetGain

Set gain settings to HIGH or LOW
(For SIGNALlab 250-12 this is 1:20 and 1:1 attenuator).
This gain is referring to jumper settings on Red Pitaya fast analog inputs.
ACQ:SOUR<n>:COUP <mode>
Example:
ACQ:SOUR1:COUP AC

rp_AcqSetAC_DC

Sets the AC / DC modes for input. (Only SIGNALlab 250-12)

ACQ:SOUR<n>:COUP? > <mode>
Example:
ACQ:SOUR1:COUP? > AC

rp_AcqGetAC_DC

Get the AC / DC modes for input. (Only SIGNALlab 250-12)

ACQ:TRIG:LEV <level>
Example:
ACQ:TRIG:LEV 0.125 V

rp_AcqSetTriggerLevel

Set trigger level in V.

ACQ:TRIG:LEV? > level
Example:
ACQ:TRIG:LEV? > 0.123 V

rp_AcqGetTriggerLevel

Get trigger level in V.

ACQ:TRIG:EXT:LEV <level>
Example:
ACQ:TRIG:EXT:LEV 1

rp_AcqSetTriggerLevel

Set trigger external level in V. (Only SIGNALlab 250-12)

ACQ:TRIG:EXT:LEV? > level
Example:
ACQ:TRIG:EXT:LEV? > 1

rp_AcqGetTriggerLevel

Get trigger external level in V. (Only SIGNALlab 250-12)

Data pointers

Parameter options:

  • <pos> = {position inside circular buffer}

SCPI

API

DESCRIPTION

ACQ:WPOS? > pos
Example:
ACQ:WPOS? > 1024

rp_AcqGetWritePointer

Returns current position of write pointer.

ACQ:TPOS? > pos
Example:
ACQ:TPOS? > 512

rp_AcqGetWritePointerAtTrig

Returns position where trigger event appeared.

Data read

  • <units> = {RAW, VOLTS}

  • <format> = {BIN, ASCII} Default ASCII

SCPI

API

DESCRIPTION

ACQ:DATA:UNITS <units>
Example:
ACQ:GET:DATA:UNITS RAW

rp_AcqScpiDataUnits

Selects units in which acquired data will be returned.

ACQ:DATA:FORMAT <format>
Example:
ACQ:GET:DATA:FORMAT ASCII

rp_AcqScpiDataFormat

Selects format acquired data will be returned.

ACQ:SOUR<n>:DATA:STA:END? >
<start_pos>,<end_pos>
Example:
ACQ:SOUR1:GET:DATA 10,13 >
{123,231,-231}
rp_AcqGetDataPosRaw
rp_AcqGetDataPosV
Read samples from start to stop position.
<start_pos> = {0,1,...,16384}
<stop_pos> = {0,1,...116384}
ACQ:SOUR<n>:DATA:STA:N?
<start_pos>,<m> > ...
Example:
ACQ:SOUR1:DATA? 10,3 >
{1.2,3.2,-1.2}
rp_AcqGetDataRaw
rp_AcqGetDataV

Read m samples from start position on.

ACQ:SOUR<n>:DATA?
Example:
ACQ:SOUR2:DATA? >
{1.2,3.2,...,-1.2}
rp_AcqGetOldestDataRaw
rp_AcqGetOldestDataV
Read full buf.
Size starting from oldest sample in buffer (this is first sample after trigger delay).
Trigger delay by default is set to zero (in samples or in seconds).
If trigger delay is set to zero it will read full buf. size starting from trigger.
ACQ:SOUR<n>:DATA:OLD:N?<m>
Example:
ACQ:SOUR2:DATA:OLD? 3 >
{1.2,3.2,-1.2}
rp_AcqGetOldestDataRaw
rp_AcqGetOldestDataV
Read m samples after trigger delay, starting from oldest sample in buffer
(this is first sample after trigger delay).
Trigger delay by default is set to zero (in samples or in seconds).
If trigger delay is set to zero it will read m samples starting from trigger.
ACQ:SOUR<n>:DATA:LAT:N?<m>
Example:
ACQ:SOUR1:DATA:LAT? 3 >
{1.2,3.2,-1.2}
rp_AcqGetLatestDataRaw
rp_AcqGetLatestDataV
Read m samples before trigger delay.
Trigger delay by default is set to zero (in samples or in seconds).
If trigger delay is set to zero it will read m samples before trigger.
ACQ:BUF:SIZE? > <size>
Example:
ACQ:BUF:SIZE? > 16384

rp_AcqGetBufSize

Returns buffer size.

UART

Parameter options:

  • <bits> = {CS6, CS7, CS8} Default: CS8

  • <stop> = {STOP1, STOP2} Default: STOP1

  • <parity> = {NONE, EVEN, ODD, MARK, SPACE} Default: NONE

  • <timeout> = {0...255} in (1/10 seconds) Default: 0

  • <speed> = {1200,2400,4800,9600,19200,38400,57600,115200,230400,576000,921000,1000000,1152000,1500000,2000000,2500000,3000000,3500000,4000000} Default: 9600

  • <data> = {XXX,... | #HXX,... | #QXXX,... | #BXXXXXXXX,... } Array of data separated comma

    • XXX = Dec format

    • #HXX = Hex format

    • #QXXX = Oct format

    • #BXXXXXXXX = Bin format

SCPI

API

DESCRIPTION

UART:INIT
Example:
UART:INIT

rp_UartInit

Initializes api for working with uart.

UART:RELEASE
Example:
UART:RELEASE

rp_UartRelease

Releases all used resources.

UART:SETUP
Example:
UART:SETUP

rp_UartSetSettings

Applies specified settings to uart.

UART:BITS <bits>
Example:
UART:BITS CS7

rp_UartSetBits

Sets the character size in bits.

UART:BITS? > <bits>
Example:
UART:BITS? > CS7

rp_UartGetBits

Gets the character size in bits.

UART:SPEED <speed>
Example:
UART:SPEED 115200

rp_UartSetSpeed

Sets the speed for the uart connection.

UART:SPEED? > <speed>
Example:
UART:SPEED? > 115200

rp_UartGetSpeed

Gets the speed for the uart connection.

UART:STOPB <stop>
Example:
UART:STOPB STOP2

rp_UartSetStopBits

Sets the length of the stop bit.

UART:STOPB? > <stop>
Example:
UART:STOPB? > STOP2

rp_UartGetStopBits

Gets the length of the stop bit.

UART:PARITY <parity>
Example:
UART:PARITY ODD

rp_UartSetParityMode

Sets parity check mode.
- NONE = Disable parity check
- EVEN = Set even mode for parity
- ODD = Set odd mode for parity
- MARK = Set Always 1
- SPACE = Set Always 0
UART:PARITY? > <parity>
Example:
UART:PARITY? > ODD

rp_UartGetParityMode

Gets parity check mode.

UART:TIMEOUT <timeout>
Example:
UART:TIMEOUT 10

rp_UartSetTimeout

Sets timeout for read from uart. 0 - Disable timeout. 1 = 1/10 sec.
Example: 10 - 1 sec. Max timout: 25.5 sec
UART:TIMEOUT? > <timeout>
Example:
UART:TIMEOUT? > 10

rp_UartGetTimeout

Gets the timeout.

UART:WRITE<n> <data>
Example:
UART:WRITE5 1,2,3,4,5

rp_UartWrite

Writes data to uart. <n> - Length of passed data to uart.

UART:READ<n>? > <data>
Example:
UART:READ5? > {1,2,3,4,5}

rp_UartRead

Reads data from uart. <n> - Length of retrieved data from uart.

SPI

Parameter options:

  • <mode> = {LISL, LIST, HISL, HIST} Default: LISL

  • <order> = {MSB, LSB} Default: MSB

  • <bits> = {7,..} Default: 8

  • <speed> = {1,100000000} Default: 50000000

  • <data> = {XXX,... | #HXX,... | #QXXX,... | #BXXXXXXXX,... } Array of data separated comma

    • XXX = Dec format

    • #HXX = Hex format

    • #QXXX = Oct format

    • #BXXXXXXXX = Bin format

SCPI

API

DESCRIPTION

SPI:INIT
Example:
SPI:INIT

rp_SPI_Init

Initializes api for working with spi.

SPI:INIT:DEV <path>
Example:
SPI:INIT:DEV "/dev/spidev1.0"

rp_SPI_InitDev

Initializes api for working with spi. <path> - Path to spi device
On some boards, it may be different from the standard: /dev/spidev1.0
SPI:RELEASE
Example:
SPI:RELEASE

rp_SPI_Release

Releases all used resources.

SPI:SETtings:DEF
Example:
SPI:SET:DEF

rp_SPI_SetDefault

Sets the settings for SPI to default values.

SPI:SETtings:SET
Example:
SPI:SET:SET

rp_SPI_SetSettings

Sets the specified settings for SPI.

SPI:SETtings:GET
Example:
SPI:SET:GET

rp_SPI_GetSettings

Gets the specified SPI settings.

SPI:SETtings:MODE <mode>
Example:
SPI:SET:MODE LIST


rp_SPI_SetMode

Sets the mode for SPI.
- LISL = Low idle level, Sample on leading edge
- LIST = Low idle level, Sample on trailing edge
- HISL = High idle level, Sample on leading edge
- HIST = High idle level, Sample on trailing edge
SPI:SETtings:MODE? > <mode>
Example:
SPI:SET:MODE? > LIST

rp_SPI_GetMode

Returns the specified mode for SPI.

SPI:SETtings:SPEED <speed>
Example:
SPI:SET:SPEED 1000000

rp_SPI_SetSpeed

Sets the speed for the spi connection.

SPI:SET:SPEED? > <speed>
Example:
SPI:SET:SPEED? > 1000000

rp_SPI_GetSpeed

Gets the speed the spi connection.

SPI:SETtings:WORD <bits>
Example:
SPI:SET:WORD 8

rp_SPI_SetWord

Specifies the length of the word in bits. Must be greater than or equal to 7.

SPI:SETtings:WORD? > <bits>
Example:
SPI:SET:WORD? > 8

rp_SPI_GetWord

Returns the length of a word.

SPI:MSG:CREATE <n>
Example:
SPI:MSG:CREATE 1

rp_SPI_CreateMessage

Creates a message queue for SPI. Once created, they need to be initialized.
<n> - Number of messages in the queue
The message queue can operate within a single CS state switch.
SPI:MSG:DEL
Example:
SPI:MSG:DEL

rp_SPI_DestoryMessage

Deletes all messages and data buffers allocated for them.

SPI:MSG:SIZE? > <n>
Example:
SPI:MSG:SIZE? > 1

rp_SPI_GetMessageLen

Returns the length of the message queue.

SPI:MSG<n>:TX<m> <data>
SPI:MSG<n>:TX<m>:CS <data>
Example:
SPI:MSG0:TX4 1,2,3,4
SPI:MSG1:TX3:CS 2,3,4
rp_SPI_SetTX
rp_SPI_SetTXCS
Sets data for write buffer for the specified message.
CS - Toggles CS state after sending/receiving this message.
<n> - index of message 0 <= n < msg queue size.
<m> - TX buffer length.
SPI:MSG<n>:TX<m>:RX <data>
SPI:MSG<n>:TX<m>:RX:CS <data>
Example:
SPI:MSG0:TX4:RX 1,2,3,4
SPI:MSG1:TX3:RX:CS 2,3,4
rp_SPI_SetTXRX
rp_SPI_SetTXRXCS
Sets data for read and write buffers for the specified message.
CS - Toggles CS state after sending/receiving this message.
<n> - index of message 0 <= n < msg queue size.
<m> - TX buffer length.
The read buffer is also created with the same length and initialized with zeros.
SPI:MSG<n>:RX<m>
SPI:MSG<n>:RX<m>:CS
Example:
SPI:MSG0:RX4
SPI:MSG1:RX5:CS
rp_SPI_SetRX
rp_SPI_SetRXCS
Initializes a buffer for reading the specified message.
CS - Toggles CS state after receiving message.
<n> - index of message 0 <= n < msg queue size.
<m> - RX buffer length.
SPI:MSG<n>:RX? > <data>
Example:
SPI:MSG1:RX? > {2,4,5}

rp_SPI_GetRXBuffer

Returns a read buffer for the specified message.

SPI:MSG<n>:TX? > <data>
Example:
SPI:MSG1:TX? > {2,4,5}

rp_SPI_GetTXBuffer

Returns the write buffer for the specified message.

SPI:MSG<n>:CS? > ON|OFF
Example:
SPI:MSG1:CS? > ON

rp_SPI_GetCSChangeState

Returns the setting for CS mode for the specified message.

SPI:PASS
Example:
SPI:PASS

rp_SPI_Pass

Sends prepared messages to the SPI device.

I2C

Parameter options:

  • <mode>  = {OFF, ON} Default: OFF

  • <value> = {XXX | #HXX | #QXXX | #BXXXXXXXX}

  • <data>  = {XXX,... | #HXX,... | #QXXX,... | #BXXXXXXXX,... } Array of data separated comma

    • XXX = Dec format

    • #HXX = Hex format

    • #QXXX = Oct format

    • #BXXXXXXXX = Bin format

SCPI

API

DESCRIPTION

I2C:DEV<addr> <path>
Example:
I2C:DEV80 "/dev/i2c-0"

rp_I2C_InitDevice

Initializes settings for i2c. <path> - Path to i2c device
<addr> - Device address on the i2c bus in dec format.
I2C:DEV? > <addr>
Example:
I2C:DEV? > 80

rp_I2C_getDevAddress

Returns the current address of the device.

I2C:FMODE <mode>
Example:
I2C:FMODE ON

rp_I2C_setForceMode

Enables forced bus operation even if the device is in use.

I2C:FMODE? > <mode>
Example:
I2C:FMODE? > ON

rp_I2C_getForceMode

Gets the current forced mode setting.

I2C:Smbus:Read<reg> > <value>
Example:
I2C:S:R2 > 0

rp_I2C_SMBUS_Read

Reads 8 bit data from the specified register using the SMBUS protocol.
<reg> - Register address in dec format.
I2C:Smbus:Read<reg>:Word > <value>
Example:
I2C:S:R2:W > 0

rp_I2C_SMBUS_ReadWord

Reads 16 bit data from the specified register using the SMBUS protocol.
<reg> - Register address in dec format.
I2C:Smbus:Read<reg>:Buffer<size> > <data>
Example:
I2C:S:R2:B2 > {0,1}

rp_I2C_SMBUS_ReadBuffer

Reads buffer data from the specified register using the SMBUS protocol.
<reg> - Register address in dec format.
<size> - Read data size.
I2C:Smbus:Write<reg> <value>
Example:
I2C:S:W2 10

rp_I2C_SMBUS_Write

Writes 8-bit data to the specified register using the SMBUS protocol.
<reg> - Register address in dec format.
I2C:Smbus:Write<reg>:Word <value>
Example:
I2C:S:W2:W 10

rp_I2C_SMBUS_WriteWord

Writes 16-bit data to the specified register using the SMBUS protocol.
<reg> - Register address in dec format.
I2C:Smbus:Write<reg>:Buffer<size> <data>
Example:
I2C:S:W2:B2 0,1

rp_I2C_SMBUS_WriteBuffer

Writes buffer data to the specified register using the SMBUS protocol.
<reg> - Register address in dec format.
<size> - Read data size.
I2C:IOctl:Read:Buffer<size> > <data>
Example:
I2C:IO:R:B2 > {0,1}

rp_I2C_IOCTL_ReadBuffer

Reads data from i2c device through IOCTL.
<size> - Read data size.

I2C:IOctl:Write:Buffer<size> <data>
Example:
I2C:IO:W:B2  {0,1}

rp_I2C_IOCTL_WriteBuffer

Writes data to i2c device via IOCTL.
<size> - Read data size.

Note

SMBUS is a standardized protocol for communicating with i2c devices. Information about this protocol can be found in this link: SMBUS specifcation. IOCTL writes and reads data directly from i2c.

Specific LEDs

Parameter options:

  • <mode> = {OFF, ON} Default: ON

SCPI

API

DESCRIPTION

LED:MMC <mode>
Example:
LED:MMC OFF

rp_SetLEDMMCState

Turns on or off the yellow LED responsible for indicating the read memory card.

LED:MMC? > <mode>
Example:
LED:MMC? > ON

rp_GetLEDMMCState

Gets the state of the MMC indicator.

LED:HB <mode>
Example:
LED:HB OFF

rp_SetLEDHeartBeatState

Turns on or off the red LED responsible for indicating board activity.

LED:HB? > <mode>
Example:
LED:HB? > ON

rp_GetLEDHeartBeatState

Gets the state of the HeartBeat indicator.

LED:ETH <mode>
Example:
LED:ETH OFF

rp_SetLEDEthState

Turns on or off the LED indicators on the network card.

LED:ETH? > <mode>
Example:
LED:ETH? > ON

rp_GetLEDEthState

Gets the state of the Ethernet indicators.