* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-#ifndef LIBSIGROK_AGILENT_DMM_H
-#define LIBSIGROK_AGILENT_DMM_H
+#ifndef LIBSIGROK_HARDWARE_AGILENT_DMM_AGILENT_DMM_H
+#define LIBSIGROK_HARDWARE_AGILENT_DMM_AGILENT_DMM_H
/* Message logging helpers with subsystem-specific prefix string. */
#define LOG_PREFIX "agilent-dmm: "
SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data);
-#endif /* LIBSIGROK_AGILENT_DMM_H */
+#endif
sr_err("Failed to send: %s.", strerror(errno));
return SR_ERR;
}
-
+
return SR_OK;
}
static void clear_helper(void *priv)
{
struct dev_context *devc;
-
+
devc = priv;
ftdi_deinit(&devc->ftdic);
static GSList *dev_list(void)
{
- struct drv_context *drvc;
-
- drvc = di->priv;
-
- return drvc->instances;
+ return ((struct drv_context *)(di->priv))->instances;
}
static int dev_clear(void)
return SR_MQFLAG_SPL_FREQ_WEIGHT_C;
} else
return cur_setting;
-
}
SR_PRIV int cem_dt_885x_weight_freq_set(const struct sr_dev_inst *sdi, int freqw)
return SR_MQFLAG_SPL_TIME_WEIGHT_S;
} else
return cur_setting;
-
}
SR_PRIV int cem_dt_885x_weight_time_set(const struct sr_dev_inst *sdi, int timew)
#include <errno.h>
#include <string.h>
-
static void process_packet(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
return TRUE;
}
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-#ifndef LIBSIGROK_FLUKE_DMM_H
-#define LIBSIGROK_FLUKE_DMM_H
+#ifndef LIBSIGROK_HARDWARE_FLUKE_DMM_FLUKE_DMM_H
+#define LIBSIGROK_HARDWARE_FLUKE_DMM_FLUKE_DMM_H
/* Message logging helpers with subsystem-specific prefix string. */
#define LOG_PREFIX "fluke-dmm: "
SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data);
-#endif /* LIBSIGROK_FLUKE_DMM_H */
+#endif
#include "libsigrok-internal.h"
#include "fluke-dmm.h"
-
static struct sr_datafeed_analog *handle_qm_18x(const struct sr_dev_inst *sdi,
char **tokens)
{
return TRUE;
}
-
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBSIGROK_HARDWARE_HANTEK_DSO_H
-#define LIBSIGROK_HARDWARE_HANTEK_DSO_H
+#ifndef LIBSIGROK_HARDWARE_HANTEK_DSO_DSO_H
+#define LIBSIGROK_HARDWARE_HANTEK_DSO_DSO_H
/* Message logging helpers with subsystem-specific prefix string. */
#define LOG_PREFIX "hantek-dso: "
CMD_GET_CAPTURESTATE,
CMD_SET_VOLTAGE,
/* unused */
- cmdSetLogicalData,
- cmdGetLogicalData,
+ CMD_SET_LOGICALDATA,
+ CMD_GET_LOGICALDATA,
};
/* Must match the coupling table. */
static GSList *dev_list(void)
{
- struct drv_context *drvc;
-
- drvc = di->priv;
-
- return drvc->instances;
+ return ((struct drv_context *)(di->priv))->instances;
}
static int dev_clear(void)