]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-dmm: Add support for the Tenma 72-7745.
authorBert Vermeulen <redacted>
Sat, 23 Nov 2013 11:50:33 +0000 (12:50 +0100)
committerBert Vermeulen <redacted>
Sat, 23 Nov 2013 11:50:33 +0000 (12:50 +0100)
This is a rebadged UNI-T UT60E.

hardware/uni-t-dmm/api.c
hardware/uni-t-dmm/protocol.h
hwdriver.c

index cc14feb9a90b86884763b22fdf5e4f711757cb40..e6239a1a3edb3b9ee86c770b8688e1e1f80b18e4 100644 (file)
@@ -45,6 +45,7 @@ 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 sr_dev_driver tenma_72_7745_driver_info;
 
 SR_PRIV struct dmm_info udmms[] = {
        {
@@ -117,6 +118,15 @@ SR_PRIV struct dmm_info udmms[] = {
                sr_fs9721_00_temp_c,
                &voltcraft_vc840_driver_info, receive_data_VOLTCRAFT_VC840,
        },
+       {
+               "Tenma", "72-7745", 2400,
+               FS9721_PACKET_SIZE,
+               sr_fs9721_packet_valid, sr_fs9721_parse,
+               sr_fs9721_00_temp_c,
+               &tenma_72_7745_driver_info,
+               /* This is a basic rebadge of the UT60E. */
+               receive_data_UNI_T_UT60E,
+       },
 };
 
 static int dev_clear(int dmm)
@@ -378,3 +388,4 @@ 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")
+DRV(tenma_72_7745, TENMA_72_7745, "tenma-72-7745", "Tenma 72-7745")
index 446f6a79cdfe3111359cbda4d424bda403d5df9a..1d8a353476b30ee1f741da7a8e4c1336f7dc169d 100644 (file)
@@ -46,9 +46,10 @@ enum {
        VOLTCRAFT_VC820,
        VOLTCRAFT_VC830,
        VOLTCRAFT_VC840,
+       TENMA_72_7745,
 };
 
-#define DMM_COUNT 8
+#define DMM_COUNT 9
 
 struct dmm_info {
        char *vendor;
index 3f2360dc83d272e69de4215daf88d911be28abbd..5897b63eb823f6509bba1fe98a53731d671698d6 100644 (file)
@@ -228,6 +228,7 @@ 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;
+extern SR_PRIV struct sr_dev_driver tenma_72_7745_driver_info;
 #endif
 /** @endcond */
 
@@ -353,6 +354,7 @@ static struct sr_dev_driver *drivers_list[] = {
        &voltcraft_vc820_driver_info,
        &voltcraft_vc830_driver_info,
        &voltcraft_vc840_driver_info,
+       &tenma_72_7745_driver_info,
 #endif
        NULL,
 };