X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frohde-schwarz-sme-0x%2Fprotocol.h;h=65e5c6d193bcaa43ce1d19923eb6261cc9f995be;hb=155263435fe230b3f8d2478831d1fefd2459222a;hp=f3f4fb5119dc6caa4acf3c89e8a303978f88c13e;hpb=a28b3df111ce6b942d0904b7647b959a48f2b479;p=libsigrok.git diff --git a/src/hardware/rohde-schwarz-sme-0x/protocol.h b/src/hardware/rohde-schwarz-sme-0x/protocol.h index f3f4fb51..65e5c6d1 100644 --- a/src/hardware/rohde-schwarz-sme-0x/protocol.h +++ b/src/hardware/rohde-schwarz-sme-0x/protocol.h @@ -34,24 +34,20 @@ struct rs_sme0x_info { }; struct rs_device_model { - const char * model_str; + const char *model_str; double freq_max; double freq_min; double power_max; double power_min; }; -/** Private, per-device-instance driver context. */ struct dev_context { - /* Model-specific information */ - const struct rs_device_model * model_config; + const struct rs_device_model *model_config; }; -SR_PRIV int rs_sme0x_receive_data(int fd, int revents, void *cb_data); SR_PRIV int rs_sme0x_mode_remote(struct sr_scpi_dev_inst *scpi); -SR_PRIV int rs_sme0x_close(struct sr_dev_inst *sdi); -SR_PRIV int rs_sme0x_get_freq(const struct sr_dev_inst *sdi, double * freq); -SR_PRIV int rs_sme0x_get_power(const struct sr_dev_inst *sdi, double * power); +SR_PRIV int rs_sme0x_get_freq(const struct sr_dev_inst *sdi, double *freq); +SR_PRIV int rs_sme0x_get_power(const struct sr_dev_inst *sdi, double *power); SR_PRIV int rs_sme0x_set_freq(const struct sr_dev_inst *sdi, double freq); SR_PRIV int rs_sme0x_set_power(const struct sr_dev_inst *sdi, double power);