]> sigrok.org Git - libsigrok.git/commit
asix-sigma: rephrase and extend register access for readability
authorGerhard Sittig <redacted>
Sat, 16 May 2020 10:13:38 +0000 (12:13 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 06:06:18 +0000 (08:06 +0200)
commit0f017b7da90c4379580bf74716dacf0b0f60e292
tree5dd78470c31fa4cb932062a9373d1bac977ecac4
parent419f10950500d37489db3e3842670ac49e3607e7
asix-sigma: rephrase and extend register access for readability

Reduce the probability of errors during maintenance, and also increase
readability. Replace open coded nibble extraction and bit positions by
accessor helpers and symbolic identifiers. Adjust existing math where it
did not match the vendor documentation. Always communicate 8bit register
addresses, don't assume that application use remains within a specific
"page". Provide more FPGA register access primitives so that call sites
need not re-invent FPGA command sequence construction. Remove remaining
open coded endianess conversion in DRAM access.
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h