]> sigrok.org Git - libsigrok.git/commit
asix-sigma: Rework download_capture() to support more than 32 lines
authorMarek Vasut <redacted>
Sun, 20 Apr 2014 20:19:11 +0000 (22:19 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:51 +0000 (09:45 -0700)
commitc6648b663c717f85d05e928102127b0024d22984
tree03282a207bab254866a640abffac0354cc3925bc
parentfd830beb6751a966a0f12a9ca48a8550bbe5bbba
asix-sigma: Rework download_capture() to support more than 32 lines

In the current configuration, the download capture used 32KiB buffer
for samples. This was the upper limit this function could download
from the Sigma. Even the sigma_read_dram() was only called once to
read up-to 32 DRAM line from address 0x0 in the DRAM.

This patch reworks the function to call sigma_read_dram() in a loop
in case there is need to download more than 32 DRAM lines of data
from Sigma. The data are then correctly passed for decoding to the
decoding function.

Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c