]> sigrok.org Git - libsigrok.git/blame - src/hardware/yokogawa-dlm/protocol_wrappers.h
Build: Set local include directories in Makefile.am
[libsigrok.git] / src / hardware / yokogawa-dlm / protocol_wrappers.h
CommitLineData
10763937
SA
1/*
2 * This file is part of the libsigrok project.
3 *
4 * Copyright (C) 2014 abraxa (Soeren Apel) <soeren@apelpie.net>
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_YOKOGAWA_DLM_PROTOCOL_WRAPPERS_H
21#define LIBSIGROK_HARDWARE_YOKOGAWA_DLM_PROTOCOL_WRAPPERS_H
22
23#include <glib.h>
24#include <stdint.h>
25#include <string.h>
c1aae900 26#include <libsigrok/libsigrok.h>
10763937
SA
27#include "libsigrok-internal.h"
28#include "protocol.h"
29
8ab929d6
SA
30extern int dlm_timebase_get(struct sr_scpi_dev_inst *scpi,
31 gchar **response);
32extern int dlm_timebase_set(struct sr_scpi_dev_inst *scpi,
33 const gchar *value);
34extern int dlm_horiz_trigger_pos_get(struct sr_scpi_dev_inst *scpi,
35 float *response);
36extern int dlm_horiz_trigger_pos_set(struct sr_scpi_dev_inst *scpi,
37 const gchar *value);
38extern int dlm_trigger_source_get(struct sr_scpi_dev_inst *scpi,
39 gchar **response);
40extern int dlm_trigger_source_set(struct sr_scpi_dev_inst *scpi,
41 const gchar *value);
42extern int dlm_trigger_slope_get(struct sr_scpi_dev_inst *scpi,
43 int *value);
44extern int dlm_trigger_slope_set(struct sr_scpi_dev_inst *scpi,
45 const int value);
46
47extern int dlm_analog_chan_state_get(struct sr_scpi_dev_inst *scpi, int channel,
48 gboolean *response);
49extern int dlm_analog_chan_state_set(struct sr_scpi_dev_inst *scpi, int channel,
50 const gboolean value);
51extern int dlm_analog_chan_vdiv_get(struct sr_scpi_dev_inst *scpi, int channel,
52 gchar **response);
53extern int dlm_analog_chan_vdiv_set(struct sr_scpi_dev_inst *scpi, int channel,
54 const gchar *value);
55extern int dlm_analog_chan_voffs_get(struct sr_scpi_dev_inst *scpi, int channel,
56 float *response);
57extern int dlm_analog_chan_srate_get(struct sr_scpi_dev_inst *scpi, int channel,
58 float *response);
59extern int dlm_analog_chan_coupl_get(struct sr_scpi_dev_inst *scpi, int channel,
60 gchar **response);
61extern int dlm_analog_chan_coupl_set(struct sr_scpi_dev_inst *scpi, int channel,
62 const gchar *value);
63extern int dlm_analog_chan_wrange_get(struct sr_scpi_dev_inst *scpi, int channel,
64 float *response);
65extern int dlm_analog_chan_woffs_get(struct sr_scpi_dev_inst *scpi, int channel,
66 float *response);
67
68extern int dlm_digital_chan_state_get(struct sr_scpi_dev_inst *scpi, int channel,
69 gboolean *response);
70extern int dlm_digital_chan_state_set(struct sr_scpi_dev_inst *scpi, int channel,
71 const gboolean value);
72extern int dlm_digital_pod_state_get(struct sr_scpi_dev_inst *scpi, int pod,
73 gboolean *response);
74extern int dlm_digital_pod_state_set(struct sr_scpi_dev_inst *scpi, int pod,
75 const gboolean value);
76
77extern int dlm_response_headers_set(struct sr_scpi_dev_inst *scpi,
78 const gboolean value);
79extern int dlm_acquisition_stop(struct sr_scpi_dev_inst *scpi);
80
81extern int dlm_acq_length_get(struct sr_scpi_dev_inst *scpi,
af3487ec 82 uint32_t *response);
8ab929d6
SA
83extern int dlm_chunks_per_acq_get(struct sr_scpi_dev_inst *scpi,
84 int *response);
85extern int dlm_start_frame_set(struct sr_scpi_dev_inst *scpi, int value);
86extern int dlm_data_get(struct sr_scpi_dev_inst *scpi, int acquisition_num);
87extern int dlm_analog_data_get(struct sr_scpi_dev_inst *scpi, int channel);
88extern int dlm_digital_data_get(struct sr_scpi_dev_inst *scpi);
89
10763937 90#endif