X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=hardware%2Fcem-dt-885x%2Fprotocol.h;fp=hardware%2Fcem-dt-885x%2Fprotocol.h;h=5910608652485949e9b4945e1242395534751f03;hp=a7d6203baf70151dc92aad4e81d4173e1071cde1;hb=f157b2eebb8523792bd085eeb8fb3632b5d4c172;hpb=8417ebad122cfade0f9ae6db6cbd8e7249156753 diff --git a/hardware/cem-dt-885x/protocol.h b/hardware/cem-dt-885x/protocol.h index a7d6203b..59106086 100644 --- a/hardware/cem-dt-885x/protocol.h +++ b/hardware/cem-dt-885x/protocol.h @@ -71,6 +71,7 @@ enum { CMD_TOGGLE_WEIGHT_FREQ = 0x99, CMD_TOGGLE_WEIGHT_TIME = 0x77, CMD_TOGGLE_HOLD_MAX_MIN = 0x11, + CMD_TOGGLE_MEAS_RANGE = 0x88, }; /** Private, per-device-instance driver context. */ @@ -78,6 +79,7 @@ struct dev_context { /* Device state */ uint64_t cur_mqflags; int recording; + int cur_meas_range; /* Acquisition settings */ uint64_t limit_samples; @@ -115,5 +117,9 @@ SR_PRIV int cem_dt_885x_weight_time_set(const struct sr_dev_inst *sdi, int timew SR_PRIV int cem_dt_885x_holdmode_get(const struct sr_dev_inst *sdi, gboolean *holdmode); SR_PRIV int cem_dt_885x_holdmode_set(const struct sr_dev_inst *sdi, int holdmode); +SR_PRIV int cem_dt_885x_meas_range_get(const struct sr_dev_inst *sdi, + uint64_t *low, uint64_t *high); +SR_PRIV int cem_dt_885x_meas_range_set(const struct sr_dev_inst *sdi, + uint64_t low, uint64_t high); #endif