Obtaining multiple enums definitions from c header file

1 view (last 30 days)
I have a matlab program which communicates with a client via serial communication using a preset command reference. The client (an ST-microelectronics processor) is programmed using c code, source+headers.
My main problem is enums being defined in the c header files, and enum data is being sent to my matlab program, so I have to find a way for the matlab program to know the enum definitions.
The simplest and dirtiest solution is to use a custom text parser of the header file.
Any better way to achieve integration described above?
Thanks

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!