aboutsummaryrefslogtreecommitdiff
path: root/src/scpi/scpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scpi/scpi.c')
-rw-r--r--src/scpi/scpi.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/scpi/scpi.c b/src/scpi/scpi.c
index 00f4ef8..48e6a48 100644
--- a/src/scpi/scpi.c
+++ b/src/scpi/scpi.c
@@ -338,6 +338,21 @@ SR_PRIV int sr_scpi_read_data(struct sr_scpi_dev_inst *scpi,
}
/**
+ * Send data to SCPI device.
+ *
+ * @param scpi Previously initialised SCPI device structure.
+ * @param buf Buffer with data to send.
+ * @param len Number of bytes to send.
+ *
+ * @return Number of bytes read, or SR_ERR upon failure.
+ */
+SR_PRIV int sr_scpi_write_data(struct sr_scpi_dev_inst *scpi,
+ char *buf, int maxlen)
+{
+ return scpi->write_data(scpi->priv, buf, maxlen);
+}
+
+/**
* Check whether a complete SCPI response has been received.
*
* @param scpi Previously initialised SCPI device structure.