]> sigrok.org Git - libsigrok.git/commitdiff
itech-it8500: declaration nits
authorGerhard Sittig <redacted>
Tue, 6 Oct 2020 17:18:42 +0000 (19:18 +0200)
committerGerhard Sittig <redacted>
Tue, 6 Oct 2020 20:02:20 +0000 (22:02 +0200)
Rearrange the order of declarations in the protocol.h header. Start with
packet layout, continue with requests (commands), then responses (status),
before the device context and the set of routines.

Rename the status codes to STS_* in contrast to CMD_* codes. Use an enum
for different byte values, leave defines for packet sizes et al. Phrase
bit fields in terms of bit numbers not byte values.

Total nit: Change the breaks in the long list of add_source() args. Keep
event type and timeout together, similar to callback and its data.


No differences found