]> sigrok.org Git - libsigrok.git/commit
asix-sigma: more u16 sample memory access nits (timestamps, values)
authorGerhard Sittig <redacted>
Wed, 13 May 2020 16:26:54 +0000 (18:26 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 05:50:33 +0000 (07:50 +0200)
commit2a62a9c44e7690f68ca756c6a5b9189c32186b47
treef7c4c2d5755e6b1efe932d1781c8dfb437599413
parenta53b8e4d74ae83bb2490569e371a3667855b5c52
asix-sigma: more u16 sample memory access nits (timestamps, values)

Further "flatten" the DRAM layout's declaration for sample data. Declare
timestamps and sample data as uint16_t, keep accessing them via endianess
aware conversion routines. Accessing a larger integer in smaller quantities
is perfectly fine, the inverse direction would be problematic.
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h