2 * This file is part of the sigrok project.
4 * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
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.
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.
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/>.
25 #include "sigrok-internal.h"
33 static int hw_init(const char *deviceinfo)
39 static int hw_dev_open(int device_index)
45 static int hw_dev_close(int device_index)
51 static int hw_cleanup(void)
56 static void *hw_dev_info_get(int device_index, int device_info_id)
63 static int hw_dev_status_get(int device_index)
66 return SR_ST_NOT_FOUND;
69 static int *hw_hwcap_get_all(void)
74 static int hw_dev_config_set(int dev_index, int capability, void *value)
82 static int hw_dev_acquisition_start(int dev_index, gpointer session_data)
89 /* This stops acquisition on ALL devices, ignoring device_index. */
90 static int hw_dev_acquisition_stop(int dev_index, gpointer session_data)
97 SR_PRIV struct sr_dev_plugin fx2lafw_plugin_info = {
99 .longname = "fx2lafw",
102 .cleanup = hw_cleanup,
103 .dev_open = hw_dev_open,
104 .dev_close = hw_dev_close,
105 .dev_info_get = hw_dev_info_get,
106 .dev_status_get = hw_dev_status_get,
107 .hwcap_get_all = hw_hwcap_get_all,
108 .dev_config_set = hw_dev_config_set,
109 .dev_acquisition_start = hw_dev_acquisition_start,
110 .dev_acquisition_stop = hw_dev_acquisition_stop,