#define SCNu16 "u" 

decimal scanf format for uint16_t