X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fscpi.h;h=28b33287629faf492f618f61657e6946089b3136;hb=55c9f09dbc7edd24b0da8dda8837aff6a932e3c5;hp=36bc16270c6e3c19bcbc6f5e3a2340ec3c456ecc;hpb=5a1afc0907abfee5848484f944789213d6be9752;p=libsigrok.git diff --git a/src/scpi.h b/src/scpi.h index 36bc1627..28b33287 100644 --- a/src/scpi.h +++ b/src/scpi.h @@ -58,6 +58,11 @@ enum { SCPI_CMD_GET_SAMPLE_RATE_LIVE, }; +struct scpi_command { + int command; + const char *string; +}; + struct sr_scpi_hw_info { char *manufacturer; char *model; @@ -125,4 +130,12 @@ SR_PRIV int sr_scpi_get_hw_id(struct sr_scpi_dev_inst *scpi, struct sr_scpi_hw_info **scpi_response); SR_PRIV void sr_scpi_hw_info_free(struct sr_scpi_hw_info *hw_info); +SR_PRIV const char *sr_vendor_alias(const char *raw_vendor); +SR_PRIV const char *scpi_cmd_get(const struct scpi_command *cmdtable, int command); +SR_PRIV int scpi_cmd(const struct sr_dev_inst *sdi, + const struct scpi_command *cmdtable, int command, ...); +SR_PRIV int scpi_cmd_resp(const struct sr_dev_inst *sdi, + const struct scpi_command *cmdtable, + GVariant **gvar, const GVariantType *gvtype, int command, ...); + #endif