#define SCNxLEAST16 "x" 

hexadecimal scanf format for uint_least16_t