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