]> sigrok.org Git - libsigrok.git/blob - src/hardware/yokogawa-dlm/protocol_wrappers.h
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / src / hardware / yokogawa-dlm / protocol_wrappers.h
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>
26 #include <libsigrok/libsigrok.h>
27 #include "libsigrok-internal.h"
28 #include "scpi.h"
29 #include "protocol.h"
30
31 extern int dlm_timebase_get(struct sr_scpi_dev_inst *scpi,
32                 gchar **response);
33 extern int dlm_timebase_set(struct sr_scpi_dev_inst *scpi,
34                 const gchar *value);
35 extern int dlm_horiz_trigger_pos_get(struct sr_scpi_dev_inst *scpi,
36                 float *response);
37 extern int dlm_horiz_trigger_pos_set(struct sr_scpi_dev_inst *scpi,
38                 const gchar *value);
39 extern int dlm_trigger_source_get(struct sr_scpi_dev_inst *scpi,
40                 gchar **response);
41 extern int dlm_trigger_source_set(struct sr_scpi_dev_inst *scpi,
42                 const gchar *value);
43 extern int dlm_trigger_slope_get(struct sr_scpi_dev_inst *scpi,
44                 int *value);
45 extern int dlm_trigger_slope_set(struct sr_scpi_dev_inst *scpi,
46                 const int value);
47
48 extern int dlm_analog_chan_state_get(struct sr_scpi_dev_inst *scpi, int channel,
49                 gboolean *response);
50 extern int dlm_analog_chan_state_set(struct sr_scpi_dev_inst *scpi, int channel,
51                 const gboolean value);
52 extern int dlm_analog_chan_vdiv_get(struct sr_scpi_dev_inst *scpi, int channel,
53                 gchar **response);
54 extern int dlm_analog_chan_vdiv_set(struct sr_scpi_dev_inst *scpi, int channel,
55                 const gchar *value);
56 extern int dlm_analog_chan_voffs_get(struct sr_scpi_dev_inst *scpi, int channel,
57                 float *response);
58 extern int dlm_analog_chan_srate_get(struct sr_scpi_dev_inst *scpi, int channel,
59                 float *response);
60 extern int dlm_analog_chan_coupl_get(struct sr_scpi_dev_inst *scpi, int channel,
61                 gchar **response);
62 extern int dlm_analog_chan_coupl_set(struct sr_scpi_dev_inst *scpi, int channel,
63                 const gchar *value);
64 extern int dlm_analog_chan_wrange_get(struct sr_scpi_dev_inst *scpi, int channel,
65                 float *response);
66 extern int dlm_analog_chan_woffs_get(struct sr_scpi_dev_inst *scpi, int channel,
67                 float *response);
68
69 extern int dlm_digital_chan_state_get(struct sr_scpi_dev_inst *scpi, int channel,
70                 gboolean *response);
71 extern int dlm_digital_chan_state_set(struct sr_scpi_dev_inst *scpi, int channel,
72                 const gboolean value);
73 extern int dlm_digital_pod_state_get(struct sr_scpi_dev_inst *scpi, int pod,
74                 gboolean *response);
75 extern int dlm_digital_pod_state_set(struct sr_scpi_dev_inst *scpi, int pod,
76                 const gboolean value);
77
78 extern int dlm_response_headers_set(struct sr_scpi_dev_inst *scpi,
79                 const gboolean value);
80 extern int dlm_acquisition_stop(struct sr_scpi_dev_inst *scpi);
81
82 extern int dlm_acq_length_get(struct sr_scpi_dev_inst *scpi,
83                 uint32_t *response);
84 extern int dlm_chunks_per_acq_get(struct sr_scpi_dev_inst *scpi,
85                 int *response);
86 extern int dlm_start_frame_set(struct sr_scpi_dev_inst *scpi, int value);
87 extern int dlm_data_get(struct sr_scpi_dev_inst *scpi, int acquisition_num);
88 extern int dlm_analog_data_get(struct sr_scpi_dev_inst *scpi, int channel);
89 extern int dlm_digital_data_get(struct sr_scpi_dev_inst *scpi);
90
91 #endif