From: Gerhard Sittig Date: Sat, 5 Nov 2016 15:40:35 +0000 (+0100) Subject: serial-dmm: sort the list of device drivers (part 3, es519xx) X-Git-Tag: libsigrok-0.5.0~185 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7532f61d1ba618e76628f6ea3db07f6dad7a751e;p=libsigrok.git serial-dmm: sort the list of device drivers (part 3, es519xx) This commit puts 'es519xx' meters into one group. --- diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c index 165f3bb8..521616f9 100644 --- a/src/hardware/serial-dmm/api.c +++ b/src/hardware/serial-dmm/api.c @@ -255,6 +255,39 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL ), /* }}} */ + /* es519xx based meters {{{ */ + DMM( + "iso-tech-idm103n", es519xx, + "ISO-TECH", "IDM103N", "2400/7o1/rts=0/dtr=1", + 2400, ES519XX_11B_PACKET_SIZE, 0, 0, NULL, + sr_es519xx_2400_11b_packet_valid, sr_es519xx_2400_11b_parse, + NULL + ), + DMM( + "tenma-72-7750-ser", es519xx, + /* Note: ES51986 baudrate is actually 19230! */ + "Tenma", "72-7750 (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", + 19200, ES519XX_11B_PACKET_SIZE, 0, 0, NULL, + sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse, + NULL + ), + DMM( + /* Note: ES51986 baudrate is actually 19230! */ + "uni-t-ut60g-ser", es519xx, + "UNI-T", "UT60G (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", + 19200, ES519XX_11B_PACKET_SIZE, 0, 0, NULL, + sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse, + NULL + ), + DMM( + "uni-t-ut61e-ser", es519xx, + /* Note: ES51922 baudrate is actually 19230! */ + "UNI-T", "UT61E (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", + 19200, ES519XX_14B_PACKET_SIZE, 0, 0, NULL, + sr_es519xx_19200_14b_packet_valid, sr_es519xx_19200_14b_parse, + NULL + ), + /* }}} */ /* meters based on other chips (to get sorted) */ DMM( "bbcgm-2010", metex14, @@ -467,14 +500,6 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, sr_fs9721_packet_valid, sr_fs9721_parse, sr_fs9721_00_temp_c ), - DMM( - /* Note: ES51986 baudrate is actually 19230! */ - "uni-t-ut60g-ser", es519xx, - "UNI-T", "UT60G (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", - 19200, ES519XX_11B_PACKET_SIZE, 0, 0, NULL, - sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse, - NULL - ), DMM( "uni-t-ut61b-ser", fs9922, "UNI-T", "UT61B (UT-D02 cable)", "2400/8n1/rts=0/dtr=1", @@ -493,14 +518,6 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, 2400, FS9922_PACKET_SIZE, 0, 0, NULL, sr_fs9922_packet_valid, sr_fs9922_parse, NULL ), - DMM( - "uni-t-ut61e-ser", es519xx, - /* Note: ES51922 baudrate is actually 19230! */ - "UNI-T", "UT61E (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", - 19200, ES519XX_14B_PACKET_SIZE, 0, 0, NULL, - sr_es519xx_19200_14b_packet_valid, sr_es519xx_19200_14b_parse, - NULL - ), DMM( "uni-t-ut71a-ser", ut71x, "UNI-T", "UT71A (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", @@ -531,13 +548,6 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, 2400, UT71X_PACKET_SIZE, 0, 0, NULL, sr_ut71x_packet_valid, sr_ut71x_parse, NULL ), - DMM( - "iso-tech-idm103n", es519xx, - "ISO-TECH", "IDM103N", "2400/7o1/rts=0/dtr=1", - 2400, ES519XX_11B_PACKET_SIZE, 0, 0, NULL, - sr_es519xx_2400_11b_packet_valid, sr_es519xx_2400_11b_parse, - NULL - ), DMM( "tenma-72-7730-ser", ut71x, "Tenma", "72-7730 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1", @@ -563,14 +573,6 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, sr_fs9721_packet_valid, sr_fs9721_parse, sr_fs9721_00_temp_c ), - DMM( - "tenma-72-7750-ser", es519xx, - /* Note: ES51986 baudrate is actually 19230! */ - "Tenma", "72-7750 (UT-D02 cable)", "19200/7o1/rts=0/dtr=1", - 19200, ES519XX_11B_PACKET_SIZE, 0, 0, NULL, - sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse, - NULL - ), DMM( "peaktech-3330", fs9721, "Peaktech", "3330", "2400/8n1/dtr=1", 2400,