Can I use typedef in a C-file S-function?
1 view (last 30 days)
I'm simulating some C code from an STM32 MCU in a Matlab Simulink model using a C-file S-Function. In my MCU code I use a typedef as follows:
DECEL = 0, //
ACCEL = 1, //
COAST = 2 //
I'd like to use this typedef in my S-Function mdlUpdate function to compute my algorithm using a case statement based on the enum. How do I do this? Can I include my own custom *.h file when compiling the S-Function?