2 * This file is part of the libsigrok project.
4 * Copyright (C) 2014 Uwe Hermann <uwe@hermann-uwe.de>
5 * Copyright (C) 2014 Matthias Heidbrink <m-sigrok@heidbrink.biz>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef LIBSIGROK_HARDWARE_MANSON_HCS_3XXX_PROTOCOL_H
23 #define LIBSIGROK_HARDWARE_MANSON_HCS_3XXX_PROTOCOL_H
29 #include "libsigrok.h"
30 #include "libsigrok-internal.h"
32 #define LOG_PREFIX "manson-hcs-3xxx"
54 int model_id; /**< Model info */
55 char *name; /**< Model name */
56 char *id; /**< Model ID, like delivered by interface */
57 double voltage[3]; /**< Min, max, step */
58 double current[3]; /**< Min, max, step */
61 /** Private, per-device-instance driver context. */
63 struct hcs_model *model;
65 uint64_t limit_samples;
70 gboolean reply_pending;
82 SR_PRIV int hcs_receive_data(int fd, int revents, void *cb_data);