]> sigrok.org Git - libsigrok.git/commit
hameg-hmo: Add support for SR_CONF_LOGIC_THRESHOLD/_CUSTOM.
authorGuido Trentalancia <redacted>
Fri, 16 Nov 2018 17:43:55 +0000 (18:43 +0100)
committerUwe Hermann <redacted>
Thu, 25 Jul 2019 22:11:07 +0000 (00:11 +0200)
commite131be0ac34c36e374b78db9d01b8ef0e91eaed7
tree4a3a1f9011e11471feff6987a0bd591c0630e48f
parent3308450089c41c8596404e89c95f9a9620c3404f
hameg-hmo: Add support for SR_CONF_LOGIC_THRESHOLD/_CUSTOM.

Update the Hameg/Rohde&Schwarz HMO driver (hameg-hmo) so that it
is possible to configure the logic threshold for digital signals.

The user can get or set the logic threshold configuration using
the channel group POD0 (and/or POD1 where available), for example:

sigrok-cli --driver hameg-hmo --get logic_threshold -g POD0
sigrok-cli --driver hameg-hmo --config logic_threshold=TTL --set -g POD0

sigrok-cli --driver hameg-hmo --get logic_threshold_custom -g POD0
sigrok-cli --driver hameg-hmo --config logic_threshold_custom=0.7 --set -g POD0
include/libsigrok/libsigrok.h
src/hardware/hameg-hmo/api.c
src/hardware/hameg-hmo/protocol.c
src/hardware/hameg-hmo/protocol.h
src/hwdriver.c
src/scpi.h