]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-dmm: Add support for the Voltcraft VC-830.
authorUwe Hermann <redacted>
Sat, 22 Jun 2013 14:53:13 +0000 (16:53 +0200)
committerUwe Hermann <redacted>
Sun, 23 Jun 2013 08:23:21 +0000 (10:23 +0200)
hardware/uni-t-dmm/api.c
hardware/uni-t-dmm/protocol.c
hardware/uni-t-dmm/protocol.h
hwdriver.c

index f553b3ac426e6f771833d325adbca3d30ae08478..8968d876663fd2711f99e3ed8f50621912da6c0d 100644 (file)
@@ -42,6 +42,7 @@ SR_PRIV struct sr_dev_driver tecpel_dmm_8061_driver_info;
 SR_PRIV struct sr_dev_driver uni_t_ut61d_driver_info;
 SR_PRIV struct sr_dev_driver uni_t_ut61e_driver_info;
 SR_PRIV struct sr_dev_driver voltcraft_vc820_driver_info;
+SR_PRIV struct sr_dev_driver voltcraft_vc830_driver_info;
 SR_PRIV struct sr_dev_driver voltcraft_vc840_driver_info;
 
 SR_PRIV struct dmm_info udmms[] = {
@@ -80,6 +81,13 @@ SR_PRIV struct dmm_info udmms[] = {
                NULL,
                &voltcraft_vc820_driver_info, receive_data_VOLTCRAFT_VC820,
        },
+       {
+               "Voltcraft", "VC-830", 2400,
+               FS9922_PACKET_SIZE, NULL,
+               sr_fs9922_packet_valid, sr_fs9922_parse,
+               NULL,
+               &voltcraft_vc830_driver_info, receive_data_VOLTCRAFT_VC830,
+       },
        {
                "Voltcraft", "VC-840", 2400,
                FS9721_PACKET_SIZE, NULL,
@@ -340,4 +348,5 @@ DRV(tecpel_dmm_8061, TECPEL_DMM_8061, "tecpel-dmm-8061", "Tecpel DMM-8061")
 DRV(uni_t_ut61d, UNI_T_UT61D, "uni-t-ut61d", "UNI-T UT61D")
 DRV(uni_t_ut61e, UNI_T_UT61E, "uni-t-ut61e", "UNI-T UT61E")
 DRV(voltcraft_vc820, VOLTCRAFT_VC820, "voltcraft-vc820", "Voltcraft VC-820")
+DRV(voltcraft_vc830, VOLTCRAFT_VC830, "voltcraft-vc830", "Voltcraft VC-830")
 DRV(voltcraft_vc840, VOLTCRAFT_VC840, "voltcraft-vc840", "Voltcraft VC-840")
index ec05822bece93c312190524590a41ef57a0e81d6..1344948c5aa28ab0f712644fadcca373d866dbe7 100644 (file)
@@ -65,6 +65,7 @@
  *  - UNI-T UT61E: Cyrustek ES51922
  *  - UNI-T UT70B: ?
  *  - Voltcraft VC-820: Fortune Semiconductor FS9721_LP3
+ *  - Voltcraft VC-830: Fortune Semiconductor FS9922-DMM4
  *  - Voltcraft VC-840: Fortune Semiconductor FS9721_LP3
  *  - ...
  */
@@ -307,4 +308,5 @@ RECEIVE_DATA(TECPEL_DMM_8061, fs9721)
 RECEIVE_DATA(UNI_T_UT61D, fs9922)
 RECEIVE_DATA(UNI_T_UT61E, es51922)
 RECEIVE_DATA(VOLTCRAFT_VC820, fs9721)
+RECEIVE_DATA(VOLTCRAFT_VC830, fs9922)
 RECEIVE_DATA(VOLTCRAFT_VC840, fs9721)
index 627596732fcb2a917ad7290914a8fa41b98d4147..709ca20e148482a201bf7f7078f55ed18c1c1607 100644 (file)
@@ -43,10 +43,11 @@ enum {
        UNI_T_UT61D,
        UNI_T_UT61E,
        VOLTCRAFT_VC820,
+       VOLTCRAFT_VC830,
        VOLTCRAFT_VC840,
 };
 
-#define DMM_COUNT 6
+#define DMM_COUNT 7
 
 struct dmm_info {
        char *vendor;
@@ -96,6 +97,7 @@ SR_PRIV int receive_data_TECPEL_DMM_8061(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_UNI_T_UT61D(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_UNI_T_UT61E(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_VOLTCRAFT_VC820(int fd, int revents, void *cb_data);
+SR_PRIV int receive_data_VOLTCRAFT_VC830(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_VOLTCRAFT_VC840(int fd, int revents, void *cb_data);
 
 #endif
index 22e94e668ccef5387dbeca8e093bf2f7f9e49e05..3ef19a2ea9dbd0d80fddac2ee804f792382cc2a1 100644 (file)
@@ -193,6 +193,7 @@ extern SR_PRIV struct sr_dev_driver tecpel_dmm_8061_driver_info;
 extern SR_PRIV struct sr_dev_driver uni_t_ut61d_driver_info;
 extern SR_PRIV struct sr_dev_driver uni_t_ut61e_driver_info;
 extern SR_PRIV struct sr_dev_driver voltcraft_vc820_driver_info;
+extern SR_PRIV struct sr_dev_driver voltcraft_vc830_driver_info;
 extern SR_PRIV struct sr_dev_driver voltcraft_vc840_driver_info;
 #endif
 /** @endcond */
@@ -290,6 +291,7 @@ static struct sr_dev_driver *drivers_list[] = {
        &uni_t_ut61d_driver_info,
        &uni_t_ut61e_driver_info,
        &voltcraft_vc820_driver_info,
+       &voltcraft_vc830_driver_info,
        &voltcraft_vc840_driver_info,
 #endif
        NULL,