Filter löschen
Filter löschen

Embedded coder: Code generation data types

1 Ansicht (letzte 30 Tage)
Venkatesan
Venkatesan am 16 Okt. 2023
Kommentiert: Venkatesan am 25 Okt. 2023

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.

Akzeptierte Antwort

Mark McBroom
Mark McBroom am 25 Okt. 2023
This can be accomplished by picking a 64 bit custom processor on the Hardware tab. See attached model.
  1 Kommentar
Venkatesan
Venkatesan am 25 Okt. 2023
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Generating Code finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by