int->int16_t  bool->uint8_t