]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: add config_get() support for SR_CONF_CONN
authorGerhard Sittig <redacted>
Sun, 2 Aug 2020 10:01:45 +0000 (12:01 +0200)
committerGerhard Sittig <redacted>
Sat, 22 Aug 2020 07:10:29 +0000 (09:10 +0200)
commit048250d0e0a4cefdf192dbdb0e7f4dec3a881ed1
treedb3faea44645f174849263a67b430f5fcba83524
parent860ee00ab12165f076184c96b0eee23fa5e0e967
korad-kaxxxxp: add config_get() support for SR_CONF_CONN

Let applications query the device instance's conn= key. This lets users
recognize individual devices if multiple of them are connected.

  $ sigrok-cli -d korad-kaxxxxp:conn=/dev/ttyACM0 --show
  ...
  korad-kaxxxxp:conn=/dev/ttyACM0 - Korad KA3005P with 2 channels: V I
  ...
src/hardware/korad-kaxxxxp/api.c