]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: Add MASTECH MS8250B as a supported DMM.
authorBaruch Even <redacted>
Fri, 27 Feb 2015 13:15:26 +0000 (15:15 +0200)
committerUwe Hermann <redacted>
Fri, 27 Feb 2015 14:10:19 +0000 (15:10 +0100)
It is an alias and uses the FS9721 driver.

src/drivers.c
src/hardware/serial-dmm/api.c
src/hardware/serial-dmm/protocol.c
src/hardware/serial-dmm/protocol.h

index 54213282789b355968a2220653377ca8f5b251c9..3f006b61dc5566a340cabe42948ab0602d3e6bea 100644 (file)
@@ -134,6 +134,7 @@ extern SR_PRIV struct sr_dev_driver tekpower_tp4000zc_driver_info;
 extern SR_PRIV struct sr_dev_driver metex_me31_driver_info;
 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 mastech_ms8250b_driver_info;
 extern SR_PRIV struct sr_dev_driver va_va18b_driver_info;
 extern SR_PRIV struct sr_dev_driver va_va40b_driver_info;
 extern SR_PRIV struct sr_dev_driver metex_m3640d_driver_info;
@@ -333,6 +334,7 @@ SR_PRIV struct sr_dev_driver *drivers_list[] = {
        &metex_me31_driver_info,
        &peaktech_3410_driver_info,
        &mastech_mas345_driver_info,
+       &mastech_ms8250b_driver_info,
        &va_va18b_driver_info,
        &va_va40b_driver_info,
        &metex_m3640d_driver_info,
index 8a0d12ce87e29c4104f7f983eff875b3595487c2..4bbf230f2b705f3c610df454751006fcda537786 100644 (file)
@@ -47,6 +47,7 @@ SR_PRIV struct sr_dev_driver tekpower_tp4000zc_driver_info;
 SR_PRIV struct sr_dev_driver metex_me31_driver_info;
 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 mastech_ms8250b_driver_info;
 SR_PRIV struct sr_dev_driver va_va18b_driver_info;
 SR_PRIV struct sr_dev_driver va_va40b_driver_info;
 SR_PRIV struct sr_dev_driver metex_m3640d_driver_info;
@@ -127,6 +128,13 @@ SR_PRIV struct dmm_info dmms[] = {
                NULL,
                &mastech_mas345_driver_info, receive_data_MASTECH_MAS345,
        },
+       {
+               "MASTECH", "MS8250B", "2400/8n1/rts=0/dtr=1",
+               2400, FS9721_PACKET_SIZE, 0, 0, NULL,
+               sr_fs9721_packet_valid, sr_fs9721_parse,
+               NULL,
+               &mastech_ms8250b_driver_info, receive_data_MASTECH_MS8250B,
+       },
        {
                "V&A", "VA18B", "2400/8n1", 2400,
                FS9721_PACKET_SIZE, 0, 0, NULL,
@@ -661,6 +669,7 @@ DRV(tekpower_tp4000zc, TEKPOWER_TP4000ZC, "tekpower-tp4000zc", "TekPower TP4000Z
 DRV(metex_me31, METEX_ME31, "metex-me31", "Metex ME-31")
 DRV(peaktech_3410, PEAKTECH_3410, "peaktech-3410", "PeakTech 3410")
 DRV(mastech_mas345, MASTECH_MAS345, "mastech-mas345", "MASTECH MAS345")
+DRV(mastech_ms8250b, MASTECH_MS8250B, "mastech-ms8250b", "MASTECH MS8250B")
 DRV(va_va18b, VA_VA18B, "va-va18b", "V&A VA18B")
 DRV(va_va40b, VA_VA40B, "va-va40b", "V&A VA40B")
 DRV(metex_m3640d, METEX_M3640D, "metex-m3640d", "Metex M-3640D")
index 03509fd29daa6aa08ed71fbfa069b8065f8753c7..64564ef4bcf4508cc2567c44f1db8a92865b1437 100644 (file)
@@ -196,6 +196,7 @@ RECEIVE_DATA(TEKPOWER_TP4000ZC, fs9721)
 RECEIVE_DATA(METEX_ME31, metex14)
 RECEIVE_DATA(PEAKTECH_3410, metex14)
 RECEIVE_DATA(MASTECH_MAS345, metex14)
+RECEIVE_DATA(MASTECH_MS8250B, fs9721)
 RECEIVE_DATA(VA_VA18B, fs9721)
 RECEIVE_DATA(VA_VA40B, fs9721)
 RECEIVE_DATA(METEX_M3640D, metex14)
index 8911dfcb3124589caae8a45e06ca3f547b39f1d1..a4e06ce8731227ce5a1e04d0cc95c8cacedfd78b 100644 (file)
@@ -29,6 +29,7 @@ enum {
        METEX_ME31,
        PEAKTECH_3410,
        MASTECH_MAS345,
+       MASTECH_MS8250B,
        VA_VA18B,
        VA_VA40B,
        METEX_M3640D,
@@ -137,6 +138,7 @@ SR_PRIV int receive_data_TEKPOWER_TP4000ZC(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_METEX_ME31(int fd, int revents, void *cb_data);
 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_MASTECH_MS8250B(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_VA_VA40B(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_METEX_M3640D(int fd, int revents, void *cb_data);