error: ‘uint16_t’ undeclared? August 21, 2023 by Tarik You need to include stdint.h or inttypes.h to get uint16_t.