フィルターのクリア

Embedded coder: Code generation data types

1 回表示 (過去 30 日間)
Venkatesan
Venkatesan 2023 年 10 月 16 日
コメント済み: Venkatesan 2023 年 10 月 25 日

Is there a way to generate "typedef short int" and typedef "unsigned short int"? I want this for my harware but what I get is only "typedef int" and typedef "unsigned int" irrespective of various hardware I selected including custom hardware.

採用された回答

Mark McBroom
Mark McBroom 2023 年 10 月 25 日
This can be accomplished by picking a 64 bit custom processor on the Hardware tab. See attached model.
  1 件のコメント
Venkatesan
Venkatesan 2023 年 10 月 25 日
Thanks. This helped me to fix the problem. In fact I was using replacement data type i16 and u16 for int and unsigned int which forced the coder to generate int for i16 instead of short.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenerating Code についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by