#define SCNxFAST16 "x" 

hexadecimal scanf format for uint_fast16_t