#define PRIx16 "x" 

hexadecimal printf format for uint16_t