libsigrok/hardware
Daniel Elstner e0df15d436 sysclk-lwla: Simplify and optimize word extraction.
It turns out that all LWLA protocol responses consist either
of 32-bit units or of 32-bit units combined into 64-bit units.
Thus it makes sense to double the basic unit size for reading
from 16 bit to 32 bit.
We cannot do the same for command messages though, as those
actually do use 16-bit quantities in some places, and 32-bit
arguments are not always aligned to 32-bit boundaries.

(acquisition_state.xfer_buf_in): Change unit type to uint32_t,
and update related macros and code accordingly.
(LWLA_TO_UINT32): New macro to replace LWLA_READ32, operating
directly on 32-bit values instead of pointers to 16-bit units.
Make use of a compiler-recognized idiom for bitwise rotation
to efficiently swap the 16-bit halves of a 32-bit word.
(LWLA_TO_UINT16): New macro to replace LWLA_READ16.
(LWLA_READ64): Remove unused macro.
(LWLA_WORD_[0123]): Slightly simplify 16-bit word extraction.
2014-01-28 23:34:53 +01:00
..
agilent-dmm agilent-dmm: Make protocol parser locale-independent. 2014-01-21 16:43:49 +01:00
alsa Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
appa-55ii appa-55ii: Don't use _t suffix for a typedef. 2013-12-27 17:27:52 +01:00
asix-sigma asix-sigma: fix incorrect pointer cast (non-aligned memory and endiannes issue) 2013-12-27 17:36:08 +01:00
atten-pps3xxx atten-pps3xxx: Fix options reporting. 2014-01-13 02:10:11 +01:00
brymen-dmm brymen-dmm: Make protocol parser locale-independent. 2014-01-21 17:02:27 +01:00
cem-dt-885x change a bunch of functions from SR_PRIV to static 2014-01-14 23:39:23 +01:00
center-3xx Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
chronovu-la8 Remove SR_CONF_MAX_UNCOMPRESSED_SAMPLES again. 2014-01-19 17:18:59 +01:00
colead-slm Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
common scpi: Limit the log message in get_string() to 70 characters. 2014-01-28 21:25:34 +01:00
demo demo: Cast to double while calculating the pattern frequency. 2014-01-28 21:23:54 +01:00
fluke-dmm fluke-dmm: Make protocol parsers locale-independent. 2014-01-21 16:33:34 +01:00
fx2lafw fx2lafw: Fix incorrect unitsize when a trigger fires. 2013-12-29 14:18:51 +01:00
gmc-mh-1x-2x gmc_mh_1x_2x: Fixed sign and AC/DC for current measurements with Metrahit <= 16. 2014-01-02 19:38:52 +01:00
hameg-hmo hwdriver: Change TRIGGER_SLOPE setting to string type. 2014-01-27 20:55:01 +01:00
hantek-dso hwdriver: Change TRIGGER_SLOPE setting to string type. 2014-01-27 20:55:01 +01:00
ikalogic-scanalogic2 Remove SR_CONF_MAX_UNCOMPRESSED_SAMPLES again. 2014-01-19 17:18:59 +01:00
ikalogic-scanaplus log prefixes: Cosmetics, consistency fixes, typo fixes. 2013-12-27 13:17:20 +01:00
kecheng-kc-330b remove unused static functions 2014-01-14 23:39:23 +01:00
lascar-el-usb change a bunch of functions from SR_PRIV to static 2014-01-14 23:39:23 +01:00
link-mso19 hwdriver: Change TRIGGER_SLOPE setting to string type. 2014-01-27 20:55:01 +01:00
mic-985xx Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
norma-dmm Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
openbench-logic-sniffer ols: Don't reduce sample count just because it's not a multiple of 4. 2014-01-23 01:09:16 +01:00
rigol-ds rigol-ds: Deal with dev_close() getting called multiple times. 2014-01-27 21:19:41 +01:00
saleae-logic16 Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
serial-dmm serial-dmm: Drop unused DMM_COUNT. 2014-01-06 20:54:00 +01:00
sysclk-lwla sysclk-lwla: Simplify and optimize word extraction. 2014-01-28 23:34:53 +01:00
teleinfo teleinfo: Fix a compiler warning (clang). 2013-12-31 19:22:16 +01:00
tondaj-sl-814 Centralise duplicated logging helper defines. 2013-12-27 12:54:05 +01:00
uni-t-dmm Add support for the Tenma 72-7750 (UNI-T UT60G rebadge). 2014-01-06 20:30:35 +01:00
uni-t-ut32x uni-t-ut32x: Fix typo that prevents usage with multiple devices. 2014-01-17 12:11:52 +01:00
victor-dmm victor-dmm: Fix MIN/MAX always being reported. 2013-12-29 12:33:10 +01:00
zeroplus-logic-cube Remove SR_CONF_MAX_UNCOMPRESSED_SAMPLES again. 2014-01-19 17:18:59 +01:00
Makefile.am sysclk-lwla: Initial driver skeleton. 2014-01-14 19:33:31 +01:00