]> sigrok.org Git - libsigrok.git/blame - src/hardware/rohde-schwarz-sme-0x/protocol.h
scpi-pps: don't break SCPI devices when scanning for HP-IB devices
[libsigrok.git] / src / hardware / rohde-schwarz-sme-0x / protocol.h
CommitLineData
a28b3df1
VI
1/*
2 * This file is part of the libsigrok project.
3 *
4 * Copyright (C) 2016 Vlad Ivanov <vlad.ivanov@lab-systems.ru>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBSIGROK_HARDWARE_ROHDE_SCHWARZ_SME_0X_PROTOCOL_H
21#define LIBSIGROK_HARDWARE_ROHDE_SCHWARZ_SME_0X_PROTOCOL_H
22
23#include <stdint.h>
24#include <glib.h>
25#include <libsigrok/libsigrok.h>
26#include "libsigrok-internal.h"
27
28#define LOG_PREFIX "rohde-schwarz-sme-0x"
29
30struct rs_sme0x_info {
31 struct sr_dev_driver di;
32 char *vendor;
33 char *device;
34};
35
36struct rs_device_model {
9e506594 37 const char *model_str;
a28b3df1
VI
38 double freq_max;
39 double freq_min;
40 double power_max;
41 double power_min;
42};
43
a28b3df1 44struct dev_context {
9e506594 45 const struct rs_device_model *model_config;
a28b3df1
VI
46};
47
a28b3df1 48SR_PRIV int rs_sme0x_mode_remote(struct sr_scpi_dev_inst *scpi);
9e506594
SA
49SR_PRIV int rs_sme0x_get_freq(const struct sr_dev_inst *sdi, double *freq);
50SR_PRIV int rs_sme0x_get_power(const struct sr_dev_inst *sdi, double *power);
a28b3df1
VI
51SR_PRIV int rs_sme0x_set_freq(const struct sr_dev_inst *sdi, double freq);
52SR_PRIV int rs_sme0x_set_power(const struct sr_dev_inst *sdi, double power);
53
54#endif