]> sigrok.org Git - libsigrok.git/commit - src/hardware/asix-sigma/protocol.c
asix-sigma: Factor out access to sample data and session data
authorGerhard Sittig <redacted>
Sun, 23 Apr 2017 12:15:57 +0000 (14:15 +0200)
committerUwe Hermann <redacted>
Fri, 26 May 2017 20:48:08 +0000 (22:48 +0200)
commit0498f7439fc5c205448cfdb57fec5b4361cc4fad
tree6da78577f2b290441bf3d64a03692a4655459e32
parentde3f7acb4df5ff584b116b6c5f1a1eee0814ccf5
asix-sigma: Factor out access to sample data and session data

Introduce helper routines to access the sample data that is provided by
the ASIX hardware, as well as the buffer which accumulates logic data
before it gets sent to the session's datafeed.

This hides endianess issues from call sites, and prepares access to
memory layout which varies with sample frequencies.

This commit is based on work done by jry@.
src/hardware/asix-sigma/protocol.c