From: Bert Vermeulen Date: Sat, 23 Nov 2013 11:50:33 +0000 (+0100) Subject: uni-t-dmm: Add support for the Tenma 72-7745. X-Git-Tag: libsigrok-0.3.0~536 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5e1f7c890d099ba47fca543936417a94f989445f;p=libsigrok.git uni-t-dmm: Add support for the Tenma 72-7745. This is a rebadged UNI-T UT60E. --- diff --git a/hardware/uni-t-dmm/api.c b/hardware/uni-t-dmm/api.c index cc14feb9..e6239a1a 100644 --- a/hardware/uni-t-dmm/api.c +++ b/hardware/uni-t-dmm/api.c @@ -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") diff --git a/hardware/uni-t-dmm/protocol.h b/hardware/uni-t-dmm/protocol.h index 446f6a79..1d8a3534 100644 --- a/hardware/uni-t-dmm/protocol.h +++ b/hardware/uni-t-dmm/protocol.h @@ -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; diff --git a/hwdriver.c b/hwdriver.c index 3f2360dc..5897b63e 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -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, };