X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fyokogawa-dlm%2Fprotocol.h;h=80def3f9de550d752f54dc7371f0525ae9e13190;hb=3db03efa4ad43f6d127c3d949a300596cac74ce9;hp=3ae9243329b6862867c09ed899f1c450a819693d;hpb=f3c60fb6affce2ebd81250db1d60bee733e5f479;p=libsigrok.git diff --git a/src/hardware/yokogawa-dlm/protocol.h b/src/hardware/yokogawa-dlm/protocol.h index 3ae92433..80def3f9 100644 --- a/src/hardware/yokogawa-dlm/protocol.h +++ b/src/hardware/yokogawa-dlm/protocol.h @@ -26,7 +26,7 @@ #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #include "protocol_wrappers.h" @@ -41,7 +41,7 @@ #define DLM_DIVISION_FOR_WORD_FORMAT 3200 #define DLM_DIVISION_FOR_BYTE_FORMAT 12.5 -#define DLM_DIG_CHAN_INDEX_OFFS (32) +#define DLM_DIG_CHAN_INDEX_OFFS 32 enum trigger_slopes { SLOPE_POSITIVE, @@ -113,6 +113,8 @@ struct dev_context { gboolean data_pending; }; +SR_PRIV int dlm_channel_state_set(const struct sr_dev_inst *sdi, + const int ch_index, gboolean state); SR_PRIV int dlm_data_request(const struct sr_dev_inst *sdi); SR_PRIV int dlm_model_get(char *model_id, char **model_name, int *model_index); SR_PRIV int dlm_device_init(struct sr_dev_inst *sdi, int model_index);