]> sigrok.org Git - libsigrok.git/commitdiff
metex14: Add sr_metex14_packet_request().
authorUwe Hermann <redacted>
Sat, 1 Dec 2012 19:48:03 +0000 (20:48 +0100)
committerUwe Hermann <redacted>
Sun, 2 Dec 2012 13:21:18 +0000 (14:21 +0100)
hardware/common/dmm/metex14.c

index c3d9a4f613fc09e9a52ea47399d899ceb2246230..7d1cc056ed21ac7920c44321247bc71c42771220 100644 (file)
@@ -254,6 +254,15 @@ static gboolean flags_valid(const struct metex14_info *info)
        return TRUE;
 }
 
+SR_PRIV int sr_metex14_packet_request(struct sr_serial_dev_inst *serial)
+{
+       const uint8_t wbuf = 'D';
+
+       sr_spew("Requesting DMM packet.");
+
+       return (serial_write(serial, &wbuf, 1) == 1) ? SR_OK : SR_ERR;
+}
+
 SR_PRIV gboolean sr_metex14_packet_valid(const uint8_t *buf)
 {
        struct metex14_info info;