Prefer sigrok's endianess conversion helper over the inet htons() routine which is harder to read (is "network order" little or big?). Writing the conversion results in units of bytes also avoids misaligned memory access. The header length is odd, each payload item got written as an uint16_t item to an odd address. |
||
---|---|---|
.. | ||
api.c | ||
protocol.c | ||
protocol.h |