]> sigrok.org Git - libsigrok.git/commit
radioshack-dmm: Implement support for "LOGIC" mode
authorAlexandru Gagniuc <redacted>
Sat, 20 Oct 2012 01:40:50 +0000 (20:40 -0500)
committerBert Vermeulen <redacted>
Sat, 20 Oct 2012 21:03:51 +0000 (23:03 +0200)
commit7c41dc477402c09141c5d478dff493f8efb81264
tree85d17ce5f0235e0f40455557e7c1970c1151b5a4
parentdfd8f56ef4a0ee1c353db5078d6d7d8b901ec21b
radioshack-dmm: Implement support for "LOGIC" mode

LOGIC mode sends the following data:
     V < 0 : actual voltage
0 <= V < 1 : LOW
1 <= V < 2 : actual voltage
2 <= V     : HIGH

We follow the same idea, and set our unit to BOOLEAN for the crazy
case (HIGH or LOW).

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/radioshack-dmm/radioshack-dmm.h
hardware/radioshack-dmm/radioshack.c