]> sigrok.org Git - libsigrok.git/commitdiff
Add support for the Metex M-4650CR.
authorUwe Hermann <redacted>
Tue, 29 Oct 2013 19:31:24 +0000 (20:31 +0100)
committerUwe Hermann <redacted>
Wed, 30 Oct 2013 13:44:44 +0000 (14:44 +0100)
(the Voltcraft M-4650CR is a rebadged Metex M-4650CR)

hardware/serial-dmm/api.c
hardware/serial-dmm/protocol.c
hardware/serial-dmm/protocol.h
hwdriver.c

index 1362d3b7ab5fac2105182f95092e0483315ed7dc..daa8a7ca297926a3e2abd3909025b4ee7565ce5f 100644 (file)
@@ -48,6 +48,7 @@ SR_PRIV struct sr_dev_driver peaktech_3410_driver_info;
 SR_PRIV struct sr_dev_driver mastech_mas345_driver_info;
 SR_PRIV struct sr_dev_driver va_va18b_driver_info;
 SR_PRIV struct sr_dev_driver metex_m3640d_driver_info;
+SR_PRIV struct sr_dev_driver metex_m4650cr_driver_info;
 SR_PRIV struct sr_dev_driver peaktech_4370_driver_info;
 SR_PRIV struct sr_dev_driver pce_pce_dm32_driver_info;
 SR_PRIV struct sr_dev_driver radioshack_22_168_driver_info;
@@ -115,6 +116,13 @@ SR_PRIV struct dmm_info dmms[] = {
                NULL,
                &metex_m3640d_driver_info, receive_data_METEX_M3640D,
        },
+       {
+               "Metex", "M-4650CR", "1200/7n2/rts=0/dtr=1", 1200,
+               METEX14_PACKET_SIZE, sr_metex14_packet_request,
+               sr_metex14_packet_valid, sr_metex14_parse,
+               NULL,
+               &metex_m4650cr_driver_info, receive_data_METEX_M4650CR,
+       },
        {
                "PeakTech", "4370", "1200/7n2/rts=0/dtr=1", 1200,
                METEX14_PACKET_SIZE, sr_metex14_packet_request,
@@ -544,6 +552,7 @@ DRV(peaktech_3410, PEAKTECH_3410, "peaktech-3410", "PeakTech 3410")
 DRV(mastech_mas345, MASTECH_MAS345, "mastech-mas345", "MASTECH MAS345")
 DRV(va_va18b, VA_VA18B, "va-va18b", "V&A VA18B")
 DRV(metex_m3640d, METEX_M3640D, "metex-m3640d", "Metex M-3640D")
+DRV(metex_m4650cr, METEX_M4650CR, "metex-m4650cr", "Metex M-4650CR")
 DRV(peaktech_4370, PEAKTECH_4370, "peaktech-4370", "PeakTech 4370")
 DRV(pce_pce_dm32, PCE_PCE_DM32, "pce-pce-dm32", "PCE PCE-DM32")
 DRV(radioshack_22_168, RADIOSHACK_22_168, "radioshack-22-168", "RadioShack 22-168")
index 838403de849926c7b02791e435fce39eeb4f88f9..6ca5e73ea593346d9c86caf0a489a263776b7c50 100644 (file)
@@ -165,6 +165,7 @@ RECEIVE_DATA(PEAKTECH_3410, metex14)
 RECEIVE_DATA(MASTECH_MAS345, metex14)
 RECEIVE_DATA(VA_VA18B, fs9721)
 RECEIVE_DATA(METEX_M3640D, metex14)
+RECEIVE_DATA(METEX_M4650CR, metex14)
 RECEIVE_DATA(PEAKTECH_4370, metex14)
 RECEIVE_DATA(PCE_PCE_DM32, fs9721)
 RECEIVE_DATA(RADIOSHACK_22_168, metex14)
index 7b170e66869d2ca2f121a2f79b1357287148db04..4ad367541c3cea93f0c5d4cba04152b4213efcb8 100644 (file)
@@ -38,6 +38,7 @@ enum {
        MASTECH_MAS345,
        VA_VA18B,
        METEX_M3640D,
+       METEX_M4650CR,
        PEAKTECH_4370,
        PCE_PCE_DM32,
        RADIOSHACK_22_168,
@@ -56,7 +57,7 @@ enum {
        ISO_TECH_IDM103N,
 };
 
-#define DMM_COUNT 23
+#define DMM_COUNT 24
 
 struct dmm_info {
        char *vendor;
@@ -105,6 +106,7 @@ SR_PRIV int receive_data_PEAKTECH_3410(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_MASTECH_MAS345(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_VA_VA18B(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_METEX_M3640D(int fd, int revents, void *cb_data);
+SR_PRIV int receive_data_METEX_M4650CR(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_PEAKTECH_4370(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_PCE_PCE_DM32(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_RADIOSHACK_22_168(int fd, int revents, void *cb_data);
index a6bd90cd82d5f47f4075758164cc46e1faec2502..ff28465111d7af6fd6561b8d7d3b01f173594a75 100644 (file)
@@ -198,6 +198,7 @@ extern SR_PRIV struct sr_dev_driver peaktech_3410_driver_info;
 extern SR_PRIV struct sr_dev_driver mastech_mas345_driver_info;
 extern SR_PRIV struct sr_dev_driver va_va18b_driver_info;
 extern SR_PRIV struct sr_dev_driver metex_m3640d_driver_info;
+extern SR_PRIV struct sr_dev_driver metex_m4650cr_driver_info;
 extern SR_PRIV struct sr_dev_driver peaktech_4370_driver_info;
 extern SR_PRIV struct sr_dev_driver pce_pce_dm32_driver_info;
 extern SR_PRIV struct sr_dev_driver radioshack_22_168_driver_info;
@@ -319,6 +320,7 @@ static struct sr_dev_driver *drivers_list[] = {
        &mastech_mas345_driver_info,
        &va_va18b_driver_info,
        &metex_m3640d_driver_info,
+       &metex_m4650cr_driver_info,
        &peaktech_4370_driver_info,
        &pce_pce_dm32_driver_info,
        &radioshack_22_168_driver_info,