dmm->channel_count = 1;
if (dmm->packet_parse == sr_metex14_4packets_parse)
dmm->channel_count = 4;
+ if (dmm->packet_parse == sr_eev121gw_3displays_parse) {
+ dmm->channel_count = EEV121GW_DISPLAY_COUNT;
+ dmm->channel_formats = eev121gw_channel_formats;
+ }
for (ch_idx = 0; ch_idx < dmm->channel_count; ch_idx++) {
size_t ch_num;
const char *fmt;
sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL
),
/* }}} */
+ /* eev121gw based meters {{{ */
+ DMM(
+ "eevblog-121gw", eev121gw, "EEVblog", "121GW",
+ "115200/8n1", 115200, EEV121GW_PACKET_SIZE, 0, 0, NULL,
+ sr_eev121gw_packet_valid, sr_eev121gw_3displays_parse, NULL
+ ),
+ /* }}} */
/* es519xx based meters {{{ */
DMM(
"iso-tech-idm103n", es519xx,
gboolean is_auto_poweroff, is_low_batt;
};
+extern SR_PRIV const char *eev121gw_channel_formats[];
SR_PRIV gboolean sr_eev121gw_packet_valid(const uint8_t *buf);
SR_PRIV int sr_eev121gw_parse(const uint8_t *buf, float *floatval,
struct sr_datafeed_analog *analog, void *info);