]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/motech-lps-30x/protocol.h
Build: Set local include directories in Makefile.am
[libsigrok.git] / src / hardware / motech-lps-30x / protocol.h
index ad7fc07004b6a4af31047b9277d8d5a3515347ac..728c60059c60744d70281ba6ae598dd7ecf6cfc2 100644 (file)
  *  @internal
  */
 
-
 #ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
 #define LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
 
 #include <stdint.h>
 #include <glib.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
-
-SR_PRIV int lps_process_status(struct sr_dev_inst* sdi, int stat);
-SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char* fmt, ...);
+SR_PRIV int lps_process_status(struct sr_dev_inst *sdi, int stat);
+SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char *fmt, ...);
 
 #define LOG_PREFIX "motech-lps-30x"
 
@@ -63,7 +61,7 @@ struct channel_spec {
 /** Model properties specification */
 struct lps_modelspec {
        lps_modelid modelid;
-       const charmodelstr;
+       const char *modelstr;
        uint8_t num_channels;
        struct channel_spec channels[3];
 };
@@ -81,7 +79,7 @@ typedef enum {
 /** Status of a single channel. */
 struct channel_status {
        /* Channel information (struct channel_info*). data (struct) owned by sdi, just a reference to address a single channel. */
-       GSListinfo;
+       GSList *info;
        /* Received from device. */
        gdouble output_voltage_last;
        gdouble output_current_last;
@@ -95,10 +93,10 @@ struct channel_status {
 /** Private, per-device-instance driver context. */
 struct dev_context {
        /* Model-specific information */
-       const struct lps_modelspecmodel;
+       const struct lps_modelspec *model;
 
        /* Acquisition status */
-       gboolean acq_running;           /**< Aquisition is running. */
+       gboolean acq_running;           /**< Acquisition is running. */
        uint64_t limit_samples;         /**< Target number of samples */
        uint64_t limit_msec;            /**< Target sampling time */
        acquisition_req acq_req;        /**< Current request. */